gnu: pigx-chipseq: Update to 0.0.40.
[jackhill/guix/guix.git] / gnu / packages / bioinformatics.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015, 2016, 2017, 2018 Ben Woodcroft <donttrustben@gmail.com>
4 ;;; Copyright © 2015, 2016 Pjotr Prins <pjotr.guix@thebird.nl>
5 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
6 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
7 ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
9 ;;; Copyright © 2016, 2018 Raoul Bonnal <ilpuccio.febo@gmail.com>
10 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
12 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
13 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
14 ;;; Copyright © 2018 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
15 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
16 ;;;
17 ;;; This file is part of GNU Guix.
18 ;;;
19 ;;; GNU Guix is free software; you can redistribute it and/or modify it
20 ;;; under the terms of the GNU General Public License as published by
21 ;;; the Free Software Foundation; either version 3 of the License, or (at
22 ;;; your option) any later version.
23 ;;;
24 ;;; GNU Guix is distributed in the hope that it will be useful, but
25 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 ;;; GNU General Public License for more details.
28 ;;;
29 ;;; You should have received a copy of the GNU General Public License
30 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31
32 (define-module (gnu packages bioinformatics)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (guix packages)
35 #:use-module (guix utils)
36 #:use-module (guix download)
37 #:use-module (guix git-download)
38 #:use-module (guix hg-download)
39 #:use-module (guix build-system ant)
40 #:use-module (guix build-system gnu)
41 #:use-module (guix build-system cmake)
42 #:use-module (guix build-system haskell)
43 #:use-module (guix build-system meson)
44 #:use-module (guix build-system ocaml)
45 #:use-module (guix build-system perl)
46 #:use-module (guix build-system python)
47 #:use-module (guix build-system r)
48 #:use-module (guix build-system ruby)
49 #:use-module (guix build-system scons)
50 #:use-module (guix build-system trivial)
51 #:use-module (gnu packages)
52 #:use-module (gnu packages autotools)
53 #:use-module (gnu packages algebra)
54 #:use-module (gnu packages base)
55 #:use-module (gnu packages bash)
56 #:use-module (gnu packages bison)
57 #:use-module (gnu packages bioconductor)
58 #:use-module (gnu packages boost)
59 #:use-module (gnu packages check)
60 #:use-module (gnu packages compression)
61 #:use-module (gnu packages cpio)
62 #:use-module (gnu packages cran)
63 #:use-module (gnu packages curl)
64 #:use-module (gnu packages documentation)
65 #:use-module (gnu packages databases)
66 #:use-module (gnu packages datastructures)
67 #:use-module (gnu packages file)
68 #:use-module (gnu packages flex)
69 #:use-module (gnu packages gawk)
70 #:use-module (gnu packages gcc)
71 #:use-module (gnu packages gd)
72 #:use-module (gnu packages gtk)
73 #:use-module (gnu packages glib)
74 #:use-module (gnu packages graph)
75 #:use-module (gnu packages groff)
76 #:use-module (gnu packages guile)
77 #:use-module (gnu packages guile-xyz)
78 #:use-module (gnu packages haskell)
79 #:use-module (gnu packages haskell-check)
80 #:use-module (gnu packages haskell-web)
81 #:use-module (gnu packages image)
82 #:use-module (gnu packages imagemagick)
83 #:use-module (gnu packages java)
84 #:use-module (gnu packages java-compression)
85 #:use-module (gnu packages jemalloc)
86 #:use-module (gnu packages dlang)
87 #:use-module (gnu packages linux)
88 #:use-module (gnu packages lisp)
89 #:use-module (gnu packages logging)
90 #:use-module (gnu packages machine-learning)
91 #:use-module (gnu packages man)
92 #:use-module (gnu packages maths)
93 #:use-module (gnu packages mpi)
94 #:use-module (gnu packages ncurses)
95 #:use-module (gnu packages ocaml)
96 #:use-module (gnu packages pcre)
97 #:use-module (gnu packages parallel)
98 #:use-module (gnu packages pdf)
99 #:use-module (gnu packages perl)
100 #:use-module (gnu packages perl-check)
101 #:use-module (gnu packages pkg-config)
102 #:use-module (gnu packages popt)
103 #:use-module (gnu packages protobuf)
104 #:use-module (gnu packages python)
105 #:use-module (gnu packages python-compression)
106 #:use-module (gnu packages python-web)
107 #:use-module (gnu packages python-xyz)
108 #:use-module (gnu packages readline)
109 #:use-module (gnu packages ruby)
110 #:use-module (gnu packages serialization)
111 #:use-module (gnu packages shells)
112 #:use-module (gnu packages statistics)
113 #:use-module (gnu packages swig)
114 #:use-module (gnu packages tbb)
115 #:use-module (gnu packages tex)
116 #:use-module (gnu packages texinfo)
117 #:use-module (gnu packages textutils)
118 #:use-module (gnu packages time)
119 #:use-module (gnu packages tls)
120 #:use-module (gnu packages vim)
121 #:use-module (gnu packages web)
122 #:use-module (gnu packages xml)
123 #:use-module (gnu packages xorg)
124 #:use-module (srfi srfi-1)
125 #:use-module (ice-9 match))
126
127 (define-public aragorn
128 (package
129 (name "aragorn")
130 (version "1.2.38")
131 (source (origin
132 (method url-fetch)
133 (uri (string-append
134 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
135 version ".tgz"))
136 (sha256
137 (base32
138 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
139 (build-system gnu-build-system)
140 (arguments
141 `(#:tests? #f ; there are no tests
142 #:phases
143 (modify-phases %standard-phases
144 (delete 'configure)
145 (replace 'build
146 (lambda _
147 (invoke "gcc"
148 "-O3"
149 "-ffast-math"
150 "-finline-functions"
151 "-o"
152 "aragorn"
153 (string-append "aragorn" ,version ".c"))
154 #t))
155 (replace 'install
156 (lambda* (#:key outputs #:allow-other-keys)
157 (let* ((out (assoc-ref outputs "out"))
158 (bin (string-append out "/bin"))
159 (man (string-append out "/share/man/man1")))
160 (install-file "aragorn" bin)
161 (install-file "aragorn.1" man))
162 #t)))))
163 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
164 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
165 (description
166 "Aragorn identifies transfer RNA, mitochondrial RNA and
167 transfer-messenger RNA from nucleotide sequences, based on homology to known
168 tRNA consensus sequences and RNA structure. It also outputs the secondary
169 structure of the predicted RNA.")
170 (license license:gpl2)))
171
172 (define-public bamm
173 (package
174 (name "bamm")
175 (version "1.7.3")
176 (source (origin
177 (method git-fetch)
178 ;; BamM is not available on pypi.
179 (uri (git-reference
180 (url "https://github.com/Ecogenomics/BamM.git")
181 (commit version)
182 (recursive? #t)))
183 (file-name (git-file-name name version))
184 (sha256
185 (base32
186 "1p83ahi984ipslxlg4yqy1gdnya9rkn1v71z8djgxkm9d2chw4c5"))
187 (modules '((guix build utils)))
188 (snippet
189 `(begin
190 ;; Delete bundled htslib.
191 (delete-file-recursively "c/htslib-1.3.1")
192 #t))))
193 (build-system python-build-system)
194 (arguments
195 `(#:python ,python-2 ; BamM is Python 2 only.
196 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
197 ;; been modified from its original form.
198 #:configure-flags
199 (let ((htslib (assoc-ref %build-inputs "htslib")))
200 (list "--with-libhts-lib" (string-append htslib "/lib")
201 "--with-libhts-inc" (string-append htslib "/include/htslib")))
202 #:phases
203 (modify-phases %standard-phases
204 (add-after 'unpack 'autogen
205 (lambda _
206 (with-directory-excursion "c"
207 (let ((sh (which "sh")))
208 (for-each make-file-writable (find-files "." ".*"))
209 ;; Use autogen so that 'configure' works.
210 (substitute* "autogen.sh" (("/bin/sh") sh))
211 (setenv "CONFIG_SHELL" sh)
212 (invoke "./autogen.sh")))
213 #t))
214 (delete 'build)
215 ;; Run tests after installation so compilation only happens once.
216 (delete 'check)
217 (add-after 'install 'wrap-executable
218 (lambda* (#:key outputs #:allow-other-keys)
219 (let* ((out (assoc-ref outputs "out"))
220 (path (getenv "PATH")))
221 (wrap-program (string-append out "/bin/bamm")
222 `("PATH" ":" prefix (,path))))
223 #t))
224 (add-after 'wrap-executable 'post-install-check
225 (lambda* (#:key inputs outputs #:allow-other-keys)
226 (setenv "PATH"
227 (string-append (assoc-ref outputs "out")
228 "/bin:"
229 (getenv "PATH")))
230 (setenv "PYTHONPATH"
231 (string-append
232 (assoc-ref outputs "out")
233 "/lib/python"
234 (string-take (string-take-right
235 (assoc-ref inputs "python") 5) 3)
236 "/site-packages:"
237 (getenv "PYTHONPATH")))
238 ;; There are 2 errors printed, but they are safe to ignore:
239 ;; 1) [E::hts_open_format] fail to open file ...
240 ;; 2) samtools view: failed to open ...
241 (invoke "nosetests")
242 #t)))))
243 (native-inputs
244 `(("autoconf" ,autoconf)
245 ("automake" ,automake)
246 ("libtool" ,libtool)
247 ("zlib" ,zlib)
248 ("python-nose" ,python2-nose)
249 ("python-pysam" ,python2-pysam)))
250 (inputs
251 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
252 ("samtools" ,samtools)
253 ("bwa" ,bwa)
254 ("grep" ,grep)
255 ("sed" ,sed)
256 ("coreutils" ,coreutils)))
257 (propagated-inputs
258 `(("python-numpy" ,python2-numpy)))
259 (home-page "http://ecogenomics.github.io/BamM/")
260 (synopsis "Metagenomics-focused BAM file manipulator")
261 (description
262 "BamM is a C library, wrapped in python, to efficiently generate and
263 parse BAM files, specifically for the analysis of metagenomic data. For
264 instance, it implements several methods to assess contig-wise read coverage.")
265 (license license:lgpl3+)))
266
267 (define-public bamtools
268 (package
269 (name "bamtools")
270 (version "2.5.1")
271 (source (origin
272 (method git-fetch)
273 (uri (git-reference
274 (url "https://github.com/pezmaster31/bamtools.git")
275 (commit (string-append "v" version))))
276 (file-name (git-file-name name version))
277 (sha256
278 (base32
279 "0nfb2ypcx9959xnbz6wxh6py3xfizgmg8nrknxl95c507m9hmq8b"))))
280 (build-system cmake-build-system)
281 (arguments
282 `(#:tests? #f ;no "check" target
283 #:phases
284 (modify-phases %standard-phases
285 (add-before
286 'configure 'set-ldflags
287 (lambda* (#:key outputs #:allow-other-keys)
288 (setenv "LDFLAGS"
289 (string-append
290 "-Wl,-rpath="
291 (assoc-ref outputs "out") "/lib/bamtools"))
292 #t)))))
293 (inputs `(("zlib" ,zlib)))
294 (home-page "https://github.com/pezmaster31/bamtools")
295 (synopsis "C++ API and command-line toolkit for working with BAM data")
296 (description
297 "BamTools provides both a C++ API and a command-line toolkit for handling
298 BAM files.")
299 (license license:expat)))
300
301 (define-public bcftools
302 (package
303 (name "bcftools")
304 (version "1.9")
305 (source (origin
306 (method url-fetch)
307 (uri (string-append "https://github.com/samtools/bcftools/"
308 "releases/download/"
309 version "/bcftools-" version ".tar.bz2"))
310 (sha256
311 (base32
312 "1j3h638i8kgihzyrlnpj82xg1b23sijibys9hvwari3fy7kd0dkg"))
313 (modules '((guix build utils)))
314 (snippet '(begin
315 ;; Delete bundled htslib.
316 (delete-file-recursively "htslib-1.9")
317 #t))))
318 (build-system gnu-build-system)
319 (arguments
320 `(#:configure-flags
321 (list "--enable-libgsl")
322 #:test-target "test"
323 #:phases
324 (modify-phases %standard-phases
325 (add-before 'check 'patch-tests
326 (lambda _
327 (substitute* "test/test.pl"
328 (("/bin/bash") (which "bash")))
329 #t)))))
330 (native-inputs
331 `(("htslib" ,htslib)
332 ("perl" ,perl)))
333 (inputs
334 `(("gsl" ,gsl)
335 ("zlib" ,zlib)))
336 (home-page "https://samtools.github.io/bcftools/")
337 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
338 (description
339 "BCFtools is a set of utilities that manipulate variant calls in the
340 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
341 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
342 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
343 (license (list license:gpl3+ license:expat))))
344
345 (define-public bedops
346 (package
347 (name "bedops")
348 (version "2.4.35")
349 (source (origin
350 (method git-fetch)
351 (uri (git-reference
352 (url "https://github.com/bedops/bedops.git")
353 (commit (string-append "v" version))))
354 (file-name (git-file-name name version))
355 (sha256
356 (base32
357 "0mmgsgwz5r9w76hzgxkxc9s9lkdhhaf7vr6i02b09vbswvs1fyqx"))))
358 (build-system gnu-build-system)
359 (arguments
360 '(#:tests? #f
361 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
362 #:phases
363 (modify-phases %standard-phases
364 (add-after 'unpack 'unpack-tarballs
365 (lambda _
366 ;; FIXME: Bedops includes tarballs of minimally patched upstream
367 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
368 ;; libraries because at least one of the libraries (zlib) is
369 ;; patched to add a C++ function definition (deflateInit2cpp).
370 ;; Until the Bedops developers offer a way to link against system
371 ;; libraries we have to build the in-tree copies of these three
372 ;; libraries.
373
374 ;; See upstream discussion:
375 ;; https://github.com/bedops/bedops/issues/124
376
377 ;; Unpack the tarballs to benefit from shebang patching.
378 (with-directory-excursion "third-party"
379 (invoke "tar" "xvf" "jansson-2.6.tar.bz2")
380 (invoke "tar" "xvf" "zlib-1.2.7.tar.bz2")
381 (invoke "tar" "xvf" "bzip2-1.0.6.tar.bz2"))
382 ;; Disable unpacking of tarballs in Makefile.
383 (substitute* "system.mk/Makefile.linux"
384 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
385 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
386 (substitute* "third-party/zlib-1.2.7/Makefile.in"
387 (("^SHELL=.*$") "SHELL=bash\n"))
388 #t))
389 (delete 'configure))))
390 (home-page "https://github.com/bedops/bedops")
391 (synopsis "Tools for high-performance genomic feature operations")
392 (description
393 "BEDOPS is a suite of tools to address common questions raised in genomic
394 studies---mostly with regard to overlap and proximity relationships between
395 data sets. It aims to be scalable and flexible, facilitating the efficient
396 and accurate analysis and management of large-scale genomic data.
397
398 BEDOPS provides tools that perform highly efficient and scalable Boolean and
399 other set operations, statistical calculations, archiving, conversion and
400 other management of genomic data of arbitrary scale. Tasks can be easily
401 split by chromosome for distributing whole-genome analyses across a
402 computational cluster.")
403 (license license:gpl2+)))
404
405 (define-public bedtools
406 (package
407 (name "bedtools")
408 (version "2.27.1")
409 (source (origin
410 (method url-fetch)
411 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
412 "download/v" version "/"
413 "bedtools-" version ".tar.gz"))
414 (sha256
415 (base32
416 "1ndg5yknrxl4djx8ddzgk12rrbiidfpmkkg5z3f95jzryfxarhn8"))))
417 (build-system gnu-build-system)
418 (arguments
419 '(#:test-target "test"
420 #:make-flags
421 (list (string-append "prefix=" (assoc-ref %outputs "out")))
422 #:phases
423 (modify-phases %standard-phases
424 (delete 'configure))))
425 (native-inputs `(("python" ,python-2)))
426 (inputs
427 `(("samtools" ,samtools)
428 ("zlib" ,zlib)))
429 (home-page "https://github.com/arq5x/bedtools2")
430 (synopsis "Tools for genome analysis and arithmetic")
431 (description
432 "Collectively, the bedtools utilities are a swiss-army knife of tools for
433 a wide-range of genomics analysis tasks. The most widely-used tools enable
434 genome arithmetic: that is, set theory on the genome. For example, bedtools
435 allows one to intersect, merge, count, complement, and shuffle genomic
436 intervals from multiple files in widely-used genomic file formats such as BAM,
437 BED, GFF/GTF, VCF.")
438 (license license:gpl2)))
439
440 ;; Later releases of bedtools produce files with more columns than
441 ;; what Ribotaper expects.
442 (define-public bedtools-2.18
443 (package (inherit bedtools)
444 (name "bedtools")
445 (version "2.18.0")
446 (source (origin
447 (method url-fetch)
448 (uri (string-append "https://github.com/arq5x/bedtools2/"
449 "releases/download/v" version
450 "/bedtools-" version ".tar.gz"))
451 (sha256
452 (base32
453 "11rvca19ncg03kxd0wzlfx5ws7r3nisd0z8s9j9n182d8ksp2pxz"))))
454 (arguments
455 '(#:test-target "test"
456 #:phases
457 (modify-phases %standard-phases
458 (delete 'configure)
459 (replace 'install
460 (lambda* (#:key outputs #:allow-other-keys)
461 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
462 (for-each (lambda (file)
463 (install-file file bin))
464 (find-files "bin" ".*")))
465 #t)))))))
466
467 ;; Needed for pybedtools.
468 (define-public bedtools-2.26
469 (package (inherit bedtools)
470 (name "bedtools")
471 (version "2.26.0")
472 (source (origin
473 (method url-fetch)
474 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
475 "download/v" version "/"
476 "bedtools-" version ".tar.gz"))
477 (sha256
478 (base32
479 "0jhavwifnf7lmkb11h9y7dynr8d699h0rd2l52j1pfgircr2zwv5"))))))
480
481 (define-public pbbam
482 (package
483 (name "pbbam")
484 (version "0.23.0")
485 (source (origin
486 (method git-fetch)
487 (uri (git-reference
488 (url "https://github.com/PacificBiosciences/pbbam.git")
489 (commit version)))
490 (file-name (git-file-name name version))
491 (sha256
492 (base32
493 "0h9gkrpf2lrxklxp72xfl5bi3h5zcm5hprrya9gf0hr3xwlbpp0x"))))
494 (build-system meson-build-system)
495 (arguments
496 `(#:phases
497 (modify-phases %standard-phases
498 (add-after 'unpack 'find-googletest
499 (lambda* (#:key inputs #:allow-other-keys)
500 ;; It doesn't find gtest_main because there's no pkg-config file
501 ;; for it. Find it another way.
502 (substitute* "tests/meson.build"
503 (("pbbam_gtest_dep = dependency\\('gtest_main'.*")
504 (format #f "cpp = meson.get_compiler('cpp')
505 pbbam_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
506 (assoc-ref inputs "googletest"))))
507 #t)))
508 ;; TODO: tests/pbbam_test cannot be linked
509 ;; ld: tests/59830eb@@pbbam_test@exe/src_test_Accuracy.cpp.o:
510 ;; undefined reference to symbol '_ZTIN7testing4TestE'
511 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
512 ;; error adding symbols: DSO missing from command line
513 #:tests? #f
514 #:configure-flags '("-Dtests=false")))
515 ;; These libraries are listed as "Required" in the pkg-config file.
516 (propagated-inputs
517 `(("htslib" ,htslib)
518 ("zlib" ,zlib)))
519 (inputs
520 `(("boost" ,boost)
521 ("samtools" ,samtools)))
522 (native-inputs
523 `(("googletest" ,googletest)
524 ("pkg-config" ,pkg-config)
525 ("python" ,python-wrapper))) ; for tests
526 (home-page "https://github.com/PacificBiosciences/pbbam")
527 (synopsis "Work with PacBio BAM files")
528 (description
529 "The pbbam software package provides components to create, query, and
530 edit PacBio BAM files and associated indices. These components include a core
531 C++ library, bindings for additional languages, and command-line utilities.
532 This library is not intended to be used as a general-purpose BAM utility - all
533 input and output BAMs must adhere to the PacBio BAM format specification.
534 Non-PacBio BAMs will cause exceptions to be thrown.")
535 (license license:bsd-3)))
536
537 (define-public blasr-libcpp
538 (package
539 (name "blasr-libcpp")
540 (version "5.3.3")
541 (source (origin
542 (method git-fetch)
543 (uri (git-reference
544 (url "https://github.com/PacificBiosciences/blasr_libcpp.git")
545 (commit version)))
546 (file-name (git-file-name name version))
547 (sha256
548 (base32
549 "0cn5l42zyq67sj0g2imqkhayz2iqvv0a1pgpbmlq0qynjmsrbfd2"))))
550 (build-system meson-build-system)
551 (arguments
552 `(#:phases
553 (modify-phases %standard-phases
554 (add-after 'unpack 'link-with-hdf5
555 (lambda* (#:key inputs #:allow-other-keys)
556 (let ((hdf5 (assoc-ref inputs "hdf5")))
557 (substitute* "meson.build"
558 (("libblasr_deps = \\[" m)
559 (string-append
560 m
561 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
562 cpp.find_library('hdf5_cpp', dirs : '~a'), "
563 hdf5 hdf5)))))
564 #t))
565 (add-after 'unpack 'find-googletest
566 (lambda* (#:key inputs #:allow-other-keys)
567 ;; It doesn't find gtest_main because there's no pkg-config file
568 ;; for it. Find it another way.
569 (substitute* "unittest/meson.build"
570 (("libblasr_gtest_dep = dependency\\('gtest_main'.*")
571 (format #f "cpp = meson.get_compiler('cpp')
572 libblasr_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
573 (assoc-ref inputs "googletest"))))
574 #t)))
575 ;; TODO: unittest/libblasr_unittest cannot be linked
576 ;; ld: ;; unittest/df08227@@libblasr_unittest@exe/alignment_utils_FileUtils_gtest.cpp.o:
577 ;; undefined reference to symbol
578 ;; '_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_'
579 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
580 ;; error adding symbols: DSO missing from command line
581 #:tests? #f
582 #:configure-flags '("-Dtests=false")))
583 (inputs
584 `(("boost" ,boost)
585 ("hdf5" ,hdf5)
586 ("pbbam" ,pbbam)
587 ("zlib" ,zlib)))
588 (native-inputs
589 `(("googletest" ,googletest)
590 ("pkg-config" ,pkg-config)))
591 (home-page "https://github.com/PacificBiosciences/blasr_libcpp")
592 (synopsis "Library for analyzing PacBio genomic sequences")
593 (description
594 "This package provides three libraries used by applications for analyzing
595 PacBio genomic sequences. This library contains three sub-libraries: pbdata,
596 hdf and alignment.")
597 (license license:bsd-3)))
598
599 (define-public blasr
600 (package
601 (name "blasr")
602 (version "5.3.3")
603 (source (origin
604 (method git-fetch)
605 (uri (git-reference
606 (url "https://github.com/PacificBiosciences/blasr.git")
607 (commit version)))
608 (file-name (git-file-name name version))
609 (sha256
610 (base32
611 "1skgy2mvz8gsgfh1gc2nfgwvpyzb1hpmp2cf2773h5wsj8nw22kl"))))
612 (build-system meson-build-system)
613 (arguments
614 `(#:phases
615 (modify-phases %standard-phases
616 (add-after 'unpack 'link-with-hdf5
617 (lambda* (#:key inputs #:allow-other-keys)
618 (let ((hdf5 (assoc-ref inputs "hdf5")))
619 (substitute* "meson.build"
620 (("blasr_deps = \\[" m)
621 (string-append
622 m
623 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
624 cpp.find_library('hdf5_cpp', dirs : '~a'), "
625 hdf5 hdf5)))))
626 #t)))
627 ;; Tests require "cram" executable, which is not packaged.
628 #:tests? #f
629 #:configure-flags '("-Dtests=false")))
630 (inputs
631 `(("boost" ,boost)
632 ("blasr-libcpp" ,blasr-libcpp)
633 ("hdf5" ,hdf5)
634 ("pbbam" ,pbbam)
635 ("zlib" ,zlib)))
636 (native-inputs
637 `(("pkg-config" ,pkg-config)))
638 (home-page "https://github.com/PacificBiosciences/blasr")
639 (synopsis "PacBio long read aligner")
640 (description
641 "Blasr is a genomic sequence aligner for processing PacBio long reads.")
642 (license license:bsd-3)))
643
644 (define-public ribotaper
645 (package
646 (name "ribotaper")
647 (version "1.3.1")
648 (source (origin
649 (method url-fetch)
650 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
651 "files/RiboTaper/RiboTaper_Version_"
652 version ".tar.gz"))
653 (sha256
654 (base32
655 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
656 (build-system gnu-build-system)
657 (arguments
658 `(#:phases
659 (modify-phases %standard-phases
660 (add-after 'install 'wrap-executables
661 (lambda* (#:key inputs outputs #:allow-other-keys)
662 (let* ((out (assoc-ref outputs "out")))
663 (for-each
664 (lambda (script)
665 (wrap-program (string-append out "/bin/" script)
666 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
667 '("create_annotations_files.bash"
668 "create_metaplots.bash"
669 "Ribotaper_ORF_find.sh"
670 "Ribotaper.sh")))
671 #t)))))
672 (inputs
673 `(("bedtools" ,bedtools-2.18)
674 ("samtools" ,samtools-0.1)
675 ("r-minimal" ,r-minimal)
676 ("r-foreach" ,r-foreach)
677 ("r-xnomial" ,r-xnomial)
678 ("r-domc" ,r-domc)
679 ("r-multitaper" ,r-multitaper)
680 ("r-seqinr" ,r-seqinr)))
681 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
682 (synopsis "Define translated ORFs using ribosome profiling data")
683 (description
684 "Ribotaper is a method for defining translated @dfn{open reading
685 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
686 provides the Ribotaper pipeline.")
687 (license license:gpl3+)))
688
689 (define-public ribodiff
690 (package
691 (name "ribodiff")
692 (version "0.2.2")
693 (source
694 (origin
695 (method git-fetch)
696 (uri (git-reference
697 (url "https://github.com/ratschlab/RiboDiff.git")
698 (commit (string-append "v" version))))
699 (file-name (git-file-name name version))
700 (sha256
701 (base32
702 "0x75nlp7qnmm64jasbi6l21f2cy99r2cjyl6b4hr8zf2bq22drnz"))))
703 (build-system python-build-system)
704 (arguments
705 `(#:python ,python-2
706 #:phases
707 (modify-phases %standard-phases
708 ;; Generate an installable executable script wrapper.
709 (add-after 'unpack 'patch-setup.py
710 (lambda _
711 (substitute* "setup.py"
712 (("^(.*)packages=.*" line prefix)
713 (string-append line "\n"
714 prefix "scripts=['scripts/TE.py'],\n")))
715 #t)))))
716 (inputs
717 `(("python-numpy" ,python2-numpy)
718 ("python-matplotlib" ,python2-matplotlib)
719 ("python-scipy" ,python2-scipy)
720 ("python-statsmodels" ,python2-statsmodels)))
721 (native-inputs
722 `(("python-mock" ,python2-mock)
723 ("python-nose" ,python2-nose)))
724 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
725 (synopsis "Detect translation efficiency changes from ribosome footprints")
726 (description "RiboDiff is a statistical tool that detects the protein
727 translational efficiency change from Ribo-Seq (ribosome footprinting) and
728 RNA-Seq data. It uses a generalized linear model to detect genes showing
729 difference in translational profile taking mRNA abundance into account. It
730 facilitates us to decipher the translational regulation that behave
731 independently with transcriptional regulation.")
732 (license license:gpl3+)))
733
734 (define-public bioawk
735 (package
736 (name "bioawk")
737 (version "1.0")
738 (source (origin
739 (method git-fetch)
740 (uri (git-reference
741 (url "https://github.com/lh3/bioawk.git")
742 (commit (string-append "v" version))))
743 (file-name (git-file-name name version))
744 (sha256
745 (base32
746 "1pxc3zdnirxbf9a0az698hd8xdik7qkhypm7v6hn922x8y9qmspm"))))
747 (build-system gnu-build-system)
748 (inputs
749 `(("zlib" ,zlib)))
750 (native-inputs
751 `(("bison" ,bison)))
752 (arguments
753 `(#:tests? #f ; There are no tests to run.
754 ;; Bison must generate files, before other targets can build.
755 #:parallel-build? #f
756 #:phases
757 (modify-phases %standard-phases
758 (delete 'configure) ; There is no configure phase.
759 (replace 'install
760 (lambda* (#:key outputs #:allow-other-keys)
761 (let* ((out (assoc-ref outputs "out"))
762 (bin (string-append out "/bin"))
763 (man (string-append out "/share/man/man1")))
764 (mkdir-p man)
765 (copy-file "awk.1" (string-append man "/bioawk.1"))
766 (install-file "bioawk" bin))
767 #t)))))
768 (home-page "https://github.com/lh3/bioawk")
769 (synopsis "AWK with bioinformatics extensions")
770 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
771 support of several common biological data formats, including optionally gzip'ed
772 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
773 also adds a few built-in functions and a command line option to use TAB as the
774 input/output delimiter. When the new functionality is not used, bioawk is
775 intended to behave exactly the same as the original BWK awk.")
776 (license license:x11)))
777
778 (define-public python-pybedtools
779 (package
780 (name "python-pybedtools")
781 (version "0.8.0")
782 (source (origin
783 (method url-fetch)
784 (uri (pypi-uri "pybedtools" version))
785 (sha256
786 (base32
787 "1xl454ijvd4dzfvqgfahad49b49j7qy710fq9xh1rvk42z6x5ssf"))))
788 (build-system python-build-system)
789 (arguments
790 `(#:modules ((ice-9 ftw)
791 (srfi srfi-1)
792 (srfi srfi-26)
793 (guix build utils)
794 (guix build python-build-system))
795 ;; See https://github.com/daler/pybedtools/issues/192
796 #:phases
797 (modify-phases %standard-phases
798 ;; See https://github.com/daler/pybedtools/issues/261
799 (add-after 'unpack 'disable-broken-tests
800 (lambda _
801 ;; This test (pybedtools.test.test_scripts.test_venn_mpl) needs a
802 ;; graphical environment.
803 (substitute* "pybedtools/test/test_scripts.py"
804 (("def test_venn_mpl")
805 "def _do_not_test_venn_mpl"))
806 (substitute* "pybedtools/test/test_helpers.py"
807 ;; Requires internet access.
808 (("def test_chromsizes")
809 "def _do_not_test_chromsizes")
810 ;; Broken as a result of the workaround used in the check phase
811 ;; (see: https://github.com/daler/pybedtools/issues/192).
812 (("def test_getting_example_beds")
813 "def _do_not_test_getting_example_beds"))
814 #t))
815 ;; TODO: Remove phase after it's part of PYTHON-BUILD-SYSTEM.
816 ;; build system.
817 ;; Force the Cythonization of C++ files to guard against compilation
818 ;; problems.
819 (add-after 'unpack 'remove-cython-generated-files
820 (lambda _
821 (let ((cython-sources (map (cut string-drop-right <> 4)
822 (find-files "." "\\.pyx$")))
823 (c/c++-files (find-files "." "\\.(c|cpp|cxx)$")))
824 (define (strip-extension filename)
825 (string-take filename (string-index-right filename #\.)))
826 (define (cythonized? c/c++-file)
827 (member (strip-extension c/c++-file) cython-sources))
828 (for-each delete-file (filter cythonized? c/c++-files))
829 #t)))
830 (add-after 'remove-cython-generated-files 'generate-cython-extensions
831 (lambda _
832 (invoke "python" "setup.py" "cythonize")))
833 (replace 'check
834 (lambda _
835 (let* ((cwd (getcwd))
836 (build-root-directory (string-append cwd "/build/"))
837 (build (string-append
838 build-root-directory
839 (find (cut string-prefix? "lib" <>)
840 (scandir (string-append
841 build-root-directory)))))
842 (scripts (string-append
843 build-root-directory
844 (find (cut string-prefix? "scripts" <>)
845 (scandir build-root-directory)))))
846 (setenv "PYTHONPATH"
847 (string-append build ":" (getenv "PYTHONPATH")))
848 ;; Executable scripts such as 'intron_exon_reads.py' must be
849 ;; available in the PATH.
850 (setenv "PATH"
851 (string-append scripts ":" (getenv "PATH"))))
852 ;; The tests need to be run from elsewhere...
853 (mkdir-p "/tmp/test")
854 (copy-recursively "pybedtools/test" "/tmp/test")
855 (with-directory-excursion "/tmp/test"
856 (invoke "pytest")))))))
857 (propagated-inputs
858 `(("bedtools" ,bedtools)
859 ("samtools" ,samtools)
860 ("python-matplotlib" ,python-matplotlib)
861 ("python-pysam" ,python-pysam)
862 ("python-pyyaml" ,python-pyyaml)))
863 (native-inputs
864 `(("python-numpy" ,python-numpy)
865 ("python-pandas" ,python-pandas)
866 ("python-cython" ,python-cython)
867 ("kentutils" ,kentutils) ; for bedGraphToBigWig
868 ("python-six" ,python-six)
869 ;; For the test suite.
870 ("python-pytest" ,python-pytest)
871 ("python-psutil" ,python-psutil)))
872 (home-page "https://pythonhosted.org/pybedtools/")
873 (synopsis "Python wrapper for BEDtools programs")
874 (description
875 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
876 which are widely used for genomic interval manipulation or \"genome algebra\".
877 pybedtools extends BEDTools by offering feature-level manipulations from with
878 Python.")
879 (license license:gpl2+)))
880
881 (define-public python2-pybedtools
882 (package-with-python2 python-pybedtools))
883
884 (define-public python-biom-format
885 (package
886 (name "python-biom-format")
887 (version "2.1.7")
888 (source
889 (origin
890 (method git-fetch)
891 ;; Use GitHub as source because PyPI distribution does not contain
892 ;; test data: https://github.com/biocore/biom-format/issues/693
893 (uri (git-reference
894 (url "https://github.com/biocore/biom-format.git")
895 (commit version)))
896 (file-name (git-file-name name version))
897 (sha256
898 (base32
899 "1rna16lyk5aqhnv0dp77wwaplias93f1vw28ad3jmyw6hwkai05v"))
900 (modules '((guix build utils)))
901 (snippet '(begin
902 ;; Delete generated C files.
903 (for-each delete-file (find-files "." "\\.c"))
904 #t))))
905 (build-system python-build-system)
906 (arguments
907 `(#:phases
908 (modify-phases %standard-phases
909 (add-after 'unpack 'use-cython
910 (lambda _ (setenv "USE_CYTHON" "1") #t))
911 (add-after 'unpack 'disable-broken-tests
912 (lambda _
913 (substitute* "biom/tests/test_cli/test_validate_table.py"
914 (("^(.+)def test_invalid_hdf5" m indent)
915 (string-append indent
916 "@npt.dec.skipif(True, msg='Guix')\n"
917 m)))
918 (substitute* "biom/tests/test_table.py"
919 (("^(.+)def test_from_hdf5_issue_731" m indent)
920 (string-append indent
921 "@npt.dec.skipif(True, msg='Guix')\n"
922 m)))
923 #t))
924 (add-before 'reset-gzip-timestamps 'make-files-writable
925 (lambda* (#:key outputs #:allow-other-keys)
926 (let ((out (assoc-ref outputs "out")))
927 (for-each (lambda (file) (chmod file #o644))
928 (find-files out "\\.gz"))
929 #t))))))
930 (propagated-inputs
931 `(("python-numpy" ,python-numpy)
932 ("python-scipy" ,python-scipy)
933 ("python-flake8" ,python-flake8)
934 ("python-future" ,python-future)
935 ("python-click" ,python-click)
936 ("python-h5py" ,python-h5py)
937 ("python-pandas" ,python-pandas)))
938 (native-inputs
939 `(("python-cython" ,python-cython)
940 ("python-pytest" ,python-pytest)
941 ("python-pytest-cov" ,python-pytest-cov)
942 ("python-nose" ,python-nose)))
943 (home-page "http://www.biom-format.org")
944 (synopsis "Biological Observation Matrix (BIOM) format utilities")
945 (description
946 "The BIOM file format is designed to be a general-use format for
947 representing counts of observations e.g. operational taxonomic units, KEGG
948 orthology groups or lipid types, in one or more biological samples
949 e.g. microbiome samples, genomes, metagenomes.")
950 (license license:bsd-3)
951 (properties `((python2-variant . ,(delay python2-biom-format))))))
952
953 (define-public python2-biom-format
954 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
955 (package
956 (inherit base)
957 (arguments
958 (substitute-keyword-arguments (package-arguments base)
959 ((#:phases phases)
960 `(modify-phases ,phases
961 ;; Do not require the unmaintained pyqi library.
962 (add-after 'unpack 'remove-pyqi
963 (lambda _
964 (substitute* "setup.py"
965 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
966 #t)))))))))
967
968 (define-public bioperl-minimal
969 (let* ((inputs `(("perl-module-build" ,perl-module-build)
970 ("perl-data-stag" ,perl-data-stag)
971 ("perl-libwww" ,perl-libwww)
972 ("perl-uri" ,perl-uri)))
973 (transitive-inputs
974 (map (compose package-name cadr)
975 (delete-duplicates
976 (concatenate
977 (map (compose package-transitive-target-inputs cadr) inputs))))))
978 (package
979 (name "bioperl-minimal")
980 (version "1.7.0")
981 (source
982 (origin
983 (method url-fetch)
984 (uri (string-append "https://github.com/bioperl/bioperl-live/"
985 "archive/release-"
986 (string-map (lambda (c)
987 (if (char=? c #\.)
988 #\- c)) version)
989 ".tar.gz"))
990 (sha256
991 (base32
992 "12phgpxwgkqflkwfb9dcqg7a31dpjlfhar8wcgv0aj5ln4akfz06"))))
993 (build-system perl-build-system)
994 (arguments
995 `(#:phases
996 (modify-phases %standard-phases
997 (add-after
998 'install 'wrap-programs
999 (lambda* (#:key outputs #:allow-other-keys)
1000 ;; Make sure all executables in "bin" find the required Perl
1001 ;; modules at runtime. As the PERL5LIB variable contains also
1002 ;; the paths of native inputs, we pick the transitive target
1003 ;; inputs from %build-inputs.
1004 (let* ((out (assoc-ref outputs "out"))
1005 (bin (string-append out "/bin/"))
1006 (path (string-join
1007 (cons (string-append out "/lib/perl5/site_perl")
1008 (map (lambda (name)
1009 (assoc-ref %build-inputs name))
1010 ',transitive-inputs))
1011 ":")))
1012 (for-each (lambda (file)
1013 (wrap-program file
1014 `("PERL5LIB" ":" prefix (,path))))
1015 (find-files bin "\\.pl$"))
1016 #t))))))
1017 (inputs inputs)
1018 (native-inputs
1019 `(("perl-test-most" ,perl-test-most)))
1020 (home-page "https://metacpan.org/release/BioPerl")
1021 (synopsis "Bioinformatics toolkit")
1022 (description
1023 "BioPerl is the product of a community effort to produce Perl code which
1024 is useful in biology. Examples include Sequence objects, Alignment objects
1025 and database searching objects. These objects not only do what they are
1026 advertised to do in the documentation, but they also interact - Alignment
1027 objects are made from the Sequence objects, Sequence objects have access to
1028 Annotation and SeqFeature objects and databases, Blast objects can be
1029 converted to Alignment objects, and so on. This means that the objects
1030 provide a coordinated and extensible framework to do computational biology.")
1031 (license license:perl-license))))
1032
1033 (define-public python-biopython
1034 (package
1035 (name "python-biopython")
1036 (version "1.70")
1037 (source (origin
1038 (method url-fetch)
1039 ;; use PyPi rather than biopython.org to ease updating
1040 (uri (pypi-uri "biopython" version))
1041 (sha256
1042 (base32
1043 "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
1044 (build-system python-build-system)
1045 (arguments
1046 `(#:phases
1047 (modify-phases %standard-phases
1048 (add-before 'check 'set-home
1049 ;; Some tests require a home directory to be set.
1050 (lambda _ (setenv "HOME" "/tmp") #t)))))
1051 (propagated-inputs
1052 `(("python-numpy" ,python-numpy)))
1053 (home-page "http://biopython.org/")
1054 (synopsis "Tools for biological computation in Python")
1055 (description
1056 "Biopython is a set of tools for biological computation including parsers
1057 for bioinformatics files into Python data structures; interfaces to common
1058 bioinformatics programs; a standard sequence class and tools for performing
1059 common operations on them; code to perform data classification; code for
1060 dealing with alignments; code making it easy to split up parallelizable tasks
1061 into separate processes; and more.")
1062 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
1063
1064 (define-public python2-biopython
1065 (package-with-python2 python-biopython))
1066
1067 (define-public python-fastalite
1068 (package
1069 (name "python-fastalite")
1070 (version "0.3")
1071 (source
1072 (origin
1073 (method url-fetch)
1074 (uri (pypi-uri "fastalite" version))
1075 (sha256
1076 (base32
1077 "1qli6pxp77i9xn2wfciq2zaxhl82bdxb33cpzqzj1z25yd036wqj"))))
1078 (build-system python-build-system)
1079 (arguments
1080 `(#:tests? #f)) ; Test data is not distributed.
1081 (home-page "https://github.com/nhoffman/fastalite")
1082 (synopsis "Simplest possible FASTA parser")
1083 (description "This library implements a FASTA and a FASTQ parser without
1084 relying on a complex dependency tree.")
1085 (license license:expat)))
1086
1087 (define-public python2-fastalite
1088 (package-with-python2 python-fastalite))
1089
1090 (define-public bpp-core
1091 ;; The last release was in 2014 and the recommended way to install from source
1092 ;; is to clone the git repository, so we do this.
1093 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1094 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
1095 (package
1096 (name "bpp-core")
1097 (version (string-append "2.2.0-1." (string-take commit 7)))
1098 (source (origin
1099 (method git-fetch)
1100 (uri (git-reference
1101 (url "http://biopp.univ-montp2.fr/git/bpp-core")
1102 (commit commit)))
1103 (file-name (string-append name "-" version "-checkout"))
1104 (sha256
1105 (base32
1106 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
1107 (build-system cmake-build-system)
1108 (arguments
1109 `(#:parallel-build? #f))
1110 (inputs
1111 `(("gcc" ,gcc-5))) ; Compilation of bpp-phyl fails with GCC 4.9 so we
1112 ; compile all of the bpp packages with GCC 5.
1113 (home-page "http://biopp.univ-montp2.fr")
1114 (synopsis "C++ libraries for Bioinformatics")
1115 (description
1116 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1117 analysis, phylogenetics, molecular evolution and population genetics. It is
1118 Object Oriented and is designed to be both easy to use and computer efficient.
1119 Bio++ intends to help programmers to write computer expensive programs, by
1120 providing them a set of re-usable tools.")
1121 (license license:cecill-c))))
1122
1123 (define-public bpp-phyl
1124 ;; The last release was in 2014 and the recommended way to install from source
1125 ;; is to clone the git repository, so we do this.
1126 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1127 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
1128 (package
1129 (name "bpp-phyl")
1130 (version (string-append "2.2.0-1." (string-take commit 7)))
1131 (source (origin
1132 (method git-fetch)
1133 (uri (git-reference
1134 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
1135 (commit commit)))
1136 (file-name (string-append name "-" version "-checkout"))
1137 (sha256
1138 (base32
1139 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
1140 (build-system cmake-build-system)
1141 (arguments
1142 `(#:parallel-build? #f
1143 ;; If out-of-source, test data is not copied into the build directory
1144 ;; so the tests fail.
1145 #:out-of-source? #f))
1146 (inputs
1147 `(("bpp-core" ,bpp-core)
1148 ("bpp-seq" ,bpp-seq)
1149 ;; GCC 4.8 fails due to an 'internal compiler error', so we use a more
1150 ;; modern GCC.
1151 ("gcc" ,gcc-5)))
1152 (home-page "http://biopp.univ-montp2.fr")
1153 (synopsis "Bio++ phylogenetic Library")
1154 (description
1155 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1156 analysis, phylogenetics, molecular evolution and population genetics. This
1157 library provides phylogenetics-related modules.")
1158 (license license:cecill-c))))
1159
1160 (define-public bpp-popgen
1161 ;; The last release was in 2014 and the recommended way to install from source
1162 ;; is to clone the git repository, so we do this.
1163 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1164 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
1165 (package
1166 (name "bpp-popgen")
1167 (version (string-append "2.2.0-1." (string-take commit 7)))
1168 (source (origin
1169 (method git-fetch)
1170 (uri (git-reference
1171 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
1172 (commit commit)))
1173 (file-name (string-append name "-" version "-checkout"))
1174 (sha256
1175 (base32
1176 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
1177 (build-system cmake-build-system)
1178 (arguments
1179 `(#:parallel-build? #f
1180 #:tests? #f)) ; There are no tests.
1181 (inputs
1182 `(("bpp-core" ,bpp-core)
1183 ("bpp-seq" ,bpp-seq)
1184 ("gcc" ,gcc-5)))
1185 (home-page "http://biopp.univ-montp2.fr")
1186 (synopsis "Bio++ population genetics library")
1187 (description
1188 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1189 analysis, phylogenetics, molecular evolution and population genetics. This
1190 library provides population genetics-related modules.")
1191 (license license:cecill-c))))
1192
1193 (define-public bpp-seq
1194 ;; The last release was in 2014 and the recommended way to install from source
1195 ;; is to clone the git repository, so we do this.
1196 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1197 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
1198 (package
1199 (name "bpp-seq")
1200 (version (string-append "2.2.0-1." (string-take commit 7)))
1201 (source (origin
1202 (method git-fetch)
1203 (uri (git-reference
1204 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
1205 (commit commit)))
1206 (file-name (string-append name "-" version "-checkout"))
1207 (sha256
1208 (base32
1209 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
1210 (build-system cmake-build-system)
1211 (arguments
1212 `(#:parallel-build? #f
1213 ;; If out-of-source, test data is not copied into the build directory
1214 ;; so the tests fail.
1215 #:out-of-source? #f))
1216 (inputs
1217 `(("bpp-core" ,bpp-core)
1218 ("gcc" ,gcc-5))) ; Use GCC 5 as per 'bpp-core'.
1219 (home-page "http://biopp.univ-montp2.fr")
1220 (synopsis "Bio++ sequence library")
1221 (description
1222 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1223 analysis, phylogenetics, molecular evolution and population genetics. This
1224 library provides sequence-related modules.")
1225 (license license:cecill-c))))
1226
1227 (define-public bppsuite
1228 ;; The last release was in 2014 and the recommended way to install from source
1229 ;; is to clone the git repository, so we do this.
1230 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1231 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
1232 (package
1233 (name "bppsuite")
1234 (version (string-append "2.2.0-1." (string-take commit 7)))
1235 (source (origin
1236 (method git-fetch)
1237 (uri (git-reference
1238 (url "http://biopp.univ-montp2.fr/git/bppsuite")
1239 (commit commit)))
1240 (file-name (string-append name "-" version "-checkout"))
1241 (sha256
1242 (base32
1243 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
1244 (build-system cmake-build-system)
1245 (arguments
1246 `(#:parallel-build? #f
1247 #:tests? #f)) ; There are no tests.
1248 (native-inputs
1249 `(("groff" ,groff)
1250 ("man-db" ,man-db)
1251 ("texinfo" ,texinfo)))
1252 (inputs
1253 `(("bpp-core" ,bpp-core)
1254 ("bpp-seq" ,bpp-seq)
1255 ("bpp-phyl" ,bpp-phyl)
1256 ("bpp-phyl" ,bpp-popgen)
1257 ("gcc" ,gcc-5)))
1258 (home-page "http://biopp.univ-montp2.fr")
1259 (synopsis "Bioinformatics tools written with the Bio++ libraries")
1260 (description
1261 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1262 analysis, phylogenetics, molecular evolution and population genetics. This
1263 package provides command line tools using the Bio++ library.")
1264 (license license:cecill-c))))
1265
1266 (define-public blast+
1267 (package
1268 (name "blast+")
1269 (version "2.7.1")
1270 (source (origin
1271 (method url-fetch)
1272 (uri (string-append
1273 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
1274 version "/ncbi-blast-" version "+-src.tar.gz"))
1275 (sha256
1276 (base32
1277 "1jlq0afxxgczpp35k6mxh8mn4jzq7vqcnaixk166sfj10wq8v9qh"))
1278 (modules '((guix build utils)))
1279 (snippet
1280 '(begin
1281 ;; Remove bundled bzip2, zlib and pcre.
1282 (delete-file-recursively "c++/src/util/compress/bzip2")
1283 (delete-file-recursively "c++/src/util/compress/zlib")
1284 (delete-file-recursively "c++/src/util/regexp")
1285 (substitute* "c++/src/util/compress/Makefile.in"
1286 (("bzip2 zlib api") "api"))
1287 ;; Remove useless msbuild directory
1288 (delete-file-recursively
1289 "c++/src/build-system/project_tree_builder/msbuild")
1290 #t))))
1291 (build-system gnu-build-system)
1292 (arguments
1293 `(;; There are two(!) tests for this massive library, and both fail with
1294 ;; "unparsable timing stats".
1295 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
1296 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
1297 #:tests? #f
1298 #:out-of-source? #t
1299 #:parallel-build? #f ; not supported
1300 #:phases
1301 (modify-phases %standard-phases
1302 (add-before 'configure 'set-HOME
1303 ;; $HOME needs to be set at some point during the configure phase
1304 (lambda _ (setenv "HOME" "/tmp") #t))
1305 (add-after 'unpack 'enter-dir
1306 (lambda _ (chdir "c++") #t))
1307 (add-after 'enter-dir 'fix-build-system
1308 (lambda _
1309 (define (which* cmd)
1310 (cond ((string=? cmd "date")
1311 ;; make call to "date" deterministic
1312 "date -d @0")
1313 ((which cmd)
1314 => identity)
1315 (else
1316 (format (current-error-port)
1317 "WARNING: Unable to find absolute path for ~s~%"
1318 cmd)
1319 #f)))
1320
1321 ;; Rewrite hardcoded paths to various tools
1322 (substitute* (append '("src/build-system/configure.ac"
1323 "src/build-system/configure"
1324 "src/build-system/helpers/run_with_lock.c"
1325 "scripts/common/impl/if_diff.sh"
1326 "scripts/common/impl/run_with_lock.sh"
1327 "src/build-system/Makefile.configurables.real"
1328 "src/build-system/Makefile.in.top"
1329 "src/build-system/Makefile.meta.gmake=no"
1330 "src/build-system/Makefile.meta.in"
1331 "src/build-system/Makefile.meta_l"
1332 "src/build-system/Makefile.meta_p"
1333 "src/build-system/Makefile.meta_r"
1334 "src/build-system/Makefile.mk.in"
1335 "src/build-system/Makefile.requirements"
1336 "src/build-system/Makefile.rules_with_autodep.in")
1337 (find-files "scripts/common/check" "\\.sh$"))
1338 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1339 (or (which* cmd) all)))
1340
1341 (substitute* (find-files "src/build-system" "^config.*")
1342 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1343 (("^PATH=.*") ""))
1344
1345 ;; rewrite "/var/tmp" in check script
1346 (substitute* "scripts/common/check/check_make_unix.sh"
1347 (("/var/tmp") "/tmp"))
1348
1349 ;; do not reset PATH
1350 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1351 (("^ *PATH=.*") "")
1352 (("action=/bin/") "action=")
1353 (("export PATH") ":"))
1354 #t))
1355 (replace 'configure
1356 (lambda* (#:key inputs outputs #:allow-other-keys)
1357 (let ((out (assoc-ref outputs "out"))
1358 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1359 (include (string-append (assoc-ref outputs "include")
1360 "/include/ncbi-tools++")))
1361 ;; The 'configure' script doesn't recognize things like
1362 ;; '--enable-fast-install'.
1363 (invoke "./configure.orig"
1364 (string-append "--with-build-root=" (getcwd) "/build")
1365 (string-append "--prefix=" out)
1366 (string-append "--libdir=" lib)
1367 (string-append "--includedir=" include)
1368 (string-append "--with-bz2="
1369 (assoc-ref inputs "bzip2"))
1370 (string-append "--with-z="
1371 (assoc-ref inputs "zlib"))
1372 (string-append "--with-pcre="
1373 (assoc-ref inputs "pcre"))
1374 ;; Each library is built twice by default, once
1375 ;; with "-static" in its name, and again
1376 ;; without.
1377 "--without-static"
1378 "--with-dll")
1379 #t))))))
1380 (outputs '("out" ; 21 MB
1381 "lib" ; 226 MB
1382 "include")) ; 33 MB
1383 (inputs
1384 `(("bzip2" ,bzip2)
1385 ("lmdb" ,lmdb)
1386 ("zlib" ,zlib)
1387 ("pcre" ,pcre)
1388 ("perl" ,perl)
1389 ("python" ,python-wrapper)))
1390 (native-inputs
1391 `(("cpio" ,cpio)))
1392 (home-page "http://blast.ncbi.nlm.nih.gov")
1393 (synopsis "Basic local alignment search tool")
1394 (description
1395 "BLAST is a popular method of performing a DNA or protein sequence
1396 similarity search, using heuristics to produce results quickly. It also
1397 calculates an “expect value” that estimates how many matches would have
1398 occurred at a given score by chance, which can aid a user in judging how much
1399 confidence to have in an alignment.")
1400 ;; Most of the sources are in the public domain, with the following
1401 ;; exceptions:
1402 ;; * Expat:
1403 ;; * ./c++/include/util/bitset/
1404 ;; * ./c++/src/html/ncbi_menu*.js
1405 ;; * Boost license:
1406 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1407 ;; * LGPL 2+:
1408 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1409 ;; * ASL 2.0:
1410 ;; * ./c++/src/corelib/teamcity_*
1411 (license (list license:public-domain
1412 license:expat
1413 license:boost1.0
1414 license:lgpl2.0+
1415 license:asl2.0))))
1416
1417 (define-public bless
1418 (package
1419 (name "bless")
1420 (version "1p02")
1421 (source (origin
1422 (method url-fetch)
1423 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1424 version ".tgz"))
1425 (sha256
1426 (base32
1427 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1428 (modules '((guix build utils)))
1429 (snippet
1430 `(begin
1431 ;; Remove bundled boost, pigz, zlib, and .git directory
1432 ;; FIXME: also remove bundled sources for murmurhash3 and
1433 ;; kmc once packaged.
1434 (delete-file-recursively "boost")
1435 (delete-file-recursively "pigz")
1436 (delete-file-recursively "google-sparsehash")
1437 (delete-file-recursively "zlib")
1438 (delete-file-recursively ".git")
1439 #t))))
1440 (build-system gnu-build-system)
1441 (arguments
1442 '(#:tests? #f ;no "check" target
1443 #:make-flags
1444 (list (string-append "ZLIB="
1445 (assoc-ref %build-inputs "zlib:static")
1446 "/lib/libz.a")
1447 (string-append "LDFLAGS="
1448 (string-join '("-lboost_filesystem"
1449 "-lboost_system"
1450 "-lboost_iostreams"
1451 "-lz"
1452 "-fopenmp"
1453 "-std=c++11"))))
1454 #:phases
1455 (modify-phases %standard-phases
1456 (add-after 'unpack 'do-not-build-bundled-pigz
1457 (lambda* (#:key inputs outputs #:allow-other-keys)
1458 (substitute* "Makefile"
1459 (("cd pigz/pigz-2.3.3; make") ""))
1460 #t))
1461 (add-after 'unpack 'patch-paths-to-executables
1462 (lambda* (#:key inputs outputs #:allow-other-keys)
1463 (substitute* "parse_args.cpp"
1464 (("kmc_binary = .*")
1465 (string-append "kmc_binary = \""
1466 (assoc-ref outputs "out")
1467 "/bin/kmc\";"))
1468 (("pigz_binary = .*")
1469 (string-append "pigz_binary = \""
1470 (assoc-ref inputs "pigz")
1471 "/bin/pigz\";")))
1472 #t))
1473 (replace 'install
1474 (lambda* (#:key outputs #:allow-other-keys)
1475 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1476 (for-each (lambda (file)
1477 (install-file file bin))
1478 '("bless" "kmc/bin/kmc"))
1479 #t)))
1480 (delete 'configure))))
1481 (native-inputs
1482 `(("perl" ,perl)))
1483 (inputs
1484 `(("openmpi" ,openmpi)
1485 ("boost" ,boost)
1486 ("sparsehash" ,sparsehash)
1487 ("pigz" ,pigz)
1488 ("zlib:static" ,zlib "static")
1489 ("zlib" ,zlib)))
1490 (supported-systems '("x86_64-linux"))
1491 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1492 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1493 (description
1494 "@dfn{Bloom-filter-based error correction solution for high-throughput
1495 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1496 correction tool for genomic reads produced by @dfn{Next-generation
1497 sequencing} (NGS). BLESS produces accurate correction results with much less
1498 memory compared with previous solutions and is also able to tolerate a higher
1499 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1500 errors at the end of reads.")
1501 (license license:gpl3+)))
1502
1503 (define-public bowtie
1504 (package
1505 (name "bowtie")
1506 (version "2.3.4.3")
1507 (source (origin
1508 (method git-fetch)
1509 (uri (git-reference
1510 (url "https://github.com/BenLangmead/bowtie2.git")
1511 (commit (string-append "v" version))))
1512 (file-name (git-file-name name version))
1513 (sha256
1514 (base32
1515 "1zl3cf327y2p7p03cavymbh7b00djc7lncfaqih33n96iy9q8ibp"))
1516 (modules '((guix build utils)))
1517 (snippet
1518 '(begin
1519 (substitute* "Makefile"
1520 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1521 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1522 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
1523 #t))))
1524 (build-system gnu-build-system)
1525 (arguments
1526 '(#:make-flags
1527 (list "allall"
1528 "WITH_TBB=1"
1529 (string-append "prefix=" (assoc-ref %outputs "out")))
1530 #:phases
1531 (modify-phases %standard-phases
1532 (delete 'configure)
1533 (replace 'check
1534 (lambda _
1535 (invoke "perl"
1536 "scripts/test/simple_tests.pl"
1537 "--bowtie2=./bowtie2"
1538 "--bowtie2-build=./bowtie2-build")
1539 #t)))))
1540 (inputs
1541 `(("tbb" ,tbb)
1542 ("zlib" ,zlib)
1543 ("python" ,python-wrapper)))
1544 (native-inputs
1545 `(("perl" ,perl)
1546 ("perl-clone" ,perl-clone)
1547 ("perl-test-deep" ,perl-test-deep)
1548 ("perl-test-simple" ,perl-test-simple)))
1549 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1550 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1551 (description
1552 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1553 reads to long reference sequences. It is particularly good at aligning reads
1554 of about 50 up to 100s or 1,000s of characters, and particularly good at
1555 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1556 genome with an FM Index to keep its memory footprint small: for the human
1557 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1558 gapped, local, and paired-end alignment modes.")
1559 (supported-systems '("x86_64-linux"))
1560 (license license:gpl3+)))
1561
1562 (define-public bowtie1
1563 (package
1564 (name "bowtie1")
1565 (version "1.2.2")
1566 (source (origin
1567 (method url-fetch)
1568 (uri (string-append "mirror://sourceforge/bowtie-bio/bowtie/"
1569 version "/bowtie-" version "-src.zip"))
1570 (sha256
1571 (base32
1572 "1jl2cj9bz8lwz8dwnxbycn8yp8g4kky62fkcxifyf1ri0y6n2vc0"))
1573 (modules '((guix build utils)))
1574 (snippet
1575 '(substitute* "Makefile"
1576 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1577 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1578 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
1579 (build-system gnu-build-system)
1580 (arguments
1581 '(#:tests? #f ; no "check" target
1582 #:make-flags
1583 (list "all"
1584 (string-append "prefix=" (assoc-ref %outputs "out")))
1585 #:phases
1586 (modify-phases %standard-phases
1587 (delete 'configure))))
1588 (inputs
1589 `(("tbb" ,tbb)
1590 ("zlib" ,zlib)))
1591 (supported-systems '("x86_64-linux"))
1592 (home-page "http://bowtie-bio.sourceforge.net/index.shtml")
1593 (synopsis "Fast aligner for short nucleotide sequence reads")
1594 (description
1595 "Bowtie is a fast, memory-efficient short read aligner. It aligns short
1596 DNA sequences (reads) to the human genome at a rate of over 25 million 35-bp
1597 reads per hour. Bowtie indexes the genome with a Burrows-Wheeler index to
1598 keep its memory footprint small: typically about 2.2 GB for the human
1599 genome (2.9 GB for paired-end).")
1600 (license license:artistic2.0)))
1601
1602 (define-public tophat
1603 (package
1604 (name "tophat")
1605 (version "2.1.1")
1606 (source (origin
1607 (method url-fetch)
1608 (uri (string-append
1609 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1610 version ".tar.gz"))
1611 (sha256
1612 (base32
1613 "19add02kv2xhd6ihd779dr7x35ggym3jqr0m5c4315i1yfb0p11p"))
1614 (modules '((guix build utils)))
1615 (snippet
1616 '(begin
1617 ;; Remove bundled SeqAn and samtools
1618 (delete-file-recursively "src/SeqAn-1.4.2")
1619 (delete-file-recursively "src/samtools-0.1.18")
1620 #t))))
1621 (build-system gnu-build-system)
1622 (arguments
1623 '(#:parallel-build? #f ; not supported
1624 #:phases
1625 (modify-phases %standard-phases
1626 (add-after 'unpack 'use-system-samtools
1627 (lambda* (#:key inputs #:allow-other-keys)
1628 (substitute* "src/Makefile.in"
1629 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1630 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1631 (("SAMPROG = samtools_0\\.1\\.18") "")
1632 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1633 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1634 (substitute* '("src/common.cpp"
1635 "src/tophat.py")
1636 (("samtools_0.1.18") (which "samtools")))
1637 (substitute* '("src/common.h"
1638 "src/bam2fastx.cpp")
1639 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1640 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1641 (substitute* '("src/bwt_map.h"
1642 "src/map2gtf.h"
1643 "src/align_status.h")
1644 (("#include <bam.h>") "#include <samtools/bam.h>")
1645 (("#include <sam.h>") "#include <samtools/sam.h>"))
1646 #t)))))
1647 (inputs
1648 `(("boost" ,boost)
1649 ("bowtie" ,bowtie)
1650 ("samtools" ,samtools-0.1)
1651 ("ncurses" ,ncurses)
1652 ("python" ,python-2)
1653 ("perl" ,perl)
1654 ("zlib" ,zlib)
1655 ("seqan" ,seqan-1)))
1656 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
1657 (synopsis "Spliced read mapper for RNA-Seq data")
1658 (description
1659 "TopHat is a fast splice junction mapper for nucleotide sequence
1660 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1661 mammalian-sized genomes using the ultra high-throughput short read
1662 aligner Bowtie, and then analyzes the mapping results to identify
1663 splice junctions between exons.")
1664 ;; TopHat is released under the Boost Software License, Version 1.0
1665 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1666 (license license:boost1.0)))
1667
1668 (define-public bwa
1669 (package
1670 (name "bwa")
1671 (version "0.7.17")
1672 (source (origin
1673 (method url-fetch)
1674 (uri (string-append
1675 "https://github.com/lh3/bwa/releases/download/v"
1676 version "/bwa-" version ".tar.bz2"))
1677 (sha256
1678 (base32
1679 "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy"))))
1680 (build-system gnu-build-system)
1681 (arguments
1682 '(#:tests? #f ;no "check" target
1683 #:phases
1684 (modify-phases %standard-phases
1685 (replace 'install
1686 (lambda* (#:key outputs #:allow-other-keys)
1687 (let ((bin (string-append
1688 (assoc-ref outputs "out") "/bin"))
1689 (doc (string-append
1690 (assoc-ref outputs "out") "/share/doc/bwa"))
1691 (man (string-append
1692 (assoc-ref outputs "out") "/share/man/man1")))
1693 (install-file "bwa" bin)
1694 (install-file "README.md" doc)
1695 (install-file "bwa.1" man))
1696 #t))
1697 ;; no "configure" script
1698 (delete 'configure))))
1699 (inputs `(("zlib" ,zlib)))
1700 ;; Non-portable SSE instructions are used so building fails on platforms
1701 ;; other than x86_64.
1702 (supported-systems '("x86_64-linux"))
1703 (home-page "http://bio-bwa.sourceforge.net/")
1704 (synopsis "Burrows-Wheeler sequence aligner")
1705 (description
1706 "BWA is a software package for mapping low-divergent sequences against a
1707 large reference genome, such as the human genome. It consists of three
1708 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1709 designed for Illumina sequence reads up to 100bp, while the rest two for
1710 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1711 features such as long-read support and split alignment, but BWA-MEM, which is
1712 the latest, is generally recommended for high-quality queries as it is faster
1713 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1714 70-100bp Illumina reads.")
1715 (license license:gpl3+)))
1716
1717 (define-public bwa-pssm
1718 (package (inherit bwa)
1719 (name "bwa-pssm")
1720 (version "0.5.11")
1721 (source (origin
1722 (method git-fetch)
1723 (uri (git-reference
1724 (url "https://github.com/pkerpedjiev/bwa-pssm.git")
1725 (commit version)))
1726 (file-name (git-file-name name version))
1727 (sha256
1728 (base32
1729 "076c4q0cdqz8jgylb067y9zmvxglppnzi3qiscn0xiypgc6lgb5r"))))
1730 (build-system gnu-build-system)
1731 (inputs
1732 `(("gdsl" ,gdsl)
1733 ("zlib" ,zlib)
1734 ("perl" ,perl)))
1735 (home-page "http://bwa-pssm.binf.ku.dk/")
1736 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1737 (description
1738 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1739 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1740 existing aligners it is fast and sensitive. Unlike most other aligners,
1741 however, it is also adaptible in the sense that one can direct the alignment
1742 based on known biases within the data set. It is coded as a modification of
1743 the original BWA alignment program and shares the genome index structure as
1744 well as many of the command line options.")
1745 (license license:gpl3+)))
1746
1747 (define-public bwa-meth
1748 (package
1749 (name "bwa-meth")
1750 (version "0.2.2")
1751 (source (origin
1752 (method git-fetch)
1753 (uri (git-reference
1754 (url "https://github.com/brentp/bwa-meth.git")
1755 (commit (string-append "v" version))))
1756 (file-name (git-file-name name version))
1757 (sha256
1758 (base32
1759 "17j31i7zws5j7mhsq9x3qgkxly6mlmrgwhfq0qbflgxrmx04yaiz"))))
1760 (build-system python-build-system)
1761 (arguments
1762 `(#:phases
1763 (modify-phases %standard-phases
1764 (add-after 'unpack 'keep-references-to-bwa
1765 (lambda* (#:key inputs #:allow-other-keys)
1766 (substitute* "bwameth.py"
1767 (("bwa mem")
1768 (string-append (which "bwa") " mem"))
1769 ;; There's an ill-advised check for "samtools" on PATH.
1770 (("^checkX.*") ""))
1771 #t)))))
1772 (inputs
1773 `(("bwa" ,bwa)))
1774 (native-inputs
1775 `(("python-toolshed" ,python-toolshed)))
1776 (home-page "https://github.com/brentp/bwa-meth")
1777 (synopsis "Fast and accurante alignment of BS-Seq reads")
1778 (description
1779 "BWA-Meth works for single-end reads and for paired-end reads from the
1780 directional protocol (most common). It uses the method employed by
1781 methylcoder and Bismark of in silico conversion of all C's to T's in both
1782 reference and reads. It recovers the original read (needed to tabulate
1783 methylation) by attaching it as a comment which BWA appends as a tag to the
1784 read. It performs favorably to existing aligners gauged by number of on and
1785 off-target reads for a capture method that targets CpG-rich region.")
1786 (license license:expat)))
1787
1788 (define-public python-bx-python
1789 (package
1790 (name "python-bx-python")
1791 (version "0.8.2")
1792 (source (origin
1793 (method url-fetch)
1794 (uri (pypi-uri "bx-python" version))
1795 (sha256
1796 (base32
1797 "11kksg2rbzihpmcid823xvg42xi88m7sz58rzk29abybkxy0rszs"))))
1798 (build-system python-build-system)
1799 ;; Tests fail because test data are not included
1800 (arguments '(#:tests? #f))
1801 (propagated-inputs
1802 `(("python-numpy" ,python-numpy)
1803 ("python-six" ,python-six)))
1804 (inputs
1805 `(("zlib" ,zlib)))
1806 (native-inputs
1807 `(("python-lzo" ,python-lzo)
1808 ("python-nose" ,python-nose)
1809 ("python-cython" ,python-cython)))
1810 (home-page "https://github.com/bxlab/bx-python")
1811 (synopsis "Tools for manipulating biological data")
1812 (description
1813 "bx-python provides tools for manipulating biological data, particularly
1814 multiple sequence alignments.")
1815 (license license:expat)))
1816
1817 (define-public python2-bx-python
1818 (package-with-python2 python-bx-python))
1819
1820 (define-public python-pysam
1821 (package
1822 (name "python-pysam")
1823 (version "0.15.1")
1824 (source (origin
1825 (method git-fetch)
1826 ;; Test data is missing on PyPi.
1827 (uri (git-reference
1828 (url "https://github.com/pysam-developers/pysam.git")
1829 (commit (string-append "v" version))))
1830 (file-name (git-file-name name version))
1831 (sha256
1832 (base32
1833 "1vj367w6xbn9bpmksm162l1aipf7cj97h1q83y7jcpm33ihwpf7x"))
1834 (modules '((guix build utils)))
1835 (snippet '(begin
1836 ;; Drop bundled htslib. TODO: Also remove samtools
1837 ;; and bcftools.
1838 (delete-file-recursively "htslib")
1839 #t))))
1840 (build-system python-build-system)
1841 (arguments
1842 `(#:modules ((ice-9 ftw)
1843 (srfi srfi-26)
1844 (guix build python-build-system)
1845 (guix build utils))
1846 #:phases
1847 (modify-phases %standard-phases
1848 (add-before 'build 'set-flags
1849 (lambda* (#:key inputs #:allow-other-keys)
1850 (setenv "HTSLIB_MODE" "external")
1851 (setenv "HTSLIB_LIBRARY_DIR"
1852 (string-append (assoc-ref inputs "htslib") "/lib"))
1853 (setenv "HTSLIB_INCLUDE_DIR"
1854 (string-append (assoc-ref inputs "htslib") "/include"))
1855 (setenv "LDFLAGS" "-lncurses")
1856 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1857 #t))
1858 (replace 'check
1859 (lambda* (#:key inputs outputs #:allow-other-keys)
1860 ;; This file contains tests that require a connection to the
1861 ;; internet.
1862 (delete-file "tests/tabix_test.py")
1863 ;; FIXME: This test fails
1864 (delete-file "tests/AlignmentFile_test.py")
1865 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1866 (setenv "PYTHONPATH"
1867 (string-append
1868 (getenv "PYTHONPATH")
1869 ":" (getcwd) "/build/"
1870 (car (scandir "build"
1871 (negate (cut string-prefix? "." <>))))))
1872 ;; Step out of source dir so python does not import from CWD.
1873 (with-directory-excursion "tests"
1874 (setenv "HOME" "/tmp")
1875 (invoke "make" "-C" "pysam_data")
1876 (invoke "make" "-C" "cbcf_data")
1877 ;; Running nosetests without explicitly asking for a single
1878 ;; process leads to a crash. Running with multiple processes
1879 ;; fails because the tests are not designed to run in parallel.
1880
1881 ;; FIXME: tests keep timing out on some systems.
1882 (invoke "nosetests" "-v" "--processes" "1")))))))
1883 (propagated-inputs
1884 `(("htslib" ,htslib))) ; Included from installed header files.
1885 (inputs
1886 `(("ncurses" ,ncurses)
1887 ("curl" ,curl)
1888 ("zlib" ,zlib)))
1889 (native-inputs
1890 `(("python-cython" ,python-cython)
1891 ;; Dependencies below are are for tests only.
1892 ("samtools" ,samtools)
1893 ("bcftools" ,bcftools)
1894 ("python-nose" ,python-nose)))
1895 (home-page "https://github.com/pysam-developers/pysam")
1896 (synopsis "Python bindings to the SAMtools C API")
1897 (description
1898 "Pysam is a Python module for reading and manipulating files in the
1899 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1900 also includes an interface for tabix.")
1901 (license license:expat)))
1902
1903 (define-public python2-pysam
1904 (package-with-python2 python-pysam))
1905
1906 (define-public python-twobitreader
1907 (package
1908 (name "python-twobitreader")
1909 (version "3.1.6")
1910 (source (origin
1911 (method git-fetch)
1912 (uri (git-reference
1913 (url "https://github.com/benjschiller/twobitreader")
1914 (commit version)))
1915 (file-name (git-file-name name version))
1916 (sha256
1917 (base32
1918 "1qbxvv1h58cismbk1anpjrkpghsaiy64a11ir3lhy6qch6xf8n62"))))
1919 (build-system python-build-system)
1920 ;; Tests are not included
1921 (arguments '(#:tests? #f))
1922 (native-inputs
1923 `(("python-sphinx" ,python-sphinx)))
1924 (home-page "https://github.com/benjschiller/twobitreader")
1925 (synopsis "Python library for reading .2bit files")
1926 (description
1927 "twobitreader is a Python library for reading .2bit files as used by the
1928 UCSC genome browser.")
1929 (license license:artistic2.0)))
1930
1931 (define-public python2-twobitreader
1932 (package-with-python2 python-twobitreader))
1933
1934 (define-public python-plastid
1935 (package
1936 (name "python-plastid")
1937 (version "0.4.8")
1938 (source (origin
1939 (method url-fetch)
1940 (uri (pypi-uri "plastid" version))
1941 (sha256
1942 (base32
1943 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
1944 (build-system python-build-system)
1945 (arguments
1946 ;; Some test files are not included.
1947 `(#:tests? #f))
1948 (propagated-inputs
1949 `(("python-numpy" ,python-numpy)
1950 ("python-scipy" ,python-scipy)
1951 ("python-pandas" ,python-pandas)
1952 ("python-pysam" ,python-pysam)
1953 ("python-matplotlib" ,python-matplotlib)
1954 ("python-biopython" ,python-biopython)
1955 ("python-twobitreader" ,python-twobitreader)
1956 ("python-termcolor" ,python-termcolor)))
1957 (native-inputs
1958 `(("python-cython" ,python-cython)
1959 ("python-nose" ,python-nose)))
1960 (home-page "https://github.com/joshuagryphon/plastid")
1961 (synopsis "Python library for genomic analysis")
1962 (description
1963 "plastid is a Python library for genomic analysis – in particular,
1964 high-throughput sequencing data – with an emphasis on simplicity.")
1965 (license license:bsd-3)))
1966
1967 (define-public python2-plastid
1968 (package-with-python2 python-plastid))
1969
1970 (define-public tetoolkit
1971 (package
1972 (name "tetoolkit")
1973 (version "2.0.3")
1974 (source (origin
1975 (method git-fetch)
1976 (uri (git-reference
1977 (url "https://github.com/mhammell-laboratory/tetoolkit.git")
1978 (commit version)))
1979 (file-name (git-file-name name version))
1980 (sha256
1981 (base32
1982 "1yzi0kfpzip8zpjb82x1ik6h22yzfyjiz2dv85v6as2awwqvk807"))))
1983 (build-system python-build-system)
1984 (arguments
1985 `(#:python ,python-2 ; not guaranteed to work with Python 3
1986 #:phases
1987 (modify-phases %standard-phases
1988 (add-after 'unpack 'make-writable
1989 (lambda _
1990 (for-each make-file-writable (find-files "."))
1991 #t))
1992 (add-after 'unpack 'patch-invocations
1993 (lambda* (#:key inputs #:allow-other-keys)
1994 (substitute* '("bin/TEtranscripts"
1995 "bin/TEcount")
1996 (("'sort ")
1997 (string-append "'" (which "sort") " "))
1998 (("'rm -f ")
1999 (string-append "'" (which "rm") " -f "))
2000 (("'Rscript'") (string-append "'" (which "Rscript") "'")))
2001 (substitute* "TEToolkit/IO/ReadInputs.py"
2002 (("BamToBED") (which "bamToBed")))
2003 (substitute* "TEToolkit/Normalization.py"
2004 (("\"Rscript\"")
2005 (string-append "\"" (which "Rscript") "\"")))
2006 #t))
2007 (add-after 'install 'wrap-program
2008 (lambda* (#:key outputs #:allow-other-keys)
2009 ;; Make sure the executables find R packages.
2010 (let ((out (assoc-ref outputs "out")))
2011 (for-each
2012 (lambda (script)
2013 (wrap-program (string-append out "/bin/" script)
2014 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
2015 '("TEtranscripts"
2016 "TEcount")))
2017 #t)))))
2018 (inputs
2019 `(("coreutils" ,coreutils)
2020 ("bedtools" ,bedtools)
2021 ("python-argparse" ,python2-argparse)
2022 ("python-pysam" ,python2-pysam)
2023 ("r-minimal" ,r-minimal)
2024 ("r-deseq2" ,r-deseq2)))
2025 (home-page "https://github.com/mhammell-laboratory/tetoolkit")
2026 (synopsis "Transposable elements in differential enrichment analysis")
2027 (description
2028 "This is package for including transposable elements in differential
2029 enrichment analysis of sequencing datasets. TEtranscripts and TEcount take
2030 RNA-seq (and similar data) and annotates reads to both genes and transposable
2031 elements. TEtranscripts then performs differential analysis using DESeq2.
2032 Note that TEtranscripts and TEcount rely on specially curated GTF files, which
2033 are not included due to their size.")
2034 (license license:gpl3+)))
2035
2036 (define-public cd-hit
2037 (package
2038 (name "cd-hit")
2039 (version "4.6.8")
2040 (source (origin
2041 (method url-fetch)
2042 (uri (string-append "https://github.com/weizhongli/cdhit"
2043 "/releases/download/V" version
2044 "/cd-hit-v" version
2045 "-2017-0621-source.tar.gz"))
2046 (sha256
2047 (base32
2048 "1b4mwm2520ixjbw57sil20f9iixzw4bkdqqwgg1fc3pzm6rz4zmn"))))
2049 (build-system gnu-build-system)
2050 (arguments
2051 `(#:tests? #f ; there are no tests
2052 #:make-flags
2053 ;; Executables are copied directly to the PREFIX.
2054 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin")
2055 ;; Support longer sequences (e.g. Pacbio sequences)
2056 "MAX_SEQ=60000000")
2057 #:phases
2058 (modify-phases %standard-phases
2059 ;; No "configure" script
2060 (delete 'configure)
2061 ;; Remove sources of non-determinism
2062 (add-after 'unpack 'be-timeless
2063 (lambda _
2064 (substitute* "cdhit-utility.c++"
2065 ((" \\(built on \" __DATE__ \"\\)") ""))
2066 (substitute* "cdhit-common.c++"
2067 (("__DATE__") "\"0\"")
2068 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
2069 #t))
2070 ;; The "install" target does not create the target directory.
2071 (add-before 'install 'create-target-dir
2072 (lambda* (#:key outputs #:allow-other-keys)
2073 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
2074 #t)))))
2075 (inputs
2076 `(("perl" ,perl)))
2077 (home-page "http://weizhongli-lab.org/cd-hit/")
2078 (synopsis "Cluster and compare protein or nucleotide sequences")
2079 (description
2080 "CD-HIT is a program for clustering and comparing protein or nucleotide
2081 sequences. CD-HIT is designed to be fast and handle extremely large
2082 databases.")
2083 ;; The manual says: "It can be copied under the GNU General Public License
2084 ;; version 2 (GPLv2)."
2085 (license license:gpl2)))
2086
2087 (define-public clipper
2088 (package
2089 (name "clipper")
2090 (version "1.2.1")
2091 (source (origin
2092 (method git-fetch)
2093 (uri (git-reference
2094 (url "https://github.com/YeoLab/clipper.git")
2095 (commit version)))
2096 (file-name (git-file-name name version))
2097 (sha256
2098 (base32
2099 "0fja1rj84wp9vpj8rxpj3n8zqzcqq454m904yp9as1w4phccirjb"))
2100 (modules '((guix build utils)))
2101 (snippet
2102 '(begin
2103 ;; remove unnecessary setup dependency
2104 (substitute* "setup.py"
2105 (("setup_requires = .*") ""))
2106 #t))))
2107 (build-system python-build-system)
2108 (arguments
2109 `(#:python ,python-2 ; only Python 2 is supported
2110 #:phases
2111 (modify-phases %standard-phases
2112 ;; This is fixed in upstream commit
2113 ;; f6c2990198f906bf97730d95695b4bd5a6d01ddb.
2114 (add-after 'unpack 'fix-typo
2115 (lambda _
2116 (substitute* "clipper/src/readsToWiggle.pyx"
2117 (("^sc.*") ""))
2118 #t)))))
2119 (inputs
2120 `(("htseq" ,python2-htseq)
2121 ("python-pybedtools" ,python2-pybedtools)
2122 ("python-cython" ,python2-cython)
2123 ("python-scikit-learn" ,python2-scikit-learn)
2124 ("python-matplotlib" ,python2-matplotlib)
2125 ("python-pandas" ,python2-pandas)
2126 ("python-pysam" ,python2-pysam)
2127 ("python-numpy" ,python2-numpy)
2128 ("python-scipy" ,python2-scipy)))
2129 (native-inputs
2130 `(("python-mock" ,python2-mock) ; for tests
2131 ("python-nose" ,python2-nose) ; for tests
2132 ("python-pytz" ,python2-pytz))) ; for tests
2133 (home-page "https://github.com/YeoLab/clipper")
2134 (synopsis "CLIP peak enrichment recognition")
2135 (description
2136 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
2137 (license license:gpl2)))
2138
2139 (define-public codingquarry
2140 (package
2141 (name "codingquarry")
2142 (version "2.0")
2143 (source (origin
2144 (method url-fetch)
2145 (uri (string-append
2146 "mirror://sourceforge/codingquarry/CodingQuarry_v"
2147 version ".tar.gz"))
2148 (sha256
2149 (base32
2150 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
2151 (build-system gnu-build-system)
2152 (arguments
2153 '(#:tests? #f ; no "check" target
2154 #:phases
2155 (modify-phases %standard-phases
2156 (delete 'configure)
2157 (replace 'install
2158 (lambda* (#:key outputs #:allow-other-keys)
2159 (let* ((out (assoc-ref outputs "out"))
2160 (bin (string-append out "/bin"))
2161 (doc (string-append out "/share/doc/codingquarry")))
2162 (install-file "INSTRUCTIONS.pdf" doc)
2163 (copy-recursively "QuarryFiles"
2164 (string-append out "/QuarryFiles"))
2165 (install-file "CodingQuarry" bin)
2166 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin))
2167 #t)))))
2168 (inputs `(("openmpi" ,openmpi)))
2169 (native-search-paths
2170 (list (search-path-specification
2171 (variable "QUARRY_PATH")
2172 (files '("QuarryFiles")))))
2173 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
2174 (synopsis "Fungal gene predictor")
2175 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
2176 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
2177 (home-page "https://sourceforge.net/projects/codingquarry/")
2178 (license license:gpl3+)))
2179
2180 (define-public couger
2181 (package
2182 (name "couger")
2183 (version "1.8.2")
2184 (source (origin
2185 (method url-fetch)
2186 (uri (string-append
2187 "http://couger.oit.duke.edu/static/assets/COUGER"
2188 version ".zip"))
2189 (sha256
2190 (base32
2191 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
2192 (build-system gnu-build-system)
2193 (arguments
2194 `(#:tests? #f
2195 #:phases
2196 (modify-phases %standard-phases
2197 (delete 'configure)
2198 (delete 'build)
2199 (replace
2200 'install
2201 (lambda* (#:key outputs #:allow-other-keys)
2202 (let* ((out (assoc-ref outputs "out"))
2203 (bin (string-append out "/bin")))
2204 (copy-recursively "src" (string-append out "/src"))
2205 (mkdir bin)
2206 ;; Add "src" directory to module lookup path.
2207 (substitute* "couger"
2208 (("from argparse")
2209 (string-append "import sys\nsys.path.append(\""
2210 out "\")\nfrom argparse")))
2211 (install-file "couger" bin))
2212 #t))
2213 (add-after
2214 'install 'wrap-program
2215 (lambda* (#:key inputs outputs #:allow-other-keys)
2216 ;; Make sure 'couger' runs with the correct PYTHONPATH.
2217 (let* ((out (assoc-ref outputs "out"))
2218 (path (getenv "PYTHONPATH")))
2219 (wrap-program (string-append out "/bin/couger")
2220 `("PYTHONPATH" ":" prefix (,path))))
2221 #t)))))
2222 (inputs
2223 `(("python" ,python-2)
2224 ("python2-pillow" ,python2-pillow)
2225 ("python2-numpy" ,python2-numpy)
2226 ("python2-scipy" ,python2-scipy)
2227 ("python2-matplotlib" ,python2-matplotlib)))
2228 (propagated-inputs
2229 `(("r-minimal" ,r-minimal)
2230 ("libsvm" ,libsvm)
2231 ("randomjungle" ,randomjungle)))
2232 (native-inputs
2233 `(("unzip" ,unzip)))
2234 (home-page "http://couger.oit.duke.edu")
2235 (synopsis "Identify co-factors in sets of genomic regions")
2236 (description
2237 "COUGER can be applied to any two sets of genomic regions bound by
2238 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
2239 putative co-factors that provide specificity to each TF. The framework
2240 determines the genomic targets uniquely-bound by each TF, and identifies a
2241 small set of co-factors that best explain the in vivo binding differences
2242 between the two TFs.
2243
2244 COUGER uses classification algorithms (support vector machines and random
2245 forests) with features that reflect the DNA binding specificities of putative
2246 co-factors. The features are generated either from high-throughput TF-DNA
2247 binding data (from protein binding microarray experiments), or from large
2248 collections of DNA motifs.")
2249 (license license:gpl3+)))
2250
2251 (define-public clustal-omega
2252 (package
2253 (name "clustal-omega")
2254 (version "1.2.4")
2255 (source (origin
2256 (method url-fetch)
2257 (uri (string-append "http://www.clustal.org/omega/clustal-omega-"
2258 version ".tar.gz"))
2259 (sha256
2260 (base32
2261 "1vm30mzncwdv881vrcwg11vzvrsmwy4wg80j5i0lcfk6dlld50w6"))))
2262 (build-system gnu-build-system)
2263 (inputs
2264 `(("argtable" ,argtable)))
2265 (home-page "http://www.clustal.org/omega/")
2266 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
2267 (description
2268 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
2269 program for protein and DNA/RNA. It produces high quality MSAs and is capable
2270 of handling data-sets of hundreds of thousands of sequences in reasonable
2271 time.")
2272 (license license:gpl2+)))
2273
2274 (define-public crossmap
2275 (package
2276 (name "crossmap")
2277 (version "0.2.9")
2278 (source (origin
2279 (method url-fetch)
2280 (uri (pypi-uri "CrossMap" version))
2281 (sha256
2282 (base32
2283 "1byhclrqnqpvc1rqkfh4jwj6yhn0x9y7jk47i0qcjlhk0pjkw92p"))))
2284 (build-system python-build-system)
2285 (arguments `(#:python ,python-2))
2286 (inputs
2287 `(("python-bx-python" ,python2-bx-python)
2288 ("python-numpy" ,python2-numpy)
2289 ("python-pysam" ,python2-pysam)
2290 ("zlib" ,zlib)))
2291 (native-inputs
2292 `(("python-cython" ,python2-cython)
2293 ("python-nose" ,python2-nose)))
2294 (home-page "http://crossmap.sourceforge.net/")
2295 (synopsis "Convert genome coordinates between assemblies")
2296 (description
2297 "CrossMap is a program for conversion of genome coordinates or annotation
2298 files between different genome assemblies. It supports most commonly used
2299 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
2300 (license license:gpl2+)))
2301
2302 (define-public python-dnaio
2303 (package
2304 (name "python-dnaio")
2305 (version "0.3")
2306 (source
2307 (origin
2308 (method url-fetch)
2309 (uri (pypi-uri "dnaio" version))
2310 (sha256
2311 (base32
2312 "0f16m7hdlm0fz1n7y5asy0v9ghyrq17ni1p9iybq22ddzyd49r27"))))
2313 (build-system python-build-system)
2314 (native-inputs
2315 `(("python-cython" ,python-cython)
2316 ("python-pytest" ,python-pytest)
2317 ("python-xopen" ,python-xopen)))
2318 (home-page "https://github.com/marcelm/dnaio/")
2319 (synopsis "Read FASTA and FASTQ files efficiently")
2320 (description
2321 "dnaio is a Python library for fast parsing of FASTQ and also FASTA
2322 files. The code was previously part of the cutadapt tool.")
2323 (license license:expat)))
2324
2325 (define-public cutadapt
2326 (package
2327 (name "cutadapt")
2328 (version "2.1")
2329 (source (origin
2330 (method url-fetch)
2331 (uri (pypi-uri "cutadapt" version))
2332 (sha256
2333 (base32
2334 "1vqmsfkm6llxzmsz9wcfcvzx9a9f8iabvwik2rbyn7nc4wm25z89"))))
2335 (build-system python-build-system)
2336 (inputs
2337 `(("python-dnaio" ,python-dnaio)
2338 ("python-xopen" ,python-xopen)))
2339 (native-inputs
2340 `(("python-cython" ,python-cython)
2341 ("python-pytest" ,python-pytest)
2342 ("python-setuptools-scm" ,python-setuptools-scm)))
2343 (home-page "https://cutadapt.readthedocs.io/en/stable/")
2344 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
2345 (description
2346 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
2347 other types of unwanted sequence from high-throughput sequencing reads.")
2348 (license license:expat)))
2349
2350 (define-public libbigwig
2351 (package
2352 (name "libbigwig")
2353 (version "0.4.2")
2354 (source (origin
2355 (method git-fetch)
2356 (uri (git-reference
2357 (url "https://github.com/dpryan79/libBigWig.git")
2358 (commit version)))
2359 (file-name (string-append name "-" version "-checkout"))
2360 (sha256
2361 (base32
2362 "0h2smg24v5srdcqzrmz2g23cmlp4va465mgx8r2z571sfz8pv454"))))
2363 (build-system gnu-build-system)
2364 (arguments
2365 `(#:test-target "test"
2366 #:tests? #f ; tests require access to the web
2367 #:make-flags
2368 (list "CC=gcc"
2369 (string-append "prefix=" (assoc-ref %outputs "out")))
2370 #:phases
2371 (modify-phases %standard-phases
2372 (delete 'configure))))
2373 (inputs
2374 `(("zlib" ,zlib)
2375 ("curl" ,curl)))
2376 (native-inputs
2377 `(("doxygen" ,doxygen)
2378 ;; Need for tests
2379 ("python" ,python-2)))
2380 (home-page "https://github.com/dpryan79/libBigWig")
2381 (synopsis "C library for handling bigWig files")
2382 (description
2383 "This package provides a C library for parsing local and remote BigWig
2384 files.")
2385 (license license:expat)))
2386
2387 (define-public python-pybigwig
2388 (package
2389 (name "python-pybigwig")
2390 (version "0.3.12")
2391 (source (origin
2392 (method url-fetch)
2393 (uri (pypi-uri "pyBigWig" version))
2394 (sha256
2395 (base32
2396 "00w4kfnm2c5l7wdwr2nj1z5djv8kzgf7h1zhsgv6njff1rwr26g0"))
2397 (modules '((guix build utils)))
2398 (snippet
2399 '(begin
2400 ;; Delete bundled libBigWig sources
2401 (delete-file-recursively "libBigWig")
2402 #t))))
2403 (build-system python-build-system)
2404 (arguments
2405 `(#:phases
2406 (modify-phases %standard-phases
2407 (add-after 'unpack 'link-with-libBigWig
2408 (lambda* (#:key inputs #:allow-other-keys)
2409 (substitute* "setup.py"
2410 (("libs=\\[") "libs=[\"BigWig\", "))
2411 #t)))))
2412 (propagated-inputs
2413 `(("python-numpy" ,python-numpy)))
2414 (inputs
2415 `(("libbigwig" ,libbigwig)
2416 ("zlib" ,zlib)
2417 ("curl" ,curl)))
2418 (home-page "https://github.com/dpryan79/pyBigWig")
2419 (synopsis "Access bigWig files in Python using libBigWig")
2420 (description
2421 "This package provides Python bindings to the libBigWig library for
2422 accessing bigWig files.")
2423 (license license:expat)))
2424
2425 (define-public python2-pybigwig
2426 (package-with-python2 python-pybigwig))
2427
2428 (define-public python-dendropy
2429 (package
2430 (name "python-dendropy")
2431 (version "4.4.0")
2432 (source
2433 (origin
2434 (method git-fetch)
2435 ;; Source from GitHub so that tests are included.
2436 (uri (git-reference
2437 (url "https://github.com/jeetsukumaran/DendroPy.git")
2438 (commit (string-append "v" version))))
2439 (file-name (git-file-name name version))
2440 (sha256
2441 (base32
2442 "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9"))))
2443 (build-system python-build-system)
2444 (home-page "http://packages.python.org/DendroPy/")
2445 (synopsis "Library for phylogenetics and phylogenetic computing")
2446 (description
2447 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
2448 writing, simulation, processing and manipulation of phylogenetic
2449 trees (phylogenies) and characters.")
2450 (license license:bsd-3)))
2451
2452 (define-public python2-dendropy
2453 (let ((base (package-with-python2 python-dendropy)))
2454 (package
2455 (inherit base)
2456 (arguments
2457 `(#:phases
2458 (modify-phases %standard-phases
2459 (add-after 'unpack 'remove-failing-test
2460 (lambda _
2461 ;; This test fails when the full test suite is run, as documented
2462 ;; at https://github.com/jeetsukumaran/DendroPy/issues/74
2463 (substitute* "tests/test_dataio_nexml_reader_tree_list.py"
2464 (("test_collection_comments_and_annotations")
2465 "do_not_test_collection_comments_and_annotations"))
2466 #t)))
2467 ,@(package-arguments base))))))
2468
2469 (define-public python-py2bit
2470 (package
2471 (name "python-py2bit")
2472 (version "0.3.0")
2473 (source
2474 (origin
2475 (method url-fetch)
2476 (uri (pypi-uri "py2bit" version))
2477 (sha256
2478 (base32
2479 "1vw2nvw1yrl7ikkqsqs1pg239yr5nspvd969r1x9arms1k25a1a5"))))
2480 (build-system python-build-system)
2481 (home-page "https://github.com/dpryan79/py2bit")
2482 (synopsis "Access 2bit files using lib2bit")
2483 (description
2484 "This package provides Python bindings for lib2bit to access 2bit files
2485 with Python.")
2486 (license license:expat)))
2487
2488 (define-public deeptools
2489 (package
2490 (name "deeptools")
2491 (version "3.1.3")
2492 (source (origin
2493 (method git-fetch)
2494 (uri (git-reference
2495 (url "https://github.com/deeptools/deepTools.git")
2496 (commit version)))
2497 (file-name (git-file-name name version))
2498 (sha256
2499 (base32
2500 "1vggnf52g6q2vifdl4cyi7s2fnfqq0ky2zrkj5zv2qfzsc3p3siw"))))
2501 (build-system python-build-system)
2502 (arguments
2503 `(#:phases
2504 (modify-phases %standard-phases
2505 ;; This phase fails, but it's not needed.
2506 (delete 'reset-gzip-timestamps))))
2507 (inputs
2508 `(("python-plotly" ,python-plotly)
2509 ("python-scipy" ,python-scipy)
2510 ("python-numpy" ,python-numpy)
2511 ("python-numpydoc" ,python-numpydoc)
2512 ("python-matplotlib" ,python-matplotlib)
2513 ("python-pysam" ,python-pysam)
2514 ("python-py2bit" ,python-py2bit)
2515 ("python-pybigwig" ,python-pybigwig)))
2516 (native-inputs
2517 `(("python-mock" ,python-mock) ;for tests
2518 ("python-nose" ,python-nose) ;for tests
2519 ("python-pytz" ,python-pytz))) ;for tests
2520 (home-page "https://github.com/deeptools/deepTools")
2521 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2522 (description
2523 "DeepTools addresses the challenge of handling the large amounts of data
2524 that are now routinely generated from DNA sequencing centers. To do so,
2525 deepTools contains useful modules to process the mapped reads data to create
2526 coverage files in standard bedGraph and bigWig file formats. By doing so,
2527 deepTools allows the creation of normalized coverage files or the comparison
2528 between two files (for example, treatment and control). Finally, using such
2529 normalized and standardized files, multiple visualizations can be created to
2530 identify enrichments with functional annotations of the genome.")
2531 (license license:gpl3+)))
2532
2533 (define-public delly
2534 (package
2535 (name "delly")
2536 (version "0.7.9")
2537 (source (origin
2538 (method git-fetch)
2539 (uri (git-reference
2540 (url "https://github.com/dellytools/delly.git")
2541 (commit (string-append "v" version))))
2542 (file-name (git-file-name name version))
2543 (sha256
2544 (base32 "034jqsxswy9gqdh2zkgc1js99qkv75ks4xvzgmh0284sraagv61z"))
2545 (modules '((guix build utils)))
2546 (snippet
2547 '(begin
2548 (delete-file-recursively "src/htslib")
2549 #t))))
2550 (build-system gnu-build-system)
2551 (arguments
2552 `(#:tests? #f ; There are no tests to run.
2553 #:make-flags
2554 (list "PARALLEL=1" ; Allow parallel execution at run-time.
2555 (string-append "prefix=" (assoc-ref %outputs "out")))
2556 #:phases
2557 (modify-phases %standard-phases
2558 (delete 'configure) ; There is no configure phase.
2559 (add-after 'install 'install-templates
2560 (lambda* (#:key outputs #:allow-other-keys)
2561 (let ((templates (string-append (assoc-ref outputs "out")
2562 "/share/delly/templates")))
2563 (mkdir-p templates)
2564 (copy-recursively "excludeTemplates" templates)
2565 #t))))))
2566 (inputs
2567 `(("boost" ,boost)
2568 ("htslib" ,htslib)
2569 ("zlib" ,zlib)
2570 ("bzip2" ,bzip2)))
2571 (home-page "https://github.com/dellytools/delly")
2572 (synopsis "Integrated structural variant prediction method")
2573 (description "Delly is an integrated structural variant prediction method
2574 that can discover and genotype deletions, tandem duplications, inversions and
2575 translocations at single-nucleotide resolution in short-read massively parallel
2576 sequencing data. It uses paired-ends and split-reads to sensitively and
2577 accurately delineate genomic rearrangements throughout the genome.")
2578 (license license:gpl3+)))
2579
2580 (define-public diamond
2581 (package
2582 (name "diamond")
2583 (version "0.9.22")
2584 (source (origin
2585 (method git-fetch)
2586 (uri (git-reference
2587 (url "https://github.com/bbuchfink/diamond.git")
2588 (commit (string-append "v" version))))
2589 (file-name (git-file-name name version))
2590 (sha256
2591 (base32
2592 "0bky78v79g3wmdpsd706cscckgw1v09fg8vdd0z8z0d5b97aj9zl"))))
2593 (build-system cmake-build-system)
2594 (arguments
2595 '(#:tests? #f ; no "check" target
2596 #:phases
2597 (modify-phases %standard-phases
2598 (add-after 'unpack 'remove-native-compilation
2599 (lambda _
2600 (substitute* "CMakeLists.txt" (("-march=native") ""))
2601 #t)))))
2602 (inputs
2603 `(("zlib" ,zlib)))
2604 (home-page "https://github.com/bbuchfink/diamond")
2605 (synopsis "Accelerated BLAST compatible local sequence aligner")
2606 (description
2607 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2608 translated DNA query sequences against a protein reference database (BLASTP
2609 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2610 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2611 data and settings.")
2612 (license license:agpl3+)))
2613
2614 (define-public discrover
2615 (package
2616 (name "discrover")
2617 (version "1.6.0")
2618 (source
2619 (origin
2620 (method git-fetch)
2621 (uri (git-reference
2622 (url "https://github.com/maaskola/discrover.git")
2623 (commit version)))
2624 (file-name (git-file-name name version))
2625 (sha256
2626 (base32
2627 "173fwi2vb6a5kp406hm3jj6j7v4whww796f2qcygp4rpvamh307y"))))
2628 (build-system cmake-build-system)
2629 (arguments
2630 `(#:tests? #f ; there are no tests
2631 #:phases
2632 (modify-phases %standard-phases
2633 (add-after 'unpack 'fix-latex-errors
2634 (lambda _
2635 (with-fluids ((%default-port-encoding #f))
2636 (substitute* "doc/references.bib"
2637 (("\\{S\\}illanp[^,]+,")
2638 "{S}illanp{\\\"a}{\\\"a},")))
2639 ;; XXX: I just can't get pdflatex to not complain about these
2640 ;; characters. They end up in the manual via the generated
2641 ;; discrover-cli-help.txt.
2642 (substitute* "src/hmm/cli.cpp"
2643 (("µ") "mu")
2644 (("η") "eta")
2645 (("≤") "<="))
2646 ;; This seems to be a syntax error.
2647 (substitute* "doc/discrover-manual.tex"
2648 (("theverbbox\\[t\\]") "theverbbox"))
2649 #t))
2650 (add-after 'unpack 'add-missing-includes
2651 (lambda _
2652 (substitute* "src/executioninformation.hpp"
2653 (("#define EXECUTIONINFORMATION_HPP" line)
2654 (string-append line "\n#include <random>")))
2655 (substitute* "src/plasma/fasta.hpp"
2656 (("#define FASTA_HPP" line)
2657 (string-append line "\n#include <random>")))
2658 #t))
2659 ;; FIXME: this is needed because we're using texlive-union, which
2660 ;; doesn't handle fonts correctly. It expects to be able to generate
2661 ;; fonts in the home directory.
2662 (add-before 'build 'setenv-HOME
2663 (lambda _ (setenv "HOME" "/tmp") #t)))))
2664 (inputs
2665 `(("boost" ,boost)
2666 ("cairo" ,cairo)
2667 ("rmath-standalone" ,rmath-standalone)))
2668 (native-inputs
2669 `(("texlive" ,(texlive-union (list texlive-fonts-cm
2670 texlive-fonts-amsfonts
2671
2672 texlive-latex-doi
2673 texlive-latex-examplep
2674 texlive-latex-hyperref
2675 texlive-latex-ms
2676 texlive-latex-natbib
2677 texlive-bibtex ; style files used by natbib
2678 texlive-latex-pgf ; tikz
2679 texlive-latex-verbatimbox)))
2680 ("imagemagick" ,imagemagick)))
2681 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2682 (synopsis "Discover discriminative nucleotide sequence motifs")
2683 (description "Discrover is a motif discovery method to find binding sites
2684 of nucleic acid binding proteins.")
2685 (license license:gpl3+)))
2686
2687 (define-public eigensoft
2688 (package
2689 (name "eigensoft")
2690 (version "7.2.1")
2691 (source
2692 (origin
2693 (method git-fetch)
2694 (uri (git-reference
2695 (url "https://github.com/DReichLab/EIG.git")
2696 (commit (string-append "v" version))))
2697 (file-name (git-file-name name version))
2698 (sha256
2699 (base32
2700 "1c141fqvhnzibmnf22sv23vbmzm20kjjyrib44cfh75wyndp2d9k"))
2701 (modules '((guix build utils)))
2702 ;; Remove pre-built binaries.
2703 (snippet '(begin
2704 (delete-file-recursively "bin")
2705 (mkdir "bin")
2706 #t))))
2707 (build-system gnu-build-system)
2708 (arguments
2709 `(#:tests? #f ; There are no tests.
2710 #:make-flags '("CC=gcc")
2711 #:phases
2712 (modify-phases %standard-phases
2713 ;; There is no configure phase, but the Makefile is in a
2714 ;; sub-directory.
2715 (replace 'configure
2716 (lambda _ (chdir "src") #t))
2717 ;; The provided install target only copies executables to
2718 ;; the "bin" directory in the build root.
2719 (add-after 'install 'actually-install
2720 (lambda* (#:key outputs #:allow-other-keys)
2721 (let* ((out (assoc-ref outputs "out"))
2722 (bin (string-append out "/bin")))
2723 (for-each (lambda (file)
2724 (install-file file bin))
2725 (find-files "../bin" ".*"))
2726 #t))))))
2727 (inputs
2728 `(("gsl" ,gsl)
2729 ("lapack" ,lapack)
2730 ("openblas" ,openblas)
2731 ("perl" ,perl)
2732 ("gfortran" ,gfortran "lib")))
2733 (home-page "https://github.com/DReichLab/EIG")
2734 (synopsis "Tools for population genetics")
2735 (description "The EIGENSOFT package provides tools for population
2736 genetics and stratification correction. EIGENSOFT implements methods commonly
2737 used in population genetics analyses such as PCA, computation of Tracy-Widom
2738 statistics, and finding related individuals in structured populations. It
2739 comes with a built-in plotting script and supports multiple file formats and
2740 quantitative phenotypes.")
2741 ;; The license of the eigensoft tools is Expat, but since it's
2742 ;; linking with the GNU Scientific Library (GSL) the effective
2743 ;; license is the GPL.
2744 (license license:gpl3+)))
2745
2746 (define-public edirect
2747 (package
2748 (name "edirect")
2749 (version "10.2.20181018")
2750 (source (origin
2751 (method url-fetch)
2752 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect"
2753 "/versions/" version
2754 "/edirect-" version ".tar.gz"))
2755 (sha256
2756 (base32
2757 "091f4aigzpbqih6h82nq566gkp3y07i72yqndmqskfgar1vwgci7"))))
2758 (build-system perl-build-system)
2759 (arguments
2760 `(#:phases
2761 (modify-phases %standard-phases
2762 (delete 'configure)
2763 (delete 'build)
2764 (delete 'check) ; simple check after install
2765 (replace 'install
2766 (lambda* (#:key outputs #:allow-other-keys)
2767 (install-file "edirect.pl"
2768 (string-append (assoc-ref outputs "out") "/bin"))
2769 #t))
2770 (add-after 'install 'wrap-program
2771 (lambda* (#:key outputs #:allow-other-keys)
2772 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2773 (let* ((out (assoc-ref outputs "out"))
2774 (path (getenv "PERL5LIB")))
2775 (wrap-program (string-append out "/bin/edirect.pl")
2776 `("PERL5LIB" ":" prefix (,path))))
2777 #t))
2778 (add-after 'wrap-program 'check
2779 (lambda* (#:key outputs #:allow-other-keys)
2780 (invoke (string-append (assoc-ref outputs "out")
2781 "/bin/edirect.pl")
2782 "-filter" "-help")
2783 #t)))))
2784 (inputs
2785 `(("perl-html-parser" ,perl-html-parser)
2786 ("perl-encode-locale" ,perl-encode-locale)
2787 ("perl-file-listing" ,perl-file-listing)
2788 ("perl-html-tagset" ,perl-html-tagset)
2789 ("perl-html-tree" ,perl-html-tree)
2790 ("perl-http-cookies" ,perl-http-cookies)
2791 ("perl-http-date" ,perl-http-date)
2792 ("perl-http-message" ,perl-http-message)
2793 ("perl-http-negotiate" ,perl-http-negotiate)
2794 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2795 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2796 ("perl-net-http" ,perl-net-http)
2797 ("perl-uri" ,perl-uri)
2798 ("perl-www-robotrules" ,perl-www-robotrules)
2799 ("perl-xml-simple" ,perl-xml-simple)
2800 ("perl" ,perl)))
2801 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
2802 (synopsis "Tools for accessing the NCBI's set of databases")
2803 (description
2804 "Entrez Direct (EDirect) is a method for accessing the National Center
2805 for Biotechnology Information's (NCBI) set of interconnected
2806 databases (publication, sequence, structure, gene, variation, expression,
2807 etc.) from a terminal. Functions take search terms from command-line
2808 arguments. Individual operations are combined to build multi-step queries.
2809 Record retrieval and formatting normally complete the process.
2810
2811 EDirect also provides an argument-driven function that simplifies the
2812 extraction of data from document summaries or other results that are returned
2813 in structured XML format. This can eliminate the need for writing custom
2814 software to answer ad hoc questions.")
2815 (license license:public-domain)))
2816
2817 (define-public exonerate
2818 (package
2819 (name "exonerate")
2820 (version "2.4.0")
2821 (source
2822 (origin
2823 (method url-fetch)
2824 (uri
2825 (string-append
2826 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2827 "exonerate-" version ".tar.gz"))
2828 (sha256
2829 (base32
2830 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2831 (build-system gnu-build-system)
2832 (arguments
2833 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2834 (native-inputs
2835 `(("pkg-config" ,pkg-config)))
2836 (inputs
2837 `(("glib" ,glib)))
2838 (home-page
2839 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2840 (synopsis "Generic tool for biological sequence alignment")
2841 (description
2842 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2843 the alignment of sequences using a many alignment models, either exhaustive
2844 dynamic programming or a variety of heuristics.")
2845 (license license:gpl3)))
2846
2847 (define-public express
2848 (package
2849 (name "express")
2850 (version "1.5.1")
2851 (source (origin
2852 (method url-fetch)
2853 (uri
2854 (string-append
2855 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2856 version "/express-" version "-src.tgz"))
2857 (sha256
2858 (base32
2859 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2860 (build-system cmake-build-system)
2861 (arguments
2862 `(#:tests? #f ;no "check" target
2863 #:phases
2864 (modify-phases %standard-phases
2865 (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2866 (lambda* (#:key inputs #:allow-other-keys)
2867 (substitute* "CMakeLists.txt"
2868 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2869 "set(Boost_USE_STATIC_LIBS OFF)")
2870 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2871 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2872 (substitute* "src/CMakeLists.txt"
2873 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
2874 (string-append (assoc-ref inputs "bamtools") "/lib"))
2875 (("libprotobuf.a") "libprotobuf.so"))
2876 #t)))))
2877 (inputs
2878 `(("boost" ,boost)
2879 ("bamtools" ,bamtools)
2880 ("protobuf" ,protobuf)
2881 ("zlib" ,zlib)))
2882 (home-page "http://bio.math.berkeley.edu/eXpress")
2883 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2884 (description
2885 "eXpress is a streaming tool for quantifying the abundances of a set of
2886 target sequences from sampled subsequences. Example applications include
2887 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2888 analysis (from RNA-Seq), transcription factor binding quantification in
2889 ChIP-Seq, and analysis of metagenomic data.")
2890 (license license:artistic2.0)))
2891
2892 (define-public express-beta-diversity
2893 (package
2894 (name "express-beta-diversity")
2895 (version "1.0.8")
2896 (source (origin
2897 (method git-fetch)
2898 (uri (git-reference
2899 (url "https://github.com/dparks1134/ExpressBetaDiversity.git")
2900 (commit (string-append "v" version))))
2901 (file-name (git-file-name name version))
2902 (sha256
2903 (base32
2904 "0s0yzg5c21349rh7x4w9266jsvnp7j1hp9cf8sk32hz8nvrj745x"))))
2905 (build-system gnu-build-system)
2906 (arguments
2907 `(#:phases
2908 (modify-phases %standard-phases
2909 (delete 'configure)
2910 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2911 (replace 'check
2912 (lambda _ (invoke "../bin/ExpressBetaDiversity" "-u") #t))
2913 (replace 'install
2914 (lambda* (#:key outputs #:allow-other-keys)
2915 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2916 (install-file "../scripts/convertToEBD.py" bin)
2917 (install-file "../bin/ExpressBetaDiversity" bin)
2918 #t))))))
2919 (inputs
2920 `(("python" ,python-2)))
2921 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2922 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2923 (description
2924 "Express Beta Diversity (EBD) calculates ecological beta diversity
2925 (dissimilarity) measures between biological communities. EBD implements a
2926 variety of diversity measures including those that make use of phylogenetic
2927 similarity of community members.")
2928 (license license:gpl3+)))
2929
2930 (define-public fasttree
2931 (package
2932 (name "fasttree")
2933 (version "2.1.10")
2934 (source (origin
2935 (method url-fetch)
2936 (uri (string-append
2937 "http://www.microbesonline.org/fasttree/FastTree-"
2938 version ".c"))
2939 (sha256
2940 (base32
2941 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
2942 (build-system gnu-build-system)
2943 (arguments
2944 `(#:tests? #f ; no "check" target
2945 #:phases
2946 (modify-phases %standard-phases
2947 (delete 'unpack)
2948 (delete 'configure)
2949 (replace 'build
2950 (lambda* (#:key source #:allow-other-keys)
2951 (invoke "gcc"
2952 "-O3"
2953 "-finline-functions"
2954 "-funroll-loops"
2955 "-Wall"
2956 "-o"
2957 "FastTree"
2958 source
2959 "-lm")
2960 (invoke "gcc"
2961 "-DOPENMP"
2962 "-fopenmp"
2963 "-O3"
2964 "-finline-functions"
2965 "-funroll-loops"
2966 "-Wall"
2967 "-o"
2968 "FastTreeMP"
2969 source
2970 "-lm")
2971 #t))
2972 (replace 'install
2973 (lambda* (#:key outputs #:allow-other-keys)
2974 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2975 (install-file "FastTree" bin)
2976 (install-file "FastTreeMP" bin)
2977 #t))))))
2978 (home-page "http://www.microbesonline.org/fasttree")
2979 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2980 (description
2981 "FastTree can handle alignments with up to a million of sequences in a
2982 reasonable amount of time and memory. For large alignments, FastTree is
2983 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2984 (license license:gpl2+)))
2985
2986 (define-public fastx-toolkit
2987 (package
2988 (name "fastx-toolkit")
2989 (version "0.0.14")
2990 (source (origin
2991 (method url-fetch)
2992 (uri
2993 (string-append
2994 "https://github.com/agordon/fastx_toolkit/releases/download/"
2995 version "/fastx_toolkit-" version ".tar.bz2"))
2996 (sha256
2997 (base32
2998 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2999 (build-system gnu-build-system)
3000 (inputs
3001 `(("libgtextutils" ,libgtextutils)))
3002 (native-inputs
3003 `(("pkg-config" ,pkg-config)))
3004 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
3005 (synopsis "Tools for FASTA/FASTQ file preprocessing")
3006 (description
3007 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
3008 FASTA/FASTQ files preprocessing.
3009
3010 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
3011 containing multiple short-reads sequences. The main processing of such
3012 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
3013 is sometimes more productive to preprocess the files before mapping the
3014 sequences to the genome---manipulating the sequences to produce better mapping
3015 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
3016 (license license:agpl3+)))
3017
3018 (define-public flexbar
3019 (package
3020 (name "flexbar")
3021 (version "3.4.0")
3022 (source (origin
3023 (method git-fetch)
3024 (uri (git-reference
3025 (url "https://github.com/seqan/flexbar.git")
3026 (commit (string-append "v" version))))
3027 (file-name (git-file-name name version))
3028 (sha256
3029 (base32
3030 "1pq9sxvdnldl14libk234m72dqhwgzs3acgl943wchwdqlcsi5r2"))))
3031 (build-system cmake-build-system)
3032 (arguments
3033 `(#:phases
3034 (modify-phases %standard-phases
3035 (add-after 'unpack 'do-not-tune-to-CPU
3036 (lambda _
3037 (substitute* "src/CMakeLists.txt"
3038 ((" -march=native") ""))
3039 #t))
3040 (replace 'check
3041 (lambda* (#:key outputs #:allow-other-keys)
3042 (setenv "PATH" (string-append (getcwd) ":" (getenv "PATH")))
3043 (with-directory-excursion "../source/test"
3044 (invoke "bash" "flexbar_test.sh"))
3045 #t))
3046 (replace 'install
3047 (lambda* (#:key outputs #:allow-other-keys)
3048 (let* ((out (string-append (assoc-ref outputs "out")))
3049 (bin (string-append out "/bin/")))
3050 (install-file "flexbar" bin))
3051 #t)))))
3052 (inputs
3053 `(("tbb" ,tbb)
3054 ("zlib" ,zlib)))
3055 (native-inputs
3056 `(("pkg-config" ,pkg-config)
3057 ("seqan" ,seqan)))
3058 (home-page "https://github.com/seqan/flexbar")
3059 (synopsis "Barcode and adapter removal tool for sequencing platforms")
3060 (description
3061 "Flexbar preprocesses high-throughput nucleotide sequencing data
3062 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
3063 Moreover, trimming and filtering features are provided. Flexbar increases
3064 read mapping rates and improves genome and transcriptome assemblies. It
3065 supports next-generation sequencing data in fasta/q and csfasta/q format from
3066 Illumina, Roche 454, and the SOLiD platform.")
3067 (license license:bsd-3)))
3068
3069 (define-public fraggenescan
3070 (package
3071 (name "fraggenescan")
3072 (version "1.30")
3073 (source
3074 (origin
3075 (method url-fetch)
3076 (uri
3077 (string-append "mirror://sourceforge/fraggenescan/"
3078 "FragGeneScan" version ".tar.gz"))
3079 (sha256
3080 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
3081 (build-system gnu-build-system)
3082 (arguments
3083 `(#:phases
3084 (modify-phases %standard-phases
3085 (delete 'configure)
3086 (add-before 'build 'patch-paths
3087 (lambda* (#:key outputs #:allow-other-keys)
3088 (let* ((out (string-append (assoc-ref outputs "out")))
3089 (share (string-append out "/share/fraggenescan/")))
3090 (substitute* "run_FragGeneScan.pl"
3091 (("system\\(\"rm")
3092 (string-append "system(\"" (which "rm")))
3093 (("system\\(\"mv")
3094 (string-append "system(\"" (which "mv")))
3095 (("\\\"awk") (string-append "\"" (which "awk")))
3096 ;; This script and other programs expect the training files
3097 ;; to be in the non-standard location bin/train/XXX. Change
3098 ;; this to be share/fraggenescan/train/XXX instead.
3099 (("^\\$train.file = \\$dir.*")
3100 (string-append "$train_file = \""
3101 share
3102 "train/\".$FGS_train_file;")))
3103 (substitute* "run_hmm.c"
3104 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
3105 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
3106 #t))
3107 (replace 'build
3108 (lambda _
3109 (invoke "make" "clean")
3110 (invoke "make" "fgs")
3111 #t))
3112 (replace 'install
3113 (lambda* (#:key outputs #:allow-other-keys)
3114 (let* ((out (string-append (assoc-ref outputs "out")))
3115 (bin (string-append out "/bin/"))
3116 (share (string-append out "/share/fraggenescan/train")))
3117 (install-file "run_FragGeneScan.pl" bin)
3118 (install-file "FragGeneScan" bin)
3119 (copy-recursively "train" share))
3120 #t))
3121 (delete 'check)
3122 (add-after 'install 'post-install-check
3123 ;; In lieu of 'make check', run one of the examples and check the
3124 ;; output files gets created.
3125 (lambda* (#:key outputs #:allow-other-keys)
3126 (let* ((out (string-append (assoc-ref outputs "out")))
3127 (bin (string-append out "/bin/"))
3128 (frag (string-append bin "run_FragGeneScan.pl")))
3129 ;; Test complete genome.
3130 (invoke frag
3131 "-genome=./example/NC_000913.fna"
3132 "-out=./test2"
3133 "-complete=1"
3134 "-train=complete")
3135 (unless (and (file-exists? "test2.faa")
3136 (file-exists? "test2.ffn")
3137 (file-exists? "test2.gff")
3138 (file-exists? "test2.out"))
3139 (error "Expected files do not exist."))
3140 ;; Test incomplete sequences.
3141 (invoke frag
3142 "-genome=./example/NC_000913-fgs.ffn"
3143 "-out=out"
3144 "-complete=0"
3145 "-train=454_30")
3146 #t))))))
3147 (inputs
3148 `(("perl" ,perl)
3149 ("python" ,python-2))) ;not compatible with python 3.
3150 (home-page "https://sourceforge.net/projects/fraggenescan/")
3151 (synopsis "Finds potentially fragmented genes in short reads")
3152 (description
3153 "FragGeneScan is a program for predicting bacterial and archaeal genes in
3154 short and error-prone DNA sequencing reads. It can also be applied to predict
3155 genes in incomplete assemblies or complete genomes.")
3156 ;; GPL3+ according to private correspondense with the authors.
3157 (license license:gpl3+)))
3158
3159 (define-public fxtract
3160 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
3161 (package
3162 (name "fxtract")
3163 (version "2.3")
3164 (source
3165 (origin
3166 (method git-fetch)
3167 (uri (git-reference
3168 (url "https://github.com/ctSkennerton/fxtract.git")
3169 (commit version)))
3170 (file-name (git-file-name name version))
3171 (sha256
3172 (base32
3173 "0hab3gpwf4w9s87qlbswq6ws1qqybh4dcqk79q1ahyldzai5fgp5"))))
3174 (build-system gnu-build-system)
3175 (arguments
3176 `(#:make-flags (list
3177 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3178 "CC=gcc")
3179 #:test-target "fxtract_test"
3180 #:phases
3181 (modify-phases %standard-phases
3182 (delete 'configure)
3183 (add-before 'build 'copy-util
3184 (lambda* (#:key inputs #:allow-other-keys)
3185 (rmdir "util")
3186 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
3187 #t))
3188 ;; Do not use make install as this requires additional dependencies.
3189 (replace 'install
3190 (lambda* (#:key outputs #:allow-other-keys)
3191 (let* ((out (assoc-ref outputs "out"))
3192 (bin (string-append out"/bin")))
3193 (install-file "fxtract" bin)
3194 #t))))))
3195 (inputs
3196 `(("pcre" ,pcre)
3197 ("zlib" ,zlib)))
3198 (native-inputs
3199 ;; ctskennerton-util is licensed under GPL2.
3200 `(("ctskennerton-util"
3201 ,(origin
3202 (method git-fetch)
3203 (uri (git-reference
3204 (url "https://github.com/ctSkennerton/util.git")
3205 (commit util-commit)))
3206 (file-name (string-append
3207 "ctstennerton-util-" util-commit "-checkout"))
3208 (sha256
3209 (base32
3210 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
3211 (home-page "https://github.com/ctSkennerton/fxtract")
3212 (synopsis "Extract sequences from FASTA and FASTQ files")
3213 (description
3214 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
3215 or FASTQ) file given a subsequence. It uses a simple substring search for
3216 basic tasks but can change to using POSIX regular expressions, PCRE, hash
3217 lookups or multi-pattern searching as required. By default fxtract looks in
3218 the sequence of each record but can also be told to look in the header,
3219 comment or quality sections.")
3220 ;; 'util' requires SSE instructions.
3221 (supported-systems '("x86_64-linux"))
3222 (license license:expat))))
3223
3224 (define-public gemma
3225 (package
3226 (name "gemma")
3227 (version "0.98")
3228 (source (origin
3229 (method git-fetch)
3230 (uri (git-reference
3231 (url "https://github.com/xiangzhou/GEMMA.git")
3232 (commit (string-append "v" version))))
3233 (file-name (git-file-name name version))
3234 (sha256
3235 (base32
3236 "1s3ncnbn45r2hh1cvrqky1kbqq6546biypr4f5mkw1kqlrgyh0yg"))))
3237 (inputs
3238 `(("eigen" ,eigen)
3239 ("gfortran" ,gfortran "lib")
3240 ("gsl" ,gsl)
3241 ("lapack" ,lapack)
3242 ("openblas" ,openblas)
3243 ("zlib" ,zlib)))
3244 (build-system gnu-build-system)
3245 (arguments
3246 `(#:make-flags
3247 '(,@(match (%current-system)
3248 ("x86_64-linux"
3249 '("FORCE_DYNAMIC=1"))
3250 ("i686-linux"
3251 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
3252 (_
3253 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
3254 #:phases
3255 (modify-phases %standard-phases
3256 (delete 'configure)
3257 (add-after 'unpack 'find-eigen
3258 (lambda* (#:key inputs #:allow-other-keys)
3259 ;; Ensure that Eigen headers can be found
3260 (setenv "CPLUS_INCLUDE_PATH"
3261 (string-append (getenv "CPLUS_INCLUDE_PATH")
3262 ":"
3263 (assoc-ref inputs "eigen")
3264 "/include/eigen3"))
3265 #t))
3266 (add-before 'build 'bin-mkdir
3267 (lambda _
3268 (mkdir-p "bin")
3269 #t))
3270 (replace 'install
3271 (lambda* (#:key outputs #:allow-other-keys)
3272 (let ((out (assoc-ref outputs "out")))
3273 (install-file "bin/gemma"
3274 (string-append
3275 out "/bin")))
3276 #t)))
3277 #:tests? #f)) ; no tests included yet
3278 (home-page "https://github.com/xiangzhou/GEMMA")
3279 (synopsis "Tool for genome-wide efficient mixed model association")
3280 (description
3281 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
3282 standard linear mixed model resolver with application in genome-wide
3283 association studies (GWAS).")
3284 (license license:gpl3)))
3285
3286 (define-public grit
3287 (package
3288 (name "grit")
3289 (version "2.0.5")
3290 (source (origin
3291 (method git-fetch)
3292 (uri (git-reference
3293 (url "https://github.com/nboley/grit.git")
3294 (commit version)))
3295 (file-name (git-file-name name version))
3296 (sha256
3297 (base32
3298 "1l5v8vfvfbrpmgnrvbrbv40d0arhxcnmxgv2f1mlcqfa3q6bkqm9"))))
3299 (build-system python-build-system)
3300 (arguments
3301 `(#:python ,python-2
3302 #:phases
3303 (modify-phases %standard-phases
3304 (add-after 'unpack 'generate-from-cython-sources
3305 (lambda* (#:key inputs outputs #:allow-other-keys)
3306 ;; Delete these C files to force fresh generation from pyx sources.
3307 (delete-file "grit/sparsify_support_fns.c")
3308 (delete-file "grit/call_peaks_support_fns.c")
3309 (substitute* "setup.py"
3310 (("Cython.Setup") "Cython.Build"))
3311 #t)))))
3312 (inputs
3313 `(("python-scipy" ,python2-scipy)
3314 ("python-numpy" ,python2-numpy)
3315 ("python-pysam" ,python2-pysam)
3316 ("python-networkx" ,python2-networkx)))
3317 (native-inputs
3318 `(("python-cython" ,python2-cython)))
3319 (home-page "http://grit-bio.org")
3320 (synopsis "Tool for integrative analysis of RNA-seq type assays")
3321 (description
3322 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
3323 full length transcript models. When none of these data sources are available,
3324 GRIT can be run by providing a candidate set of TES or TSS sites. In
3325 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
3326 also be run in quantification mode, where it uses a provided GTF file and just
3327 estimates transcript expression.")
3328 (license license:gpl3+)))
3329
3330 (define-public hisat
3331 (package
3332 (name "hisat")
3333 (version "0.1.4")
3334 (source (origin
3335 (method url-fetch)
3336 (uri (string-append
3337 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
3338 version "-beta-source.zip"))
3339 (sha256
3340 (base32
3341 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
3342 (build-system gnu-build-system)
3343 (arguments
3344 `(#:tests? #f ;no check target
3345 #:make-flags '("allall"
3346 ;; Disable unsupported `popcnt' instructions on
3347 ;; architectures other than x86_64
3348 ,@(if (string-prefix? "x86_64"
3349 (or (%current-target-system)
3350 (%current-system)))
3351 '()
3352 '("POPCNT_CAPABILITY=0")))
3353 #:phases
3354 (modify-phases %standard-phases
3355 (add-after 'unpack 'patch-sources
3356 (lambda _
3357 ;; XXX Cannot use snippet because zip files are not supported
3358 (substitute* "Makefile"
3359 (("^CC = .*$") "CC = gcc")
3360 (("^CPP = .*$") "CPP = g++")
3361 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
3362 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
3363 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
3364 (substitute* '("hisat-build" "hisat-inspect")
3365 (("/usr/bin/env") (which "env")))
3366 #t))
3367 (replace 'install
3368 (lambda* (#:key outputs #:allow-other-keys)
3369 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
3370 (for-each (lambda (file)
3371 (install-file file bin))
3372 (find-files
3373 "."
3374 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$")))
3375 #t))
3376 (delete 'configure))))
3377 (native-inputs
3378 `(("unzip" ,unzip)))
3379 (inputs
3380 `(("perl" ,perl)
3381 ("python" ,python)
3382 ("zlib" ,zlib)))
3383 ;; Non-portable SSE instructions are used so building fails on platforms
3384 ;; other than x86_64.
3385 (supported-systems '("x86_64-linux"))
3386 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
3387 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
3388 (description
3389 "HISAT is a fast and sensitive spliced alignment program for mapping
3390 RNA-seq reads. In addition to one global FM index that represents a whole
3391 genome, HISAT uses a large set of small FM indexes that collectively cover the
3392 whole genome. These small indexes (called local indexes) combined with
3393 several alignment strategies enable effective alignment of RNA-seq reads, in
3394 particular, reads spanning multiple exons.")
3395 (license license:gpl3+)))
3396
3397 (define-public hisat2
3398 (package
3399 (name "hisat2")
3400 (version "2.0.5")
3401 (source
3402 (origin
3403 (method url-fetch)
3404 (uri (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
3405 "/downloads/hisat2-" version "-source.zip"))
3406 (sha256
3407 (base32
3408 "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"))))
3409 (build-system gnu-build-system)
3410 (arguments
3411 `(#:tests? #f ; no check target
3412 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
3413 #:modules ((guix build gnu-build-system)
3414 (guix build utils)
3415 (srfi srfi-26))
3416 #:phases
3417 (modify-phases %standard-phases
3418 (add-after 'unpack 'make-deterministic
3419 (lambda _
3420 (substitute* "Makefile"
3421 (("`date`") "0"))
3422 #t))
3423 (delete 'configure)
3424 (replace 'install
3425 (lambda* (#:key outputs #:allow-other-keys)
3426 (let* ((out (assoc-ref outputs "out"))
3427 (bin (string-append out "/bin/"))
3428 (doc (string-append out "/share/doc/hisat2/")))
3429 (for-each
3430 (cut install-file <> bin)
3431 (find-files "."
3432 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
3433 (mkdir-p doc)
3434 (install-file "doc/manual.inc.html" doc))
3435 #t)))))
3436 (native-inputs
3437 `(("unzip" ,unzip) ; needed for archive from ftp
3438 ("perl" ,perl)
3439 ("pandoc" ,ghc-pandoc))) ; for documentation
3440 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
3441 (synopsis "Graph-based alignment of genomic sequencing reads")
3442 (description "HISAT2 is a fast and sensitive alignment program for mapping
3443 next-generation sequencing reads (both DNA and RNA) to a population of human
3444 genomes (as well as to a single reference genome). In addition to using one
3445 global @dfn{graph FM} (GFM) index that represents a population of human
3446 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
3447 the whole genome. These small indexes, combined with several alignment
3448 strategies, enable rapid and accurate alignment of sequencing reads. This new
3449 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
3450 ;; HISAT2 contains files from Bowtie2, which is released under
3451 ;; GPLv2 or later. The HISAT2 source files are released under
3452 ;; GPLv3 or later.
3453 (license license:gpl3+)))
3454
3455 (define-public hmmer
3456 (package
3457 (name "hmmer")
3458 (version "3.2.1")
3459 (source
3460 (origin
3461 (method url-fetch)
3462 (uri (string-append
3463 "http://eddylab.org/software/hmmer/hmmer-" version ".tar.gz"))
3464 (sha256
3465 (base32
3466 "171bivy6xhgjsz5nv53n81pc3frnwz29ylblawk2bv46szwjjqd5"))))
3467 (build-system gnu-build-system)
3468 (native-inputs `(("perl" ,perl)))
3469 (home-page "http://hmmer.org/")
3470 (synopsis "Biosequence analysis using profile hidden Markov models")
3471 (description
3472 "HMMER is used for searching sequence databases for homologs of protein
3473 sequences, and for making protein sequence alignments. It implements methods
3474 using probabilistic models called profile hidden Markov models (profile
3475 HMMs).")
3476 ;; hmmer uses non-portable SSE intrinsics so building fails on other
3477 ;; platforms.
3478 (supported-systems '("x86_64-linux" "i686-linux"))
3479 (license license:bsd-3)))
3480
3481 (define-public htseq
3482 (package
3483 (name "htseq")
3484 (version "0.9.1")
3485 (source (origin
3486 (method url-fetch)
3487 (uri (pypi-uri "HTSeq" version))
3488 (sha256
3489 (base32
3490 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
3491 (build-system python-build-system)
3492 (native-inputs
3493 `(("python-cython" ,python-cython)))
3494 ;; Numpy needs to be propagated when htseq is used as a Python library.
3495 (propagated-inputs
3496 `(("python-numpy" ,python-numpy)))
3497 (inputs
3498 `(("python-pysam" ,python-pysam)
3499 ("python-matplotlib" ,python-matplotlib)))
3500 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
3501 (synopsis "Analysing high-throughput sequencing data with Python")
3502 (description
3503 "HTSeq is a Python package that provides infrastructure to process data
3504 from high-throughput sequencing assays.")
3505 (license license:gpl3+)))
3506
3507 (define-public python2-htseq
3508 (package-with-python2 htseq))
3509
3510 (define-public java-htsjdk
3511 (package
3512 (name "java-htsjdk")
3513 (version "2.3.0") ; last version without build dependency on gradle
3514 (source (origin
3515 (method git-fetch)
3516 (uri (git-reference
3517 (url "https://github.com/samtools/htsjdk.git")
3518 (commit version)))
3519 (file-name (git-file-name name version))
3520 (sha256
3521 (base32
3522 "1b178ixcabanm834ydjl3jiakpyxdmki32hqfv2abrzn3rcwa28i"))
3523 (modules '((guix build utils)))
3524 (snippet
3525 ;; Delete pre-built binaries
3526 '(begin
3527 (delete-file-recursively "lib")
3528 (mkdir-p "lib")
3529 #t))))
3530 (build-system ant-build-system)
3531 (arguments
3532 `(#:tests? #f ; test require Internet access
3533 #:jdk ,icedtea-8
3534 #:make-flags
3535 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3536 "/share/java/htsjdk/"))
3537 #:build-target "all"
3538 #:phases
3539 (modify-phases %standard-phases
3540 ;; The build phase also installs the jars
3541 (delete 'install))))
3542 (inputs
3543 `(("java-ngs" ,java-ngs)
3544 ("java-snappy-1" ,java-snappy-1)
3545 ("java-commons-compress" ,java-commons-compress)
3546 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3547 ("java-commons-jexl-2" ,java-commons-jexl-2)
3548 ("java-xz" ,java-xz)))
3549 (native-inputs
3550 `(("java-testng" ,java-testng)))
3551 (home-page "http://samtools.github.io/htsjdk/")
3552 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3553 (description
3554 "HTSJDK is an implementation of a unified Java library for accessing
3555 common file formats, such as SAM and VCF, used for high-throughput
3556 sequencing (HTS) data. There are also an number of useful utilities for
3557 manipulating HTS data.")
3558 (license license:expat)))
3559
3560 (define-public java-htsjdk-latest
3561 (package
3562 (name "java-htsjdk")
3563 (version "2.14.3")
3564 (source (origin
3565 (method git-fetch)
3566 (uri (git-reference
3567 (url "https://github.com/samtools/htsjdk.git")
3568 (commit version)))
3569 (file-name (string-append name "-" version "-checkout"))
3570 (sha256
3571 (base32
3572 "1lmya1fdjy03mz6zmdmd86j9v9vfhqb3952mqq075navx1i6g4bc"))))
3573 (build-system ant-build-system)
3574 (arguments
3575 `(#:tests? #f ; test require Scala
3576 #:jdk ,icedtea-8
3577 #:jar-name "htsjdk.jar"
3578 #:phases
3579 (modify-phases %standard-phases
3580 (add-after 'unpack 'remove-useless-build.xml
3581 (lambda _ (delete-file "build.xml") #t))
3582 ;; The tests require the scalatest package.
3583 (add-after 'unpack 'remove-tests
3584 (lambda _ (delete-file-recursively "src/test") #t)))))
3585 (inputs
3586 `(("java-ngs" ,java-ngs)
3587 ("java-snappy-1" ,java-snappy-1)
3588 ("java-commons-compress" ,java-commons-compress)
3589 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3590 ("java-commons-jexl-2" ,java-commons-jexl-2)
3591 ("java-xz" ,java-xz)))
3592 (native-inputs
3593 `(("java-junit" ,java-junit)))
3594 (home-page "http://samtools.github.io/htsjdk/")
3595 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3596 (description
3597 "HTSJDK is an implementation of a unified Java library for accessing
3598 common file formats, such as SAM and VCF, used for high-throughput
3599 sequencing (HTS) data. There are also an number of useful utilities for
3600 manipulating HTS data.")
3601 (license license:expat)))
3602
3603 ;; This is needed for picard 2.10.3
3604 (define-public java-htsjdk-2.10.1
3605 (package (inherit java-htsjdk-latest)
3606 (name "java-htsjdk")
3607 (version "2.10.1")
3608 (source (origin
3609 (method git-fetch)
3610 (uri (git-reference
3611 (url "https://github.com/samtools/htsjdk.git")
3612 (commit version)))
3613 (file-name (string-append name "-" version "-checkout"))
3614 (sha256
3615 (base32
3616 "1kxh7slm2pm3x9p6jxa1wqsq9a31dhiiflhxnxqcisan4k3rwia2"))))
3617 (build-system ant-build-system)
3618 (arguments
3619 `(#:tests? #f ; tests require Scala
3620 #:jdk ,icedtea-8
3621 #:jar-name "htsjdk.jar"
3622 #:phases
3623 (modify-phases %standard-phases
3624 (add-after 'unpack 'remove-useless-build.xml
3625 (lambda _ (delete-file "build.xml") #t))
3626 ;; The tests require the scalatest package.
3627 (add-after 'unpack 'remove-tests
3628 (lambda _ (delete-file-recursively "src/test") #t)))))))
3629
3630 ;; This version matches java-htsjdk 2.3.0. Later versions also require a more
3631 ;; recent version of java-htsjdk, which depends on gradle.
3632 (define-public java-picard
3633 (package
3634 (name "java-picard")
3635 (version "2.3.0")
3636 (source (origin
3637 (method git-fetch)
3638 (uri (git-reference
3639 (url "https://github.com/broadinstitute/picard.git")
3640 (commit version)))
3641 (file-name (string-append "java-picard-" version "-checkout"))
3642 (sha256
3643 (base32
3644 "1ll7mf4r3by92w2nhlmpa591xd1f46xlkwh59mq6fvbb5pdwzvx6"))
3645 (modules '((guix build utils)))
3646 (snippet
3647 '(begin
3648 ;; Delete pre-built binaries.
3649 (delete-file-recursively "lib")
3650 (mkdir-p "lib")
3651 (substitute* "build.xml"
3652 ;; Remove build-time dependency on git.
3653 (("failifexecutionfails=\"true\"")
3654 "failifexecutionfails=\"false\"")
3655 ;; Use our htsjdk.
3656 (("depends=\"compile-htsjdk, ")
3657 "depends=\"")
3658 (("depends=\"compile-htsjdk-tests, ")
3659 "depends=\"")
3660 ;; Build picard-lib.jar before building picard.jar
3661 (("name=\"picard-jar\" depends=\"" line)
3662 (string-append line "picard-lib-jar, ")))
3663 #t))))
3664 (build-system ant-build-system)
3665 (arguments
3666 `(#:build-target "picard-jar"
3667 #:test-target "test"
3668 ;; Tests require jacoco:coverage.
3669 #:tests? #f
3670 #:make-flags
3671 (list (string-append "-Dhtsjdk_lib_dir="
3672 (assoc-ref %build-inputs "java-htsjdk")
3673 "/share/java/htsjdk/")
3674 "-Dhtsjdk-classes=dist/tmp"
3675 (string-append "-Dhtsjdk-version="
3676 ,(package-version java-htsjdk)))
3677 #:jdk ,icedtea-8
3678 #:phases
3679 (modify-phases %standard-phases
3680 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3681 (delete 'generate-jar-indices)
3682 (add-after 'unpack 'use-our-htsjdk
3683 (lambda* (#:key inputs #:allow-other-keys)
3684 (substitute* "build.xml"
3685 (("\\$\\{htsjdk\\}/lib")
3686 (string-append (assoc-ref inputs "java-htsjdk")
3687 "/share/java/htsjdk/")))
3688 #t))
3689 (add-after 'unpack 'make-test-target-independent
3690 (lambda* (#:key inputs #:allow-other-keys)
3691 (substitute* "build.xml"
3692 (("name=\"test\" depends=\"compile, ")
3693 "name=\"test\" depends=\""))
3694 #t))
3695 (replace 'install (install-jars "dist")))))
3696 (inputs
3697 `(("java-htsjdk" ,java-htsjdk)
3698 ("java-guava" ,java-guava)))
3699 (native-inputs
3700 `(("java-testng" ,java-testng)))
3701 (home-page "http://broadinstitute.github.io/picard/")
3702 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3703 (description "Picard is a set of Java command line tools for manipulating
3704 high-throughput sequencing (HTS) data and formats. Picard is implemented
3705 using the HTSJDK Java library to support accessing file formats that are
3706 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3707 VCF.")
3708 (license license:expat)))
3709
3710 ;; This is needed for dropseq-tools
3711 (define-public java-picard-2.10.3
3712 (package
3713 (name "java-picard")
3714 (version "2.10.3")
3715 (source (origin
3716 (method git-fetch)
3717 (uri (git-reference
3718 (url "https://github.com/broadinstitute/picard.git")
3719 (commit version)))
3720 (file-name (string-append "java-picard-" version "-checkout"))
3721 (sha256
3722 (base32
3723 "1ajlx31l6i1k3y2rhnmgq07sz99g2czqfqgkr9mihmdjp3gwjhvi"))))
3724 (build-system ant-build-system)
3725 (arguments
3726 `(#:jar-name "picard.jar"
3727 ;; Tests require jacoco:coverage.
3728 #:tests? #f
3729 #:jdk ,icedtea-8
3730 #:main-class "picard.cmdline.PicardCommandLine"
3731 #:modules ((guix build ant-build-system)
3732 (guix build utils)
3733 (guix build java-utils)
3734 (sxml simple)
3735 (sxml transform)
3736 (sxml xpath))
3737 #:phases
3738 (modify-phases %standard-phases
3739 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3740 (delete 'generate-jar-indices)
3741 (add-after 'unpack 'remove-useless-build.xml
3742 (lambda _ (delete-file "build.xml") #t))
3743 ;; This is necessary to ensure that htsjdk is found when using
3744 ;; picard.jar as an executable.
3745 (add-before 'build 'edit-classpath-in-manifest
3746 (lambda* (#:key inputs #:allow-other-keys)
3747 (chmod "build.xml" #o664)
3748 (call-with-output-file "build.xml.new"
3749 (lambda (port)
3750 (sxml->xml
3751 (pre-post-order
3752 (with-input-from-file "build.xml"
3753 (lambda _ (xml->sxml #:trim-whitespace? #t)))
3754 `((target . ,(lambda (tag . kids)
3755 (let ((name ((sxpath '(name *text*))
3756 (car kids)))
3757 ;; FIXME: We're breaking the line
3758 ;; early with a dummy path to
3759 ;; ensure that the store reference
3760 ;; isn't broken apart and can still
3761 ;; be found by the reference
3762 ;; scanner.
3763 (msg (format #f
3764 "\
3765 Class-Path: /~a \
3766 ~a/share/java/htsjdk.jar${line.separator}${line.separator}"
3767 ;; maximum line length is 70
3768 (string-tabulate (const #\b) 57)
3769 (assoc-ref inputs "java-htsjdk"))))
3770 (if (member "manifest" name)
3771 `(,tag ,@kids
3772 (replaceregexp
3773 (@ (file "${manifest.file}")
3774 (match "\\r\\n\\r\\n")
3775 (replace "${line.separator}")))
3776 (echo
3777 (@ (message ,msg)
3778 (file "${manifest.file}")
3779 (append "true"))))
3780 `(,tag ,@kids)))))
3781 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
3782 (*text* . ,(lambda (_ txt) txt))))
3783 port)))
3784 (rename-file "build.xml.new" "build.xml")
3785 #t)))))
3786 (propagated-inputs
3787 `(("java-htsjdk" ,java-htsjdk-2.10.1)))
3788 (native-inputs
3789 `(("java-testng" ,java-testng)
3790 ("java-guava" ,java-guava)))
3791 (home-page "http://broadinstitute.github.io/picard/")
3792 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3793 (description "Picard is a set of Java command line tools for manipulating
3794 high-throughput sequencing (HTS) data and formats. Picard is implemented
3795 using the HTSJDK Java library to support accessing file formats that are
3796 commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3797 VCF.")
3798 (license license:expat)))
3799
3800 ;; This is the last version of Picard to provide net.sf.samtools
3801 (define-public java-picard-1.113
3802 (package (inherit java-picard)
3803 (name "java-picard")
3804 (version "1.113")
3805 (source (origin
3806 (method git-fetch)
3807 (uri (git-reference
3808 (url "https://github.com/broadinstitute/picard.git")
3809 (commit version)))
3810 (file-name (string-append "java-picard-" version "-checkout"))
3811 (sha256
3812 (base32
3813 "0lkpvin2fz3hhly4l02kk56fqy8lmlgyzr9kmvljk6ry6l1hw973"))
3814 (modules '((guix build utils)))
3815 (snippet
3816 '(begin
3817 ;; Delete pre-built binaries.
3818 (delete-file-recursively "lib")
3819 (mkdir-p "lib")
3820 #t))))
3821 (build-system ant-build-system)
3822 (arguments
3823 `(#:build-target "picard-jar"
3824 #:test-target "test"
3825 ;; FIXME: the class path at test time is wrong.
3826 ;; [testng] Error: A JNI error has occurred, please check your installation and try again
3827 ;; [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
3828 #:tests? #f
3829 #:jdk ,icedtea-8
3830 ;; This is only used for tests.
3831 #:make-flags
3832 (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
3833 #:phases
3834 (modify-phases %standard-phases
3835 ;; FIXME: This phase fails.
3836 (delete 'generate-jar-indices)
3837 ;; Do not use bundled ant bzip2.
3838 (add-after 'unpack 'use-ant-bzip
3839 (lambda* (#:key inputs #:allow-other-keys)
3840 (substitute* "build.xml"
3841 (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
3842 (string-append (assoc-ref inputs "ant")
3843 "/lib/ant.jar")))
3844 #t))
3845 (add-after 'unpack 'make-test-target-independent
3846 (lambda* (#:key inputs #:allow-other-keys)
3847 (substitute* "build.xml"
3848 (("name=\"test\" depends=\"compile, ")
3849 "name=\"test\" depends=\"compile-tests, ")
3850 (("name=\"compile\" depends=\"compile-src, compile-tests\"")
3851 "name=\"compile\" depends=\"compile-src\""))
3852 #t))
3853 (add-after 'unpack 'fix-deflater-path
3854 (lambda* (#:key outputs #:allow-other-keys)
3855 (substitute* "src/java/net/sf/samtools/Defaults.java"
3856 (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
3857 (string-append "getStringProperty(\"intel_deflater_so_path\", \""
3858 (assoc-ref outputs "out")
3859 "/lib/jni/libIntelDeflater.so"
3860 "\")")))
3861 #t))
3862 ;; Build the deflater library, because we've previously deleted the
3863 ;; pre-built one. This can only be built with access to the JDK
3864 ;; sources.
3865 (add-after 'build 'build-jni
3866 (lambda* (#:key inputs #:allow-other-keys)
3867 (mkdir-p "lib/jni")
3868 (mkdir-p "jdk-src")
3869 (invoke "tar" "--strip-components=1" "-C" "jdk-src"
3870 "-xf" (assoc-ref inputs "jdk-src"))
3871 (invoke "javah" "-jni"
3872 "-classpath" "classes"
3873 "-d" "lib/"
3874 "net.sf.samtools.util.zip.IntelDeflater")
3875 (with-directory-excursion "src/c/inteldeflater"
3876 (invoke "gcc" "-I../../../lib" "-I."
3877 (string-append "-I" (assoc-ref inputs "jdk")
3878 "/include/linux")
3879 "-I../../../jdk-src/src/share/native/common/"
3880 "-I../../../jdk-src/src/solaris/native/common/"
3881 "-c" "-O3" "-fPIC" "IntelDeflater.c")
3882 (invoke "gcc" "-shared"
3883 "-o" "../../../lib/jni/libIntelDeflater.so"
3884 "IntelDeflater.o" "-lz" "-lstdc++"))
3885 #t))
3886 ;; We can only build everything else after building the JNI library.
3887 (add-after 'build-jni 'build-rest
3888 (lambda* (#:key make-flags #:allow-other-keys)
3889 (apply invoke `("ant" "all" ,@make-flags))
3890 #t))
3891 (add-before 'build 'set-JAVA6_HOME
3892 (lambda _
3893 (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
3894 #t))
3895 (replace 'install (install-jars "dist"))
3896 (add-after 'install 'install-jni-lib
3897 (lambda* (#:key outputs #:allow-other-keys)
3898 (let ((jni (string-append (assoc-ref outputs "out")
3899 "/lib/jni")))
3900 (mkdir-p jni)
3901 (install-file "lib/jni/libIntelDeflater.so" jni)
3902 #t))))))
3903 (inputs
3904 `(("java-snappy-1" ,java-snappy-1)
3905 ("java-commons-jexl-2" ,java-commons-jexl-2)
3906 ("java-cofoja" ,java-cofoja)
3907 ("ant" ,ant) ; for bzip2 support at runtime
3908 ("zlib" ,zlib)))
3909 (native-inputs
3910 `(("ant-apache-bcel" ,ant-apache-bcel)
3911 ("ant-junit" ,ant-junit)
3912 ("java-testng" ,java-testng)
3913 ("java-commons-bcel" ,java-commons-bcel)
3914 ("java-jcommander" ,java-jcommander)
3915 ("jdk" ,icedtea-8 "jdk")
3916 ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
3917
3918 (define-public fastqc
3919 (package
3920 (name "fastqc")
3921 (version "0.11.5")
3922 (source
3923 (origin
3924 (method url-fetch)
3925 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
3926 "projects/fastqc/fastqc_v"
3927 version "_source.zip"))
3928 (sha256
3929 (base32
3930 "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
3931 (build-system ant-build-system)
3932 (arguments
3933 `(#:tests? #f ; there are no tests
3934 #:build-target "build"
3935 #:phases
3936 (modify-phases %standard-phases
3937 (add-after 'unpack 'fix-dependencies
3938 (lambda* (#:key inputs #:allow-other-keys)
3939 (substitute* "build.xml"
3940 (("jbzip2-0.9.jar")
3941 (string-append (assoc-ref inputs "java-jbzip2")
3942 "/share/java/jbzip2.jar"))
3943 (("sam-1.103.jar")
3944 (string-append (assoc-ref inputs "java-picard-1.113")
3945 "/share/java/sam-1.112.jar"))
3946 (("cisd-jhdf5.jar")
3947 (string-append (assoc-ref inputs "java-cisd-jhdf5")
3948 "/share/java/sis-jhdf5.jar")))
3949 #t))
3950 ;; There is no installation target
3951 (replace 'install
3952 (lambda* (#:key inputs outputs #:allow-other-keys)
3953 (let* ((out (assoc-ref outputs "out"))
3954 (bin (string-append out "/bin"))
3955 (share (string-append out "/share/fastqc/"))
3956 (exe (string-append share "/fastqc")))
3957 (for-each mkdir-p (list bin share))
3958 (copy-recursively "bin" share)
3959 (substitute* exe
3960 (("my \\$java_bin = 'java';")
3961 (string-append "my $java_bin = '"
3962 (assoc-ref inputs "java")
3963 "/bin/java';")))
3964 (chmod exe #o555)
3965 (symlink exe (string-append bin "/fastqc"))
3966 #t))))))
3967 (inputs
3968 `(("java" ,icedtea)
3969 ("perl" ,perl) ; needed for the wrapper script
3970 ("java-cisd-jhdf5" ,java-cisd-jhdf5)
3971 ("java-picard-1.113" ,java-picard-1.113)
3972 ("java-jbzip2" ,java-jbzip2)))
3973 (native-inputs
3974 `(("unzip" ,unzip)))
3975 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
3976 (synopsis "Quality control tool for high throughput sequence data")
3977 (description
3978 "FastQC aims to provide a simple way to do some quality control
3979 checks on raw sequence data coming from high throughput sequencing
3980 pipelines. It provides a modular set of analyses which you can use to
3981 give a quick impression of whether your data has any problems of which
3982 you should be aware before doing any further analysis.
3983
3984 The main functions of FastQC are:
3985
3986 @itemize
3987 @item Import of data from BAM, SAM or FastQ files (any variant);
3988 @item Providing a quick overview to tell you in which areas there may
3989 be problems;
3990 @item Summary graphs and tables to quickly assess your data;
3991 @item Export of results to an HTML based permanent report;
3992 @item Offline operation to allow automated generation of reports
3993 without running the interactive application.
3994 @end itemize\n")
3995 (license license:gpl3+)))
3996
3997 (define-public fastp
3998 (package
3999 (name "fastp")
4000 (version "0.14.1")
4001 (source
4002 (origin
4003 (method git-fetch)
4004 (uri (git-reference
4005 (url "https://github.com/OpenGene/fastp.git")
4006 (commit (string-append "v" version))))
4007 (file-name (git-file-name name version))
4008 (sha256
4009 (base32
4010 "1r6ms5zbf5rps4rgp4z73nczadl00b5rqylw8f684isfz27dp0xh"))))
4011 (build-system gnu-build-system)
4012 (arguments
4013 `(#:tests? #f ; there are none
4014 #:make-flags
4015 (list (string-append "BINDIR=" (assoc-ref %outputs "out") "/bin"))
4016 #:phases
4017 (modify-phases %standard-phases
4018 (delete 'configure)
4019 (add-before 'install 'create-target-dir
4020 (lambda* (#:key outputs #:allow-other-keys)
4021 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4022 #t)))))
4023 (inputs
4024 `(("zlib" ,zlib)))
4025 (home-page "https://github.com/OpenGene/fastp/")
4026 (synopsis "All-in-one FastQ preprocessor")
4027 (description
4028 "Fastp is a tool designed to provide fast all-in-one preprocessing for
4029 FastQ files. This tool has multi-threading support to afford high
4030 performance.")
4031 (license license:expat)))
4032
4033 (define-public htslib
4034 (package
4035 (name "htslib")
4036 (version "1.9")
4037 (source (origin
4038 (method url-fetch)
4039 (uri (string-append
4040 "https://github.com/samtools/htslib/releases/download/"
4041 version "/htslib-" version ".tar.bz2"))
4042 (sha256
4043 (base32
4044 "16ljv43sc3fxmv63w7b2ff8m1s7h89xhazwmbm1bicz8axq8fjz0"))))
4045 (build-system gnu-build-system)
4046 (inputs
4047 `(("openssl" ,openssl)
4048 ("curl" ,curl)
4049 ("zlib" ,zlib)))
4050 (native-inputs
4051 `(("perl" ,perl)))
4052 (home-page "http://www.htslib.org")
4053 (synopsis "C library for reading/writing high-throughput sequencing data")
4054 (description
4055 "HTSlib is a C library for reading/writing high-throughput sequencing
4056 data. It also provides the @command{bgzip}, @command{htsfile}, and
4057 @command{tabix} utilities.")
4058 ;; Files under cram/ are released under the modified BSD license;
4059 ;; the rest is released under the Expat license
4060 (license (list license:expat license:bsd-3))))
4061
4062 ;; This package should be removed once no packages rely upon it.
4063 (define htslib-1.3
4064 (package
4065 (inherit htslib)
4066 (version "1.3.1")
4067 (source (origin
4068 (method url-fetch)
4069 (uri (string-append
4070 "https://github.com/samtools/htslib/releases/download/"
4071 version "/htslib-" version ".tar.bz2"))
4072 (sha256
4073 (base32
4074 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
4075
4076 (define-public idr
4077 (package
4078 (name "idr")
4079 (version "2.0.3")
4080 (source (origin
4081 (method git-fetch)
4082 (uri (git-reference
4083 (url "https://github.com/nboley/idr.git")
4084 (commit version)))
4085 (file-name (git-file-name name version))
4086 (sha256
4087 (base32
4088 "04j876h6z444v2q79drxx283d3k5snd72kj895wbalnl42206x9g"))
4089 ;; Delete generated C code.
4090 (snippet
4091 '(begin (delete-file "idr/inv_cdf.c") #t))))
4092 (build-system python-build-system)
4093 ;; There is only one test ("test_inv_cdf.py") and it tests features that
4094 ;; are no longer part of this package. It also asserts False, which
4095 ;; causes the tests to always fail.
4096 (arguments `(#:tests? #f))
4097 (propagated-inputs
4098 `(("python-scipy" ,python-scipy)
4099 ("python-sympy" ,python-sympy)
4100 ("python-numpy" ,python-numpy)
4101 ("python-matplotlib" ,python-matplotlib)))
4102 (native-inputs
4103 `(("python-cython" ,python-cython)))
4104 (home-page "https://github.com/nboley/idr")
4105 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
4106 (description
4107 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
4108 to measure the reproducibility of findings identified from replicate
4109 experiments and provide highly stable thresholds based on reproducibility.")
4110 (license license:gpl2+)))
4111
4112 (define-public jellyfish
4113 (package
4114 (name "jellyfish")
4115 (version "2.2.10")
4116 (source (origin
4117 (method url-fetch)
4118 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
4119 "releases/download/v" version
4120 "/jellyfish-" version ".tar.gz"))
4121 (sha256
4122 (base32
4123 "1k4pc3fvv6w1km2yph4m5sd78fbxp21d6xyzgmy0gjihzc6mb249"))))
4124 (build-system gnu-build-system)
4125 (outputs '("out" ;for library
4126 "ruby" ;for Ruby bindings
4127 "python")) ;for Python bindings
4128 (arguments
4129 `(#:configure-flags
4130 (list (string-append "--enable-ruby-binding="
4131 (assoc-ref %outputs "ruby"))
4132 (string-append "--enable-python-binding="
4133 (assoc-ref %outputs "python")))
4134 #:phases
4135 (modify-phases %standard-phases
4136 (add-before 'check 'set-SHELL-variable
4137 (lambda _
4138 ;; generator_manager.hpp either uses /bin/sh or $SHELL
4139 ;; to run tests.
4140 (setenv "SHELL" (which "bash"))
4141 #t)))))
4142 (native-inputs
4143 `(("bc" ,bc)
4144 ("time" ,time)
4145 ("ruby" ,ruby)
4146 ("python" ,python-2)
4147 ("pkg-config" ,pkg-config)))
4148 (inputs
4149 `(("htslib" ,htslib)))
4150 (synopsis "Tool for fast counting of k-mers in DNA")
4151 (description
4152 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
4153 DNA. A k-mer is a substring of length k, and counting the occurrences of all
4154 such substrings is a central step in many analyses of DNA sequence. Jellyfish
4155 is a command-line program that reads FASTA and multi-FASTA files containing
4156 DNA sequences. It outputs its k-mer counts in a binary format, which can be
4157 translated into a human-readable text format using the @code{jellyfish dump}
4158 command, or queried for specific k-mers with @code{jellyfish query}.")
4159 (home-page "http://www.genome.umd.edu/jellyfish.html")
4160 ;; JELLYFISH seems to be 64-bit only.
4161 (supported-systems '("x86_64-linux" "aarch64-linux" "mips64el-linux"))
4162 ;; The combined work is published under the GPLv3 or later. Individual
4163 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
4164 (license (list license:gpl3+ license:expat))))
4165
4166 (define-public khmer
4167 (package
4168 (name "khmer")
4169 (version "2.1.2")
4170 (source
4171 (origin
4172 (method git-fetch)
4173 (uri (git-reference
4174 (url "https://github.com/dib-lab/khmer.git")
4175 (commit (string-append "v" version))))
4176 (file-name (git-file-name name version))
4177 (sha256
4178 (base32
4179 "02x38d9jw2r58y8dmnj4hffy9wxv1yc1jwbvdbhby9dxndv94r9m"))
4180 (patches (search-patches "khmer-use-libraries.patch"))
4181 (modules '((guix build utils)))
4182 (snippet
4183 '(begin
4184 ;; Delete bundled libraries. We do not replace the bundled seqan
4185 ;; as it is a modified subset of the old version 1.4.1.
4186 ;;
4187 ;; We do not replace the bundled MurmurHash as the canonical
4188 ;; repository for this code 'SMHasher' is unsuitable for providing
4189 ;; a library. See
4190 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
4191 (delete-file-recursively "third-party/zlib")
4192 (delete-file-recursively "third-party/bzip2")
4193 #t))))
4194 (build-system python-build-system)
4195 (arguments
4196 `(#:phases
4197 (modify-phases %standard-phases
4198 (add-after 'unpack 'set-cc
4199 (lambda _ (setenv "CC" "gcc") #t))
4200 ;; FIXME: This fails with "permission denied".
4201 (delete 'reset-gzip-timestamps))))
4202 (native-inputs
4203 `(("python-cython" ,python-cython)
4204 ("python-pytest" ,python-pytest)
4205 ("python-pytest-runner" ,python-pytest-runner)))
4206 (inputs
4207 `(("zlib" ,zlib)
4208 ("bzip2" ,bzip2)
4209 ("python-screed" ,python-screed)
4210 ("python-bz2file" ,python-bz2file)))
4211 (home-page "https://khmer.readthedocs.org/")
4212 (synopsis "K-mer counting, filtering and graph traversal library")
4213 (description "The khmer software is a set of command-line tools for
4214 working with DNA shotgun sequencing data from genomes, transcriptomes,
4215 metagenomes and single cells. Khmer can make de novo assemblies faster, and
4216 sometimes better. Khmer can also identify and fix problems with shotgun
4217 data.")
4218 ;; When building on i686, armhf and mips64el, we get the following error:
4219 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
4220 (supported-systems '("x86_64-linux" "aarch64-linux"))
4221 (license license:bsd-3)))
4222
4223 (define-public kaiju
4224 (package
4225 (name "kaiju")
4226 (version "1.6.3")
4227 (source (origin
4228 (method git-fetch)
4229 (uri (git-reference
4230 (url "https://github.com/bioinformatics-centre/kaiju")
4231 (commit (string-append "v" version))))
4232 (file-name (git-file-name name version))
4233 (sha256
4234 (base32
4235 "119pzi0ddzv9mjg4wwa6han0cwr3k3ssn7kirvsjfcq05mi5ka0x"))))
4236 (build-system gnu-build-system)
4237 (arguments
4238 `(#:tests? #f ; There are no tests.
4239 #:phases
4240 (modify-phases %standard-phases
4241 (delete 'configure)
4242 (add-before 'build 'move-to-src-dir
4243 (lambda _ (chdir "src") #t))
4244 (replace 'install
4245 (lambda* (#:key inputs outputs #:allow-other-keys)
4246 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
4247 (mkdir-p bin)
4248 (chdir "..")
4249 (copy-recursively "bin" bin))
4250 #t)))))
4251 (inputs
4252 `(("perl" ,perl)
4253 ("zlib" ,zlib)))
4254 (home-page "http://kaiju.binf.ku.dk/")
4255 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
4256 (description "Kaiju is a program for sensitive taxonomic classification
4257 of high-throughput sequencing reads from metagenomic whole genome sequencing
4258 experiments.")
4259 (license license:gpl3+)))
4260
4261 (define-public macs
4262 (package
4263 (name "macs")
4264 (version "2.1.1.20160309")
4265 (source (origin
4266 (method url-fetch)
4267 (uri (pypi-uri "MACS2" version))
4268 (sha256
4269 (base32
4270 "09ixspd1vcqmz1c81ih70xs4m7qml2iy5vyx1y74zww3iy1vl210"))))
4271 (build-system python-build-system)
4272 (arguments
4273 `(#:python ,python-2 ; only compatible with Python 2.7
4274 #:tests? #f)) ; no test target
4275 (inputs
4276 `(("python-numpy" ,python2-numpy)))
4277 (home-page "https://github.com/taoliu/MACS/")
4278 (synopsis "Model based analysis for ChIP-Seq data")
4279 (description
4280 "MACS is an implementation of a ChIP-Seq analysis algorithm for
4281 identifying transcript factor binding sites named Model-based Analysis of
4282 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
4283 the significance of enriched ChIP regions and it improves the spatial
4284 resolution of binding sites through combining the information of both
4285 sequencing tag position and orientation.")
4286 (license license:bsd-3)))
4287
4288 (define-public mafft
4289 (package
4290 (name "mafft")
4291 (version "7.394")
4292 (source (origin
4293 (method url-fetch)
4294 (uri (string-append
4295 "https://mafft.cbrc.jp/alignment/software/mafft-" version
4296 "-without-extensions-src.tgz"))
4297 (file-name (string-append name "-" version ".tgz"))
4298 (sha256
4299 (base32
4300 "0bacjkxfg944p5khhyh5rd4y7wkjc9qk4v2jjj442sqlq0f8ar7b"))))
4301 (build-system gnu-build-system)
4302 (arguments
4303 `(#:tests? #f ; no automated tests, though there are tests in the read me
4304 #:make-flags (let ((out (assoc-ref %outputs "out")))
4305 (list (string-append "PREFIX=" out)
4306 (string-append "BINDIR="
4307 (string-append out "/bin"))))
4308 #:phases
4309 (modify-phases %standard-phases
4310 (add-after 'unpack 'enter-dir
4311 (lambda _ (chdir "core") #t))
4312 (add-after 'enter-dir 'patch-makefile
4313 (lambda _
4314 ;; on advice from the MAFFT authors, there is no need to
4315 ;; distribute mafft-profile, mafft-distance, or
4316 ;; mafft-homologs.rb as they are too "specialised".
4317 (substitute* "Makefile"
4318 ;; remove mafft-homologs.rb from SCRIPTS
4319 (("^SCRIPTS = mafft mafft-homologs.rb")
4320 "SCRIPTS = mafft")
4321 ;; remove mafft-homologs from MANPAGES
4322 (("^MANPAGES = mafft.1 mafft-homologs.1")
4323 "MANPAGES = mafft.1")
4324 ;; remove mafft-distance from PROGS
4325 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
4326 "PROGS = dvtditr dndfast7 dndblast sextet5")
4327 ;; remove mafft-profile from PROGS
4328 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
4329 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
4330 (("^rm -f mafft-profile mafft-profile.exe") "#")
4331 (("^rm -f mafft-distance mafft-distance.exe") ")#")
4332 ;; do not install MAN pages in libexec folder
4333 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
4334 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
4335 #t))
4336 (add-after 'enter-dir 'patch-paths
4337 (lambda* (#:key inputs #:allow-other-keys)
4338 (substitute* '("pairash.c"
4339 "mafft.tmpl")
4340 (("perl") (which "perl"))
4341 (("([\"`| ])awk" _ prefix)
4342 (string-append prefix (which "awk")))
4343 (("grep") (which "grep")))
4344 #t))
4345 (delete 'configure)
4346 (add-after 'install 'wrap-programs
4347 (lambda* (#:key outputs #:allow-other-keys)
4348 (let* ((out (assoc-ref outputs "out"))
4349 (bin (string-append out "/bin"))
4350 (path (string-append
4351 (assoc-ref %build-inputs "coreutils") "/bin:")))
4352 (for-each (lambda (file)
4353 (wrap-program file
4354 `("PATH" ":" prefix (,path))))
4355 (find-files bin)))
4356 #t)))))
4357 (inputs
4358 `(("perl" ,perl)
4359 ("ruby" ,ruby)
4360 ("gawk" ,gawk)
4361 ("grep" ,grep)
4362 ("coreutils" ,coreutils)))
4363 (home-page "http://mafft.cbrc.jp/alignment/software/")
4364 (synopsis "Multiple sequence alignment program")
4365 (description
4366 "MAFFT offers a range of multiple alignment methods for nucleotide and
4367 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
4368 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
4369 sequences).")
4370 (license (license:non-copyleft
4371 "http://mafft.cbrc.jp/alignment/software/license.txt"
4372 "BSD-3 with different formatting"))))
4373
4374 (define-public mash
4375 (package
4376 (name "mash")
4377 (version "2.1")
4378 (source (origin
4379 (method git-fetch)
4380 (uri (git-reference
4381 (url "https://github.com/marbl/mash.git")
4382 (commit (string-append "v" version))))
4383 (file-name (git-file-name name version))
4384 (sha256
4385 (base32
4386 "049hwcc059p2fd9vwndn63laifvvsi0wmv84i6y1fr79k15dxwy6"))
4387 (modules '((guix build utils)))
4388 (snippet
4389 '(begin
4390 ;; Delete bundled kseq.
4391 ;; TODO: Also delete bundled murmurhash and open bloom filter.
4392 (delete-file "src/mash/kseq.h")
4393 #t))))
4394 (build-system gnu-build-system)
4395 (arguments
4396 `(#:tests? #f ; No tests.
4397 #:configure-flags
4398 (list
4399 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
4400 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
4401 #:make-flags (list "CC=gcc")
4402 #:phases
4403 (modify-phases %standard-phases
4404 (add-after 'unpack 'fix-includes
4405 (lambda _
4406 (substitute* '("src/mash/Sketch.cpp"
4407 "src/mash/CommandFind.cpp"
4408 "src/mash/CommandScreen.cpp")
4409 (("^#include \"kseq\\.h\"")
4410 "#include \"htslib/kseq.h\""))
4411 #t))
4412 (add-after 'fix-includes 'use-c++14
4413 (lambda _
4414 ;; capnproto 0.7 requires c++14 to build
4415 (substitute* "configure.ac"
4416 (("c\\+\\+11") "c++14"))
4417 (substitute* "Makefile.in"
4418 (("c\\+\\+11") "c++14"))
4419 #t)))))
4420 (native-inputs
4421 `(("autoconf" ,autoconf)
4422 ;; Capnproto and htslib are statically embedded in the final
4423 ;; application. Therefore we also list their licenses, below.
4424 ("capnproto" ,capnproto)
4425 ("htslib" ,htslib)))
4426 (inputs
4427 `(("gsl" ,gsl)
4428 ("zlib" ,zlib)))
4429 (supported-systems '("x86_64-linux"))
4430 (home-page "https://mash.readthedocs.io")
4431 (synopsis "Fast genome and metagenome distance estimation using MinHash")
4432 (description "Mash is a fast sequence distance estimator that uses the
4433 MinHash algorithm and is designed to work with genomes and metagenomes in the
4434 form of assemblies or reads.")
4435 (license (list license:bsd-3 ; Mash
4436 license:expat ; HTSlib and capnproto
4437 license:public-domain ; MurmurHash 3
4438 license:cpl1.0)))) ; Open Bloom Filter
4439
4440 (define-public metabat
4441 (package
4442 (name "metabat")
4443 (version "2.12.1")
4444 (source
4445 (origin
4446 (method git-fetch)
4447 (uri (git-reference
4448 (url "https://bitbucket.org/berkeleylab/metabat.git")
4449 (commit (string-append "v" version))))
4450 (file-name (git-file-name name version))
4451 (sha256
4452 (base32
4453 "0hyg2smw1nz69mfvjpk45xyyychmda92c80a0cv7baji84ri4iyn"))
4454 (patches (search-patches "metabat-fix-compilation.patch"))))
4455 (build-system scons-build-system)
4456 (arguments
4457 `(#:scons ,scons-python2
4458 #:scons-flags
4459 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4460 (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
4461 #:tests? #f ;; Tests are run during the build phase.
4462 #:phases
4463 (modify-phases %standard-phases
4464 (add-after 'unpack 'fix-includes
4465 (lambda _
4466 (substitute* "src/BamUtils.h"
4467 (("^#include \"bam/bam\\.h\"")
4468 "#include \"samtools/bam.h\"")
4469 (("^#include \"bam/sam\\.h\"")
4470 "#include \"samtools/sam.h\""))
4471 (substitute* "src/KseqReader.h"
4472 (("^#include \"bam/kseq\\.h\"")
4473 "#include \"htslib/kseq.h\""))
4474 #t))
4475 (add-after 'unpack 'fix-scons
4476 (lambda* (#:key inputs #:allow-other-keys)
4477 (substitute* "SConstruct"
4478 (("^htslib_dir += 'samtools'")
4479 (string-append "htslib_dir = '"
4480 (assoc-ref inputs "htslib")
4481 "'"))
4482 (("^samtools_dir = 'samtools'")
4483 (string-append "samtools_dir = '"
4484 (assoc-ref inputs "samtools")
4485 "'"))
4486 (("^findStaticOrShared\\('bam', hts_lib")
4487 (string-append "findStaticOrShared('bam', '"
4488 (assoc-ref inputs "samtools")
4489 "/lib'"))
4490 ;; Do not distribute README.
4491 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
4492 #t)))))
4493 (inputs
4494 `(("zlib" ,zlib)
4495 ("perl" ,perl)
4496 ("samtools" ,samtools)
4497 ("htslib" ,htslib)
4498 ("boost" ,boost)))
4499 (home-page "https://bitbucket.org/berkeleylab/metabat")
4500 (synopsis
4501 "Reconstruction of single genomes from complex microbial communities")
4502 (description
4503 "Grouping large genomic fragments assembled from shotgun metagenomic
4504 sequences to deconvolute complex microbial communities, or metagenome binning,
4505 enables the study of individual organisms and their interactions. MetaBAT is
4506 an automated metagenome binning software, which integrates empirical
4507 probabilistic distances of genome abundance and tetranucleotide frequency.")
4508 ;; The source code contains inline assembly.
4509 (supported-systems '("x86_64-linux" "i686-linux"))
4510 (license (license:non-copyleft "file://license.txt"
4511 "See license.txt in the distribution."))))
4512
4513 (define-public minced
4514 (package
4515 (name "minced")
4516 (version "0.3.2")
4517 (source (origin
4518 (method git-fetch)
4519 (uri (git-reference
4520 (url "https://github.com/ctSkennerton/minced.git")
4521 (commit version)))
4522 (file-name (git-file-name name version))
4523 (sha256
4524 (base32
4525 "1f5h9him0gd355cnx7p6pnxpknhckd4g0v62mg8zyhfbx9as25fv"))))
4526 (build-system gnu-build-system)
4527 (arguments
4528 `(#:test-target "test"
4529 #:phases
4530 (modify-phases %standard-phases
4531 (delete 'configure)
4532 (add-before 'check 'fix-test
4533 (lambda _
4534 ;; Fix test for latest version.
4535 (substitute* "t/Aquifex_aeolicus_VF5.expected"
4536 (("minced:0.1.6") "minced:0.2.0"))
4537 #t))
4538 (replace 'install ; No install target.
4539 (lambda* (#:key inputs outputs #:allow-other-keys)
4540 (let* ((out (assoc-ref outputs "out"))
4541 (bin (string-append out "/bin"))
4542 (wrapper (string-append bin "/minced")))
4543 ;; Minced comes with a wrapper script that tries to figure out where
4544 ;; it is located before running the JAR. Since these paths are known
4545 ;; to us, we build our own wrapper to avoid coreutils dependency.
4546 (install-file "minced.jar" bin)
4547 (with-output-to-file wrapper
4548 (lambda _
4549 (display
4550 (string-append
4551 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
4552 (assoc-ref inputs "jre") "/bin/java -jar "
4553 bin "/minced.jar \"$@\"\n"))))
4554 (chmod wrapper #o555))
4555 #t)))))
4556 (native-inputs
4557 `(("jdk" ,icedtea "jdk")))
4558 (inputs
4559 `(("bash" ,bash)
4560 ("jre" ,icedtea "out")))
4561 (home-page "https://github.com/ctSkennerton/minced")
4562 (synopsis "Mining CRISPRs in Environmental Datasets")
4563 (description
4564 "MinCED is a program to find Clustered Regularly Interspaced Short
4565 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
4566 unassembled metagenomic reads, but is mainly designed for full genomes and
4567 assembled metagenomic sequence.")
4568 (license license:gpl3+)))
4569
4570 (define-public miso
4571 (package
4572 (name "miso")
4573 (version "0.5.4")
4574 (source (origin
4575 (method url-fetch)
4576 (uri (pypi-uri "misopy" version))
4577 (sha256
4578 (base32
4579 "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
4580 (modules '((guix build utils)))
4581 (snippet '(begin
4582 (substitute* "setup.py"
4583 ;; Use setuptools, or else the executables are not
4584 ;; installed.
4585 (("distutils.core") "setuptools")
4586 ;; use "gcc" instead of "cc" for compilation
4587 (("^defines")
4588 "cc.set_executables(
4589 compiler='gcc',
4590 compiler_so='gcc',
4591 linker_exe='gcc',
4592 linker_so='gcc -shared'); defines"))
4593 #t))))
4594 (build-system python-build-system)
4595 (arguments
4596 `(#:python ,python-2 ; only Python 2 is supported
4597 #:tests? #f)) ; no "test" target
4598 (inputs
4599 `(("samtools" ,samtools)
4600 ("python-numpy" ,python2-numpy)
4601 ("python-pysam" ,python2-pysam)
4602 ("python-scipy" ,python2-scipy)
4603 ("python-matplotlib" ,python2-matplotlib)))
4604 (native-inputs
4605 `(("python-mock" ,python2-mock) ;for tests
4606 ("python-pytz" ,python2-pytz))) ;for tests
4607 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
4608 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
4609 (description
4610 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
4611 the expression level of alternatively spliced genes from RNA-Seq data, and
4612 identifies differentially regulated isoforms or exons across samples. By
4613 modeling the generative process by which reads are produced from isoforms in
4614 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
4615 that a read originated from a particular isoform.")
4616 (license license:gpl2)))
4617
4618 (define-public muscle
4619 (package
4620 (name "muscle")
4621 (version "3.8.1551")
4622 (source (origin
4623 (method url-fetch/tarbomb)
4624 (uri (string-append
4625 "http://www.drive5.com/muscle/muscle_src_"
4626 version ".tar.gz"))
4627 (sha256
4628 (base32
4629 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
4630 (build-system gnu-build-system)
4631 (arguments
4632 `(#:make-flags (list "LDLIBS = -lm")
4633 #:phases
4634 (modify-phases %standard-phases
4635 (delete 'configure)
4636 (replace 'check
4637 ;; There are no tests, so just test if it runs.
4638 (lambda _ (invoke "./muscle" "-version") #t))
4639 (replace 'install
4640 (lambda* (#:key outputs #:allow-other-keys)
4641 (let* ((out (assoc-ref outputs "out"))
4642 (bin (string-append out "/bin")))
4643 (install-file "muscle" bin)
4644 #t))))))
4645 (home-page "http://www.drive5.com/muscle")
4646 (synopsis "Multiple sequence alignment program")
4647 (description
4648 "MUSCLE aims to be a fast and accurate multiple sequence alignment
4649 program for nucleotide and protein sequences.")
4650 ;; License information found in 'muscle -h' and usage.cpp.
4651 (license license:public-domain)))
4652
4653 (define-public newick-utils
4654 ;; There are no recent releases so we package from git.
4655 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
4656 (package
4657 (name "newick-utils")
4658 (version (string-append "1.6-1." (string-take commit 8)))
4659 (source (origin
4660 (method git-fetch)
4661 (uri (git-reference
4662 (url "https://github.com/tjunier/newick_utils.git")
4663 (commit commit)))
4664 (file-name (string-append name "-" version "-checkout"))
4665 (sha256
4666 (base32
4667 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
4668 (build-system gnu-build-system)
4669 (inputs
4670 ;; XXX: TODO: Enable Lua and Guile bindings.
4671 ;; https://github.com/tjunier/newick_utils/issues/13
4672 `(("libxml2" ,libxml2)
4673 ("flex" ,flex)
4674 ("bison" ,bison)))
4675 (native-inputs
4676 `(("autoconf" ,autoconf)
4677 ("automake" ,automake)
4678 ("libtool" ,libtool)))
4679 (synopsis "Programs for working with newick format phylogenetic trees")
4680 (description
4681 "Newick-utils is a suite of utilities for processing phylogenetic trees
4682 in Newick format. Functions include re-rooting, extracting subtrees,
4683 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
4684 (home-page "https://github.com/tjunier/newick_utils")
4685 (license license:bsd-3))))
4686
4687 (define-public orfm
4688 (package
4689 (name "orfm")
4690 (version "0.7.1")
4691 (source (origin
4692 (method url-fetch)
4693 (uri (string-append
4694 "https://github.com/wwood/OrfM/releases/download/v"
4695 version "/orfm-" version ".tar.gz"))
4696 (sha256
4697 (base32
4698 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
4699 (build-system gnu-build-system)
4700 (inputs `(("zlib" ,zlib)))
4701 (native-inputs
4702 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
4703 ("ruby-rspec" ,ruby-rspec)
4704 ("ruby" ,ruby)))
4705 (synopsis "Simple and not slow open reading frame (ORF) caller")
4706 (description
4707 "An ORF caller finds stretches of DNA that, when translated, are not
4708 interrupted by stop codons. OrfM finds and prints these ORFs.")
4709 (home-page "https://github.com/wwood/OrfM")
4710 (license license:lgpl3+)))
4711
4712 (define-public python2-pbcore
4713 (package
4714 (name "python2-pbcore")
4715 (version "1.2.10")
4716 (source (origin
4717 (method url-fetch)
4718 (uri (pypi-uri "pbcore" version))
4719 (sha256
4720 (base32
4721 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
4722 (build-system python-build-system)
4723 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
4724 (propagated-inputs
4725 `(("python-cython" ,python2-cython)
4726 ("python-numpy" ,python2-numpy)
4727 ("python-pysam" ,python2-pysam)
4728 ("python-h5py" ,python2-h5py)))
4729 (native-inputs
4730 `(("python-nose" ,python2-nose)
4731 ("python-sphinx" ,python2-sphinx)
4732 ("python-pyxb" ,python2-pyxb)))
4733 (home-page "http://pacificbiosciences.github.io/pbcore/")
4734 (synopsis "Library for reading and writing PacBio data files")
4735 (description
4736 "The pbcore package provides Python APIs for interacting with PacBio data
4737 files and writing bioinformatics applications.")
4738 (license license:bsd-3)))
4739
4740 (define-public python2-warpedlmm
4741 (package
4742 (name "python2-warpedlmm")
4743 (version "0.21")
4744 (source
4745 (origin
4746 (method url-fetch)
4747 (uri (pypi-uri "WarpedLMM" version ".zip"))
4748 (sha256
4749 (base32
4750 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
4751 (build-system python-build-system)
4752 (arguments
4753 `(#:python ,python-2)) ; requires Python 2.7
4754 (propagated-inputs
4755 `(("python-scipy" ,python2-scipy)
4756 ("python-numpy" ,python2-numpy)
4757 ("python-matplotlib" ,python2-matplotlib)
4758 ("python-fastlmm" ,python2-fastlmm)
4759 ("python-pandas" ,python2-pandas)
4760 ("python-pysnptools" ,python2-pysnptools)))
4761 (native-inputs
4762 `(("python-mock" ,python2-mock)
4763 ("python-nose" ,python2-nose)
4764 ("unzip" ,unzip)))
4765 (home-page "https://github.com/PMBio/warpedLMM")
4766 (synopsis "Implementation of warped linear mixed models")
4767 (description
4768 "WarpedLMM is a Python implementation of the warped linear mixed model,
4769 which automatically learns an optimal warping function (or transformation) for
4770 the phenotype as it models the data.")
4771 (license license:asl2.0)))
4772
4773 (define-public pbtranscript-tofu
4774 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
4775 (package
4776 (name "pbtranscript-tofu")
4777 (version (string-append "2.2.3." (string-take commit 7)))
4778 (source (origin
4779 (method git-fetch)
4780 (uri (git-reference
4781 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
4782 (commit commit)))
4783 (file-name (string-append name "-" version "-checkout"))
4784 (sha256
4785 (base32
4786 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
4787 (modules '((guix build utils)))
4788 (snippet
4789 '(begin
4790 ;; remove bundled Cython sources
4791 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
4792 #t))))
4793 (build-system python-build-system)
4794 (arguments
4795 `(#:python ,python-2
4796 ;; FIXME: Tests fail with "No such file or directory:
4797 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
4798 #:tests? #f
4799 #:phases
4800 (modify-phases %standard-phases
4801 (add-after 'unpack 'enter-directory
4802 (lambda _
4803 (chdir "pbtranscript-tofu/pbtranscript/")
4804 #t))
4805 ;; With setuptools version 18.0 and later this setup.py hack causes
4806 ;; a build error, so we disable it.
4807 (add-after 'enter-directory 'patch-setuppy
4808 (lambda _
4809 (substitute* "setup.py"
4810 (("if 'setuptools.extension' in sys.modules:")
4811 "if False:"))
4812 #t)))))
4813 (inputs
4814 `(("python-numpy" ,python2-numpy)
4815 ("python-bx-python" ,python2-bx-python)
4816 ("python-networkx" ,python2-networkx)
4817 ("python-scipy" ,python2-scipy)
4818 ("python-pbcore" ,python2-pbcore)
4819 ("python-h5py" ,python2-h5py)))
4820 (native-inputs
4821 `(("python-cython" ,python2-cython)
4822 ("python-nose" ,python2-nose)))
4823 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
4824 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
4825 (description
4826 "pbtranscript-tofu contains scripts to analyze transcriptome data
4827 generated using the PacBio Iso-Seq protocol.")
4828 (license license:bsd-3))))
4829
4830 (define-public prank
4831 (package
4832 (name "prank")
4833 (version "150803")
4834 (source (origin
4835 (method url-fetch)
4836 (uri (string-append
4837 "http://wasabiapp.org/download/prank/prank.source."
4838 version ".tgz"))
4839 (sha256
4840 (base32
4841 "0am4z94fs3w2n5xpfls9zda61vq7qqz4q2i7b9hlsxz5q4j3kfm4"))))
4842 (build-system gnu-build-system)
4843 (arguments
4844 `(#:phases
4845 (modify-phases %standard-phases
4846 (add-after 'unpack 'enter-src-dir
4847 (lambda _
4848 (chdir "src")
4849 #t))
4850 (add-after 'unpack 'remove-m64-flag
4851 ;; Prank will build with the correct 'bit-ness' without this flag
4852 ;; and this allows building on 32-bit machines.
4853 (lambda _ (substitute* "src/Makefile"
4854 (("-m64") ""))
4855 #t))
4856 (delete 'configure)
4857 (replace 'install
4858 (lambda* (#:key outputs #:allow-other-keys)
4859 (let* ((out (assoc-ref outputs "out"))
4860 (bin (string-append out "/bin"))
4861 (man (string-append out "/share/man/man1"))
4862 (path (string-append
4863 (assoc-ref %build-inputs "mafft") "/bin:"
4864 (assoc-ref %build-inputs "exonerate") "/bin:"
4865 (assoc-ref %build-inputs "bppsuite") "/bin")))
4866 (install-file "prank" bin)
4867 (wrap-program (string-append bin "/prank")
4868 `("PATH" ":" prefix (,path)))
4869 (install-file "prank.1" man))
4870 #t)))))
4871 (inputs
4872 `(("mafft" ,mafft)
4873 ("exonerate" ,exonerate)
4874 ("bppsuite" ,bppsuite)))
4875 (home-page "http://wasabiapp.org/software/prank/")
4876 (synopsis "Probabilistic multiple sequence alignment program")
4877 (description
4878 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4879 codon and amino-acid sequences. It is based on a novel algorithm that treats
4880 insertions correctly and avoids over-estimation of the number of deletion
4881 events. In addition, PRANK borrows ideas from maximum likelihood methods used
4882 in phylogenetics and correctly takes into account the evolutionary distances
4883 between sequences. Lastly, PRANK allows for defining a potential structure
4884 for sequences to be aligned and then, simultaneously with the alignment,
4885 predicts the locations of structural units in the sequences.")
4886 (license license:gpl2+)))
4887
4888 (define-public proteinortho
4889 (package
4890 (name "proteinortho")
4891 (version "5.16b")
4892 (source
4893 (origin
4894 (method url-fetch)
4895 (uri
4896 (string-append
4897 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4898 version "_src.tar.gz"))
4899 (sha256
4900 (base32
4901 "1wl0dawpssqwfjvr651r4wlww8hhjin8nba6xh71ks7sbypx886j"))))
4902 (build-system gnu-build-system)
4903 (arguments
4904 `(#:test-target "test"
4905 #:phases
4906 (modify-phases %standard-phases
4907 (replace 'configure
4908 ;; There is no configure script, so we modify the Makefile directly.
4909 (lambda* (#:key outputs #:allow-other-keys)
4910 (substitute* "Makefile"
4911 (("INSTALLDIR=.*")
4912 (string-append
4913 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4914 #t))
4915 (add-before 'install 'make-install-directory
4916 ;; The install directory is not created during 'make install'.
4917 (lambda* (#:key outputs #:allow-other-keys)
4918 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4919 #t))
4920 (add-after 'install 'wrap-programs
4921 (lambda* (#:key inputs outputs #:allow-other-keys)
4922 (let* ((path (getenv "PATH"))
4923 (out (assoc-ref outputs "out"))
4924 (binary (string-append out "/bin/proteinortho5.pl")))
4925 (wrap-program binary `("PATH" ":" prefix (,path))))
4926 #t)))))
4927 (inputs
4928 `(("perl" ,perl)
4929 ("python" ,python-2)
4930 ("blast+" ,blast+)))
4931 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4932 (synopsis "Detect orthologous genes across species")
4933 (description
4934 "Proteinortho is a tool to detect orthologous genes across different
4935 species. For doing so, it compares similarities of given gene sequences and
4936 clusters them to find significant groups. The algorithm was designed to handle
4937 large-scale data and can be applied to hundreds of species at once.")
4938 (license license:gpl2+)))
4939
4940 (define-public pyicoteo
4941 (package
4942 (name "pyicoteo")
4943 (version "2.0.7")
4944 (source
4945 (origin
4946 (method git-fetch)
4947 (uri (git-reference
4948 (url "https://bitbucket.org/regulatorygenomicsupf/pyicoteo.git")
4949 (commit (string-append "v" version))))
4950 (file-name (git-file-name name version))
4951 (sha256
4952 (base32
4953 "0hz5g8d25lbjy1wpscr490l0lmyvaix893hhax4fxnh1h9w34w8p"))))
4954 (build-system python-build-system)
4955 (arguments
4956 `(#:python ,python-2 ; does not work with Python 3
4957 #:tests? #f)) ; there are no tests
4958 (inputs
4959 `(("python2-matplotlib" ,python2-matplotlib)))
4960 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4961 (synopsis "Analyze high-throughput genetic sequencing data")
4962 (description
4963 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4964 sequencing data. It works with genomic coordinates. There are currently six
4965 different command-line tools:
4966
4967 @enumerate
4968 @item pyicoregion: for generating exploratory regions automatically;
4969 @item pyicoenrich: for differential enrichment between two conditions;
4970 @item pyicoclip: for calling CLIP-Seq peaks without a control;
4971 @item pyicos: for genomic coordinates manipulation;
4972 @item pyicoller: for peak calling on punctuated ChIP-Seq;
4973 @item pyicount: to count how many reads from N experiment files overlap in a
4974 region file;
4975 @item pyicotrocol: to combine operations from pyicoteo.
4976 @end enumerate\n")
4977 (license license:gpl3+)))
4978
4979 (define-public prodigal
4980 (package
4981 (name "prodigal")
4982 (version "2.6.3")
4983 (source (origin
4984 (method git-fetch)
4985 (uri (git-reference
4986 (url "https://github.com/hyattpd/Prodigal.git")
4987 (commit (string-append "v" version))))
4988 (file-name (git-file-name name version))
4989 (sha256
4990 (base32
4991 "1fs1hqk83qjbjhrvhw6ni75zakx5ki1ayy3v6wwkn3xvahc9hi5s"))))
4992 (build-system gnu-build-system)
4993 (arguments
4994 `(#:tests? #f ;no check target
4995 #:make-flags (list (string-append "INSTALLDIR="
4996 (assoc-ref %outputs "out")
4997 "/bin"))
4998 #:phases
4999 (modify-phases %standard-phases
5000 (delete 'configure))))
5001 (home-page "http://prodigal.ornl.gov")
5002 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
5003 (description
5004 "Prodigal runs smoothly on finished genomes, draft genomes, and
5005 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
5006 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
5007 partial genes, and identifies translation initiation sites.")
5008 (license license:gpl3+)))
5009
5010 (define-public roary
5011 (package
5012 (name "roary")
5013 (version "3.12.0")
5014 (source
5015 (origin
5016 (method url-fetch)
5017 (uri (string-append
5018 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
5019 version ".tar.gz"))
5020 (sha256
5021 (base32
5022 "0qxrds9wx7cfhlkihrp6697kx0flhhxymap9fwan0b3rbdhcnmff"))))
5023 (build-system perl-build-system)
5024 (arguments
5025 `(#:phases
5026 (modify-phases %standard-phases
5027 (delete 'configure)
5028 (delete 'build)
5029 (replace 'check
5030 (lambda _
5031 ;; The tests are not run by default, so we run each test file
5032 ;; directly.
5033 (setenv "PATH" (string-append (getcwd) "/bin" ":"
5034 (getenv "PATH")))
5035 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
5036 (getenv "PERL5LIB")))
5037 (for-each (lambda (file)
5038 (display file)(display "\n")
5039 (invoke "perl" file))
5040 (find-files "t" ".*\\.t$"))
5041 #t))
5042 (replace 'install
5043 ;; There is no 'install' target in the Makefile.
5044 (lambda* (#:key outputs #:allow-other-keys)
5045 (let* ((out (assoc-ref outputs "out"))
5046 (bin (string-append out "/bin"))
5047 (perl (string-append out "/lib/perl5/site_perl"))
5048 (roary-plots "contrib/roary_plots"))
5049 (mkdir-p bin)
5050 (mkdir-p perl)
5051 (copy-recursively "bin" bin)
5052 (copy-recursively "lib" perl)
5053 #t)))
5054 (add-after 'install 'wrap-programs
5055 (lambda* (#:key inputs outputs #:allow-other-keys)
5056 (let* ((out (assoc-ref outputs "out"))
5057 (perl5lib (getenv "PERL5LIB"))
5058 (path (getenv "PATH")))
5059 (for-each (lambda (prog)
5060 (let ((binary (string-append out "/" prog)))
5061 (wrap-program binary
5062 `("PERL5LIB" ":" prefix
5063 (,(string-append perl5lib ":" out
5064 "/lib/perl5/site_perl"))))
5065 (wrap-program binary
5066 `("PATH" ":" prefix
5067 (,(string-append path ":" out "/bin"))))))
5068 (find-files "bin" ".*[^R]$"))
5069 (let ((file
5070 (string-append out "/bin/roary-create_pan_genome_plots.R"))
5071 (r-site-lib (getenv "R_LIBS_SITE"))
5072 (coreutils-path
5073 (string-append (assoc-ref inputs "coreutils") "/bin")))
5074 (wrap-program file
5075 `("R_LIBS_SITE" ":" prefix
5076 (,(string-append r-site-lib ":" out "/site-library/"))))
5077 (wrap-program file
5078 `("PATH" ":" prefix
5079 (,(string-append coreutils-path ":" out "/bin"))))))
5080 #t)))))
5081 (native-inputs
5082 `(("perl-env-path" ,perl-env-path)
5083 ("perl-test-files" ,perl-test-files)
5084 ("perl-test-most" ,perl-test-most)
5085 ("perl-test-output" ,perl-test-output)))
5086 (inputs
5087 `(("perl-array-utils" ,perl-array-utils)
5088 ("bioperl" ,bioperl-minimal)
5089 ("perl-digest-md5-file" ,perl-digest-md5-file)
5090 ("perl-exception-class" ,perl-exception-class)
5091 ("perl-file-find-rule" ,perl-file-find-rule)
5092 ("perl-file-grep" ,perl-file-grep)
5093 ("perl-file-slurper" ,perl-file-slurper)
5094 ("perl-file-which" ,perl-file-which)
5095 ("perl-graph" ,perl-graph)
5096 ("perl-graph-readwrite" ,perl-graph-readwrite)
5097 ("perl-log-log4perl" ,perl-log-log4perl)
5098 ("perl-moose" ,perl-moose)
5099 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
5100 ("perl-text-csv" ,perl-text-csv)
5101 ("bedtools" ,bedtools)
5102 ("cd-hit" ,cd-hit)
5103 ("blast+" ,blast+)
5104 ("mcl" ,mcl)
5105 ("parallel" ,parallel)
5106 ("prank" ,prank)
5107 ("mafft" ,mafft)
5108 ("fasttree" ,fasttree)
5109 ("grep" ,grep)
5110 ("sed" ,sed)
5111 ("gawk" ,gawk)
5112 ("r-minimal" ,r-minimal)
5113 ("r-ggplot2" ,r-ggplot2)
5114 ("coreutils" ,coreutils)))
5115 (home-page "http://sanger-pathogens.github.io/Roary")
5116 (synopsis "High speed stand-alone pan genome pipeline")
5117 (description
5118 "Roary is a high speed stand alone pan genome pipeline, which takes
5119 annotated assemblies in GFF3 format (produced by the Prokka program) and
5120 calculates the pan genome. Using a standard desktop PC, it can analyse
5121 datasets with thousands of samples, without compromising the quality of the
5122 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
5123 single processor. Roary is not intended for metagenomics or for comparing
5124 extremely diverse sets of genomes.")
5125 (license license:gpl3)))
5126
5127 (define-public raxml
5128 (package
5129 (name "raxml")
5130 (version "8.2.12")
5131 (source
5132 (origin
5133 (method git-fetch)
5134 (uri (git-reference
5135 (url "https://github.com/stamatak/standard-RAxML.git")
5136 (commit (string-append "v" version))))
5137 (file-name (git-file-name name version))
5138 (sha256
5139 (base32
5140 "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh"))))
5141 (build-system gnu-build-system)
5142 (arguments
5143 `(#:tests? #f ; There are no tests.
5144 ;; Use 'standard' Makefile rather than SSE or AVX ones.
5145 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
5146 #:phases
5147 (modify-phases %standard-phases
5148 (delete 'configure)
5149 (replace 'install
5150 (lambda* (#:key outputs #:allow-other-keys)
5151 (let* ((out (assoc-ref outputs "out"))
5152 (bin (string-append out "/bin"))
5153 (executable "raxmlHPC-HYBRID"))
5154 (install-file executable bin)
5155 (symlink (string-append bin "/" executable) "raxml"))
5156 #t)))))
5157 (inputs
5158 `(("openmpi" ,openmpi)))
5159 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
5160 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
5161 (description
5162 "RAxML is a tool for phylogenetic analysis and post-analysis of large
5163 phylogenies.")
5164 ;; The source includes x86 specific code
5165 (supported-systems '("x86_64-linux" "i686-linux"))
5166 (license license:gpl2+)))
5167
5168 (define-public rsem
5169 (package
5170 (name "rsem")
5171 (version "1.3.1")
5172 (source
5173 (origin
5174 (method git-fetch)
5175 (uri (git-reference
5176 (url "https://github.com/deweylab/RSEM.git")
5177 (commit (string-append "v" version))))
5178 (sha256
5179 (base32 "1jlq11d1p8qp64w75yj8cnbbd1a93viq10pzsbwal7vdn8fg13j1"))
5180 (file-name (git-file-name name version))
5181 (modules '((guix build utils)))
5182 (snippet
5183 '(begin
5184 ;; remove bundled copy of boost and samtools
5185 (delete-file-recursively "boost")
5186 (delete-file-recursively "samtools-1.3")
5187 #t))))
5188 (build-system gnu-build-system)
5189 (arguments
5190 `(#:tests? #f ;no "check" target
5191 #:make-flags
5192 (list (string-append "BOOST="
5193 (assoc-ref %build-inputs "boost")
5194 "/include/")
5195 (string-append "SAMHEADERS="
5196 (assoc-ref %build-inputs "htslib")
5197 "/include/htslib/sam.h")
5198 (string-append "SAMLIBS="
5199 (assoc-ref %build-inputs "htslib")
5200 "/lib/libhts.a"))
5201 #:phases
5202 (modify-phases %standard-phases
5203 ;; No "configure" script.
5204 ;; Do not build bundled samtools library.
5205 (replace 'configure
5206 (lambda _
5207 (substitute* "Makefile"
5208 (("^all : \\$\\(PROGRAMS\\).*") "all: $(PROGRAMS)\n")
5209 (("^\\$\\(SAMLIBS\\).*") ""))
5210 #t))
5211 (replace 'install
5212 (lambda* (#:key outputs #:allow-other-keys)
5213 (let* ((out (string-append (assoc-ref outputs "out")))
5214 (bin (string-append out "/bin/"))
5215 (perl (string-append out "/lib/perl5/site_perl")))
5216 (mkdir-p bin)
5217 (mkdir-p perl)
5218 (for-each (lambda (file)
5219 (install-file file bin))
5220 (find-files "." "rsem-.*"))
5221 (install-file "rsem_perl_utils.pm" perl))
5222 #t))
5223 (add-after 'install 'wrap-program
5224 (lambda* (#:key outputs #:allow-other-keys)
5225 (let ((out (assoc-ref outputs "out")))
5226 (for-each (lambda (prog)
5227 (wrap-program (string-append out "/bin/" prog)
5228 `("PERL5LIB" ":" prefix
5229 (,(string-append out "/lib/perl5/site_perl")))))
5230 '("rsem-calculate-expression"
5231 "rsem-control-fdr"
5232 "rsem-generate-data-matrix"
5233 "rsem-generate-ngvector"
5234 "rsem-plot-transcript-wiggles"
5235 "rsem-prepare-reference"
5236 "rsem-run-ebseq"
5237 "rsem-run-prsem-testing-procedure")))
5238 #t)))))
5239 (inputs
5240 `(("boost" ,boost)
5241 ("r-minimal" ,r-minimal)
5242 ("perl" ,perl)
5243 ("htslib" ,htslib-1.3)
5244 ("zlib" ,zlib)))
5245 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
5246 (synopsis "Estimate gene expression levels from RNA-Seq data")
5247 (description
5248 "RSEM is a software package for estimating gene and isoform expression
5249 levels from RNA-Seq data. The RSEM package provides a user-friendly
5250 interface, supports threads for parallel computation of the EM algorithm,
5251 single-end and paired-end read data, quality scores, variable-length reads and
5252 RSPD estimation. In addition, it provides posterior mean and 95% credibility
5253 interval estimates for expression levels. For visualization, it can generate
5254 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
5255 (license license:gpl3+)))
5256
5257 (define-public rseqc
5258 (package
5259 (name "rseqc")
5260 (version "2.6.1")
5261 (source
5262 (origin
5263 (method url-fetch)
5264 (uri
5265 (string-append "mirror://sourceforge/rseqc/"
5266 "RSeQC-" version ".tar.gz"))
5267 (sha256
5268 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
5269 (modules '((guix build utils)))
5270 (snippet
5271 '(begin
5272 ;; remove bundled copy of pysam
5273 (delete-file-recursively "lib/pysam")
5274 (substitute* "setup.py"
5275 ;; remove dependency on outdated "distribute" module
5276 (("^from distribute_setup import use_setuptools") "")
5277 (("^use_setuptools\\(\\)") "")
5278 ;; do not use bundled copy of pysam
5279 (("^have_pysam = False") "have_pysam = True"))
5280 #t))))
5281 (build-system python-build-system)
5282 (arguments `(#:python ,python-2))
5283 (inputs
5284 `(("python-cython" ,python2-cython)
5285 ("python-pysam" ,python2-pysam)
5286 ("python-numpy" ,python2-numpy)
5287 ("zlib" ,zlib)))
5288 (native-inputs
5289 `(("python-nose" ,python2-nose)))
5290 (home-page "http://rseqc.sourceforge.net/")
5291 (synopsis "RNA-seq quality control package")
5292 (description
5293 "RSeQC provides a number of modules that can comprehensively evaluate
5294 high throughput sequence data, especially RNA-seq data. Some basic modules
5295 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
5296 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
5297 distribution, coverage uniformity, strand specificity, etc.")
5298 (license license:gpl3+)))
5299
5300 (define-public seek
5301 ;; There are no release tarballs. According to the installation
5302 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
5303 ;; stable release is identified by this changeset ID.
5304 (let ((changeset "2329130")
5305 (revision "1"))
5306 (package
5307 (name "seek")
5308 (version (string-append "0-" revision "." changeset))
5309 (source (origin
5310 (method hg-fetch)
5311 (uri (hg-reference
5312 (url "https://bitbucket.org/libsleipnir/sleipnir")
5313 (changeset changeset)))
5314 (file-name (string-append name "-" version "-checkout"))
5315 (sha256
5316 (base32
5317 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
5318 (build-system gnu-build-system)
5319 (arguments
5320 `(#:modules ((srfi srfi-1)
5321 (guix build gnu-build-system)
5322 (guix build utils))
5323 #:phases
5324 (let ((dirs '("SeekMiner"
5325 "SeekEvaluator"
5326 "SeekPrep"
5327 "Distancer"
5328 "Data2DB"
5329 "PCL2Bin")))
5330 (modify-phases %standard-phases
5331 (replace 'bootstrap
5332 (lambda _
5333 (substitute* "gen_tools_am"
5334 (("/usr/bin/env.*") (which "perl")))
5335 (invoke "bash" "gen_auto")
5336 #t))
5337 (add-after 'build 'build-additional-tools
5338 (lambda* (#:key make-flags #:allow-other-keys)
5339 (for-each (lambda (dir)
5340 (with-directory-excursion (string-append "tools/" dir)
5341 (apply invoke "make" make-flags)))
5342 dirs)
5343 #t))
5344 (add-after 'install 'install-additional-tools
5345 (lambda* (#:key make-flags #:allow-other-keys)
5346 (for-each (lambda (dir)
5347 (with-directory-excursion (string-append "tools/" dir)
5348 (apply invoke `("make" ,@make-flags "install"))))
5349 dirs)
5350 #t))))))
5351 (inputs
5352 `(("gsl" ,gsl)
5353 ("boost" ,boost)
5354 ("libsvm" ,libsvm)
5355 ("readline" ,readline)
5356 ("gengetopt" ,gengetopt)
5357 ("log4cpp" ,log4cpp)))
5358 (native-inputs
5359 `(("autoconf" ,autoconf)
5360 ("automake" ,automake)
5361 ("perl" ,perl)))
5362 (home-page "http://seek.princeton.edu")
5363 (synopsis "Gene co-expression search engine")
5364 (description
5365 "SEEK is a computational gene co-expression search engine. SEEK provides
5366 biologists with a way to navigate the massive human expression compendium that
5367 now contains thousands of expression datasets. SEEK returns a robust ranking
5368 of co-expressed genes in the biological area of interest defined by the user's
5369 query genes. It also prioritizes thousands of expression datasets according
5370 to the user's query of interest.")
5371 (license license:cc-by3.0))))
5372
5373 (define-public samtools
5374 (package
5375 (name "samtools")
5376 (version "1.9")
5377 (source
5378 (origin
5379 (method url-fetch)
5380 (uri
5381 (string-append "mirror://sourceforge/samtools/samtools/"
5382 version "/samtools-" version ".tar.bz2"))
5383 (sha256
5384 (base32
5385 "10ilqbmm7ri8z431sn90lvbjwizd0hhkf9rcqw8j823hf26nhgq8"))
5386 (modules '((guix build utils)))
5387 (snippet '(begin
5388 ;; Delete bundled htslib.
5389 (delete-file-recursively "htslib-1.9")
5390 #t))))
5391 (build-system gnu-build-system)
5392 (arguments
5393 `(#:modules ((ice-9 ftw)
5394 (ice-9 regex)
5395 (guix build gnu-build-system)
5396 (guix build utils))
5397 #:configure-flags (list "--with-ncurses")
5398 #:phases
5399 (modify-phases %standard-phases
5400 (add-after 'unpack 'patch-tests
5401 (lambda _
5402 (substitute* "test/test.pl"
5403 ;; The test script calls out to /bin/bash
5404 (("/bin/bash") (which "bash")))
5405 #t))
5406 (add-after 'install 'install-library
5407 (lambda* (#:key outputs #:allow-other-keys)
5408 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
5409 (install-file "libbam.a" lib)
5410 #t)))
5411 (add-after 'install 'install-headers
5412 (lambda* (#:key outputs #:allow-other-keys)
5413 (let ((include (string-append (assoc-ref outputs "out")
5414 "/include/samtools/")))
5415 (for-each (lambda (file)
5416 (install-file file include))
5417 (scandir "." (lambda (name) (string-match "\\.h$" name))))
5418 #t))))))
5419 (native-inputs `(("pkg-config" ,pkg-config)))
5420 (inputs
5421 `(("htslib" ,htslib)
5422 ("ncurses" ,ncurses)
5423 ("perl" ,perl)
5424 ("python" ,python)
5425 ("zlib" ,zlib)))
5426 (home-page "http://samtools.sourceforge.net")
5427 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
5428 (description
5429 "Samtools implements various utilities for post-processing nucleotide
5430 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
5431 variant calling (in conjunction with bcftools), and a simple alignment
5432 viewer.")
5433 (license license:expat)))
5434
5435 (define-public samtools-0.1
5436 ;; This is the most recent version of the 0.1 line of samtools. The input
5437 ;; and output formats differ greatly from that used and produced by samtools
5438 ;; 1.x and is still used in many bioinformatics pipelines.
5439 (package (inherit samtools)
5440 (version "0.1.19")
5441 (source
5442 (origin
5443 (method url-fetch)
5444 (uri
5445 (string-append "mirror://sourceforge/samtools/samtools/"
5446 version "/samtools-" version ".tar.bz2"))
5447 (sha256
5448 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
5449 (arguments
5450 `(#:tests? #f ;no "check" target
5451 #:make-flags
5452 (list "LIBCURSES=-lncurses")
5453 ,@(substitute-keyword-arguments (package-arguments samtools)
5454 ((#:phases phases)
5455 `(modify-phases ,phases
5456 (replace 'install
5457 (lambda* (#:key outputs #:allow-other-keys)
5458 (let ((bin (string-append
5459 (assoc-ref outputs "out") "/bin")))
5460 (mkdir-p bin)
5461 (install-file "samtools" bin)
5462 #t)))
5463 (delete 'patch-tests)
5464 (delete 'configure))))))))
5465
5466 (define-public mosaik
5467 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
5468 (package
5469 (name "mosaik")
5470 (version "2.2.30")
5471 (source (origin
5472 ;; There are no release tarballs nor tags.
5473 (method git-fetch)
5474 (uri (git-reference
5475 (url "https://github.com/wanpinglee/MOSAIK.git")
5476 (commit commit)))
5477 (file-name (string-append name "-" version))
5478 (sha256
5479 (base32
5480 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
5481 (build-system gnu-build-system)
5482 (arguments
5483 `(#:tests? #f ; no tests
5484 #:make-flags (list "CC=gcc")
5485 #:phases
5486 (modify-phases %standard-phases
5487 (replace 'configure
5488 (lambda _ (chdir "src") #t))
5489 (replace 'install
5490 (lambda* (#:key outputs #:allow-other-keys)
5491 (let ((bin (string-append (assoc-ref outputs "out")
5492 "/bin")))
5493 (mkdir-p bin)
5494 (copy-recursively "../bin" bin)
5495 #t))))))
5496 (inputs
5497 `(("perl" ,perl)
5498 ("zlib:static" ,zlib "static")
5499 ("zlib" ,zlib)))
5500 (supported-systems '("x86_64-linux"))
5501 (home-page "https://github.com/wanpinglee/MOSAIK")
5502 (synopsis "Map nucleotide sequence reads to reference genomes")
5503 (description
5504 "MOSAIK is a program for mapping second and third-generation sequencing
5505 reads to a reference genome. MOSAIK can align reads generated by all the
5506 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
5507 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
5508 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
5509 ;; code released into the public domain:
5510 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
5511 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
5512 (license (list license:gpl2+ license:public-domain)))))
5513
5514 (define-public ngs-sdk
5515 (package
5516 (name "ngs-sdk")
5517 (version "2.9.3")
5518 (source (origin
5519 (method git-fetch)
5520 (uri (git-reference
5521 (url "https://github.com/ncbi/ngs.git")
5522 (commit version)))
5523 (file-name (git-file-name name version))
5524 (sha256
5525 (base32
5526 "17c0v1nah3g3d2ib5bbi0vhma1ghd6vb9xycavqsh64lhp840rk3"))))
5527 (build-system gnu-build-system)
5528 (arguments
5529 `(#:parallel-build? #f ; not supported
5530 #:tests? #f ; no "check" target
5531 #:phases
5532 (modify-phases %standard-phases
5533 (replace 'configure
5534 (lambda* (#:key outputs #:allow-other-keys)
5535 (let ((out (assoc-ref outputs "out")))
5536 ;; Allow 'konfigure.perl' to find 'package.prl'.
5537 (setenv "PERL5LIB"
5538 (string-append ".:" (getenv "PERL5LIB")))
5539
5540 ;; The 'configure' script doesn't recognize things like
5541 ;; '--enable-fast-install'.
5542 (invoke "./configure"
5543 (string-append "--build-prefix=" (getcwd) "/build")
5544 (string-append "--prefix=" out))
5545 #t)))
5546 (add-after 'unpack 'enter-dir
5547 (lambda _ (chdir "ngs-sdk") #t)))))
5548 (native-inputs `(("perl" ,perl)))
5549 ;; According to the test
5550 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
5551 ;; in ngs-sdk/setup/konfigure.perl
5552 (supported-systems '("i686-linux" "x86_64-linux"))
5553 (home-page "https://github.com/ncbi/ngs")
5554 (synopsis "API for accessing Next Generation Sequencing data")
5555 (description
5556 "NGS is a domain-specific API for accessing reads, alignments and pileups
5557 produced from Next Generation Sequencing. The API itself is independent from
5558 any particular back-end implementation, and supports use of multiple back-ends
5559 simultaneously.")
5560 (license license:public-domain)))
5561
5562 (define-public java-ngs
5563 (package (inherit ngs-sdk)
5564 (name "java-ngs")
5565 (arguments
5566 `(,@(substitute-keyword-arguments
5567 `(#:modules ((guix build gnu-build-system)
5568 (guix build utils)
5569 (srfi srfi-1)
5570 (srfi srfi-26))
5571 ,@(package-arguments ngs-sdk))
5572 ((#:phases phases)
5573 `(modify-phases ,phases
5574 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
5575 (inputs
5576 `(("jdk" ,icedtea "jdk")
5577 ("ngs-sdk" ,ngs-sdk)))
5578 (synopsis "Java bindings for NGS SDK")))
5579
5580 (define-public ncbi-vdb
5581 (package
5582 (name "ncbi-vdb")
5583 (version "2.9.3")
5584 (source (origin
5585 (method git-fetch)
5586 (uri (git-reference
5587 (url "https://github.com/ncbi/ncbi-vdb.git")
5588 (commit version)))
5589 (file-name (git-file-name name version))
5590 (sha256
5591 (base32
5592 "1l4ny67nxwv1lagk9wwjbrgm7ln7adci6dnpc7k1yaln6shj0qpm"))))
5593 (build-system gnu-build-system)
5594 (arguments
5595 `(#:parallel-build? #f ; not supported
5596 #:tests? #f ; no "check" target
5597 #:phases
5598 (modify-phases %standard-phases
5599 (add-after 'unpack 'make-files-writable
5600 (lambda _ (for-each make-file-writable (find-files "." ".*")) #t))
5601 (add-before 'configure 'set-perl-search-path
5602 (lambda _
5603 ;; Work around "dotless @INC" build failure.
5604 (setenv "PERL5LIB"
5605 (string-append (getcwd) "/setup:"
5606 (getenv "PERL5LIB")))
5607 #t))
5608 (replace 'configure
5609 (lambda* (#:key inputs outputs #:allow-other-keys)
5610 (let ((out (assoc-ref outputs "out")))
5611 ;; Override include path for libmagic
5612 (substitute* "setup/package.prl"
5613 (("name => 'magic', Include => '/usr/include'")
5614 (string-append "name=> 'magic', Include => '"
5615 (assoc-ref inputs "libmagic")
5616 "/include" "'")))
5617
5618 ;; Install kdf5 library (needed by sra-tools)
5619 (substitute* "build/Makefile.install"
5620 (("LIBRARIES_TO_INSTALL =")
5621 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
5622
5623 (substitute* "build/Makefile.env"
5624 (("CFLAGS =" prefix)
5625 (string-append prefix "-msse2 ")))
5626
5627 ;; Override search path for ngs-java
5628 (substitute* "setup/package.prl"
5629 (("/usr/local/ngs/ngs-java")
5630 (assoc-ref inputs "java-ngs")))
5631
5632 ;; The 'configure' script doesn't recognize things like
5633 ;; '--enable-fast-install'.
5634 (invoke "./configure"
5635 (string-append "--build-prefix=" (getcwd) "/build")
5636 (string-append "--prefix=" (assoc-ref outputs "out"))
5637 (string-append "--debug")
5638 (string-append "--with-xml2-prefix="
5639 (assoc-ref inputs "libxml2"))
5640 (string-append "--with-ngs-sdk-prefix="
5641 (assoc-ref inputs "ngs-sdk"))
5642 (string-append "--with-hdf5-prefix="
5643 (assoc-ref inputs "hdf5")))
5644 #t)))
5645 (add-after 'install 'install-interfaces
5646 (lambda* (#:key outputs #:allow-other-keys)
5647 ;; Install interface libraries. On i686 the interface libraries
5648 ;; are installed to "linux/gcc/i386", so we need to use the Linux
5649 ;; architecture name ("i386") instead of the target system prefix
5650 ;; ("i686").
5651 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
5652 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
5653 ,(system->linux-architecture
5654 (or (%current-target-system)
5655 (%current-system)))
5656 "/rel/ilib")
5657 (string-append (assoc-ref outputs "out")
5658 "/ilib"))
5659 ;; Install interface headers
5660 (copy-recursively "interfaces"
5661 (string-append (assoc-ref outputs "out")
5662 "/include"))
5663 #t))
5664 ;; These files are needed by sra-tools.
5665 (add-after 'install 'install-configuration-files
5666 (lambda* (#:key outputs #:allow-other-keys)
5667 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
5668 (mkdir target)
5669 (install-file "libs/kfg/default.kfg" target)
5670 (install-file "libs/kfg/certs.kfg" target))
5671 #t)))))
5672 (inputs
5673 `(("libxml2" ,libxml2)
5674 ("ngs-sdk" ,ngs-sdk)
5675 ("java-ngs" ,java-ngs)
5676 ("libmagic" ,file)
5677 ("hdf5" ,hdf5)))
5678 (native-inputs `(("perl" ,perl)))
5679 ;; NCBI-VDB requires SSE capability.
5680 (supported-systems '("i686-linux" "x86_64-linux"))
5681 (home-page "https://github.com/ncbi/ncbi-vdb")
5682 (synopsis "Database engine for genetic information")
5683 (description
5684 "The NCBI-VDB library implements a highly compressed columnar data
5685 warehousing engine that is most often used to store genetic information.
5686 Databases are stored in a portable image within the file system, and can be
5687 accessed/downloaded on demand across HTTP.")
5688 (license license:public-domain)))
5689
5690 (define-public plink
5691 (package
5692 (name "plink")
5693 (version "1.07")
5694 (source
5695 (origin
5696 (method url-fetch)
5697 (uri (string-append
5698 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
5699 version "-src.zip"))
5700 (sha256
5701 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
5702 (patches (search-patches "plink-1.07-unclobber-i.patch"
5703 "plink-endian-detection.patch"))))
5704 (build-system gnu-build-system)
5705 (arguments
5706 '(#:tests? #f ;no "check" target
5707 #:make-flags (list (string-append "LIB_LAPACK="
5708 (assoc-ref %build-inputs "lapack")
5709 "/lib/liblapack.so")
5710 "WITH_LAPACK=1"
5711 "FORCE_DYNAMIC=1"
5712 ;; disable phoning home
5713 "WITH_WEBCHECK=")
5714 #:phases
5715 (modify-phases %standard-phases
5716 ;; no "configure" script
5717 (delete 'configure)
5718 (replace 'install
5719 (lambda* (#:key outputs #:allow-other-keys)
5720 (let ((bin (string-append (assoc-ref outputs "out")
5721 "/bin/")))
5722 (install-file "plink" bin)
5723 #t))))))
5724 (inputs
5725 `(("zlib" ,zlib)
5726 ("lapack" ,lapack)))
5727 (native-inputs
5728 `(("unzip" ,unzip)))
5729 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
5730 (synopsis "Whole genome association analysis toolset")
5731 (description
5732 "PLINK is a whole genome association analysis toolset, designed to
5733 perform a range of basic, large-scale analyses in a computationally efficient
5734 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
5735 so there is no support for steps prior to this (e.g. study design and
5736 planning, generating genotype or CNV calls from raw data). Through
5737 integration with gPLINK and Haploview, there is some support for the
5738 subsequent visualization, annotation and storage of results.")
5739 ;; Code is released under GPLv2, except for fisher.h, which is under
5740 ;; LGPLv2.1+
5741 (license (list license:gpl2 license:lgpl2.1+))))
5742
5743 (define-public plink-ng
5744 (package (inherit plink)
5745 (name "plink-ng")
5746 (version "1.90b4")
5747 (source
5748 (origin
5749 (method git-fetch)
5750 (uri (git-reference
5751 (url "https://github.com/chrchang/plink-ng.git")
5752 (commit (string-append "v" version))))
5753 (file-name (git-file-name name version))
5754 (sha256
5755 (base32 "02npdwgkpfkdnhw819rhj5kw02a5k5m90b14zq9zzya4hyg929c0"))))
5756 (build-system gnu-build-system)
5757 (arguments
5758 '(#:tests? #f ;no "check" target
5759 #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
5760 "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
5761 "ZLIB=-lz"
5762 "-f" "Makefile.std")
5763 #:phases
5764 (modify-phases %standard-phases
5765 (add-after 'unpack 'chdir
5766 (lambda _ (chdir "1.9") #t))
5767 (delete 'configure) ; no "configure" script
5768 (replace 'install
5769 (lambda* (#:key outputs #:allow-other-keys)
5770 (let ((bin (string-append (assoc-ref outputs "out")
5771 "/bin/")))
5772 (install-file "plink" bin)
5773 #t))))))
5774 (inputs
5775 `(("zlib" ,zlib)
5776 ("lapack" ,lapack)
5777 ("openblas" ,openblas)))
5778 (home-page "https://www.cog-genomics.org/plink/")
5779 (license license:gpl3+)))
5780
5781 (define-public smithlab-cpp
5782 (let ((revision "1")
5783 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
5784 (package
5785 (name "smithlab-cpp")
5786 (version (string-append "0." revision "." (string-take commit 7)))
5787 (source (origin
5788 (method git-fetch)
5789 (uri (git-reference
5790 (url "https://github.com/smithlabcode/smithlab_cpp.git")
5791 (commit commit)))
5792 (file-name (string-append name "-" version "-checkout"))
5793 (sha256
5794 (base32
5795 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
5796 (build-system gnu-build-system)
5797 (arguments
5798 `(#:modules ((guix build gnu-build-system)
5799 (guix build utils)
5800 (srfi srfi-26))
5801 #:tests? #f ;no "check" target
5802 #:phases
5803 (modify-phases %standard-phases
5804 (add-after 'unpack 'use-samtools-headers
5805 (lambda _
5806 (substitute* '("SAM.cpp"
5807 "SAM.hpp")
5808 (("sam.h") "samtools/sam.h"))
5809 #t))
5810 (replace 'install
5811 (lambda* (#:key outputs #:allow-other-keys)
5812 (let* ((out (assoc-ref outputs "out"))
5813 (lib (string-append out "/lib"))
5814 (include (string-append out "/include/smithlab-cpp")))
5815 (mkdir-p lib)
5816 (mkdir-p include)
5817 (for-each (cut install-file <> lib)
5818 (find-files "." "\\.o$"))
5819 (for-each (cut install-file <> include)
5820 (find-files "." "\\.hpp$")))
5821 #t))
5822 (delete 'configure))))
5823 (inputs
5824 `(("samtools" ,samtools-0.1)
5825 ("zlib" ,zlib)))
5826 (home-page "https://github.com/smithlabcode/smithlab_cpp")
5827 (synopsis "C++ helper library for functions used in Smith lab projects")
5828 (description
5829 "Smithlab CPP is a C++ library that includes functions used in many of
5830 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
5831 structures, classes for genomic regions, mapped sequencing reads, etc.")
5832 (license license:gpl3+))))
5833
5834 (define-public preseq
5835 (package
5836 (name "preseq")
5837 (version "2.0.3")
5838 (source (origin
5839 (method url-fetch)
5840 (uri (string-append "https://github.com/smithlabcode/preseq/"
5841 "releases/download/v" version
5842 "/preseq_v" version ".tar.bz2"))
5843 (sha256
5844 (base32 "149x9xmk1wy1gff85325yfzqc0qk4sgp1w6gbyj9cnji4x1dszbl"))
5845 (modules '((guix build utils)))
5846 (snippet '(begin
5847 ;; Remove bundled samtools.
5848 (delete-file-recursively "samtools")
5849 #t))))
5850 (build-system gnu-build-system)
5851 (arguments
5852 `(#:tests? #f ;no "check" target
5853 #:phases
5854 (modify-phases %standard-phases
5855 (delete 'configure))
5856 #:make-flags
5857 (list (string-append "PREFIX="
5858 (assoc-ref %outputs "out"))
5859 (string-append "LIBBAM="
5860 (assoc-ref %build-inputs "samtools")
5861 "/lib/libbam.a")
5862 (string-append "SMITHLAB_CPP="
5863 (assoc-ref %build-inputs "smithlab-cpp")
5864 "/lib")
5865 "PROGS=preseq"
5866 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
5867 (inputs
5868 `(("gsl" ,gsl)
5869 ("samtools" ,samtools-0.1)
5870 ("smithlab-cpp" ,smithlab-cpp)
5871 ("zlib" ,zlib)))
5872 (home-page "http://smithlabresearch.org/software/preseq/")
5873 (synopsis "Program for analyzing library complexity")
5874 (description
5875 "The preseq package is aimed at predicting and estimating the complexity
5876 of a genomic sequencing library, equivalent to predicting and estimating the
5877 number of redundant reads from a given sequencing depth and how many will be
5878 expected from additional sequencing using an initial sequencing experiment.
5879 The estimates can then be used to examine the utility of further sequencing,
5880 optimize the sequencing depth, or to screen multiple libraries to avoid low
5881 complexity samples.")
5882 (license license:gpl3+)))
5883
5884 (define-public python-screed
5885 (package
5886 (name "python-screed")
5887 (version "1.0")
5888 (source
5889 (origin
5890 (method url-fetch)
5891 (uri (pypi-uri "screed" version))
5892 (sha256
5893 (base32
5894 "148vcb7w2wr6a4w6vs2bsxanbqibxfk490zbcbg4m61s8669zdjx"))))
5895 (build-system python-build-system)
5896 (arguments
5897 '(#:phases
5898 (modify-phases %standard-phases
5899 ;; Tests must be run after installation, as the "screed" command does
5900 ;; not exist right after building.
5901 (delete 'check)
5902 (add-after 'install 'check
5903 (lambda* (#:key inputs outputs #:allow-other-keys)
5904 (let ((out (assoc-ref outputs "out")))
5905 (setenv "PYTHONPATH"
5906 (string-append out "/lib/python"
5907 (string-take (string-take-right
5908 (assoc-ref inputs "python")
5909 5) 3)
5910 "/site-packages:"
5911 (getenv "PYTHONPATH")))
5912 (setenv "PATH" (string-append out "/bin:" (getenv "PATH"))))
5913 (invoke "python" "setup.py" "test")
5914 #t)))))
5915 (native-inputs
5916 `(("python-pytest" ,python-pytest)
5917 ("python-pytest-cov" ,python-pytest-cov)
5918 ("python-pytest-runner" ,python-pytest-runner)))
5919 (inputs
5920 `(("python-bz2file" ,python-bz2file)))
5921 (home-page "https://github.com/dib-lab/screed/")
5922 (synopsis "Short read sequence database utilities")
5923 (description "Screed parses FASTA and FASTQ files and generates databases.
5924 Values such as sequence name, sequence description, sequence quality and the
5925 sequence itself can be retrieved from these databases.")
5926 (license license:bsd-3)))
5927
5928 (define-public python2-screed
5929 (package-with-python2 python-screed))
5930
5931 (define-public sra-tools
5932 (package
5933 (name "sra-tools")
5934 (version "2.9.3")
5935 (source
5936 (origin
5937 (method git-fetch)
5938 (uri (git-reference
5939 (url "https://github.com/ncbi/sra-tools.git")
5940 (commit version)))
5941 (file-name (git-file-name name version))
5942 (sha256
5943 (base32
5944 "0663gcdxkziwsmlznjxysb00621rllpbz6jwsfifq7z3dj3lwm8b"))))
5945 (build-system gnu-build-system)
5946 (arguments
5947 `(#:parallel-build? #f ; not supported
5948 #:tests? #f ; no "check" target
5949 #:make-flags
5950 (list (string-append "DEFAULT_CRT="
5951 (assoc-ref %build-inputs "ncbi-vdb")
5952 "/kfg/certs.kfg")
5953 (string-append "DEFAULT_KFG="
5954 (assoc-ref %build-inputs "ncbi-vdb")
5955 "/kfg/default.kfg")
5956 (string-append "VDB_LIBDIR="
5957 (assoc-ref %build-inputs "ncbi-vdb")
5958 ,(if (string-prefix? "x86_64"
5959 (or (%current-target-system)
5960 (%current-system)))
5961 "/lib64"
5962 "/lib32")))
5963 #:phases
5964 (modify-phases %standard-phases
5965 (add-before 'configure 'set-perl-search-path
5966 (lambda _
5967 ;; Work around "dotless @INC" build failure.
5968 (setenv "PERL5LIB"
5969 (string-append (getcwd) "/setup:"
5970 (getenv "PERL5LIB")))
5971 #t))
5972 (replace 'configure
5973 (lambda* (#:key inputs outputs #:allow-other-keys)
5974 ;; The build system expects a directory containing the sources and
5975 ;; raw build output of ncbi-vdb, including files that are not
5976 ;; installed. Since we are building against an installed version of
5977 ;; ncbi-vdb, the following modifications are needed.
5978 (substitute* "setup/konfigure.perl"
5979 ;; Make the configure script look for the "ilib" directory of
5980 ;; "ncbi-vdb" without first checking for the existence of a
5981 ;; matching library in its "lib" directory.
5982 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
5983 "my $f = File::Spec->catdir($ilibdir, $ilib);")
5984 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
5985 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
5986 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
5987
5988 ;; Dynamic linking
5989 (substitute* "tools/copycat/Makefile"
5990 (("smagic-static") "lmagic"))
5991
5992 ;; The 'configure' script doesn't recognize things like
5993 ;; '--enable-fast-install'.
5994 (invoke "./configure"
5995 (string-append "--build-prefix=" (getcwd) "/build")
5996 (string-append "--prefix=" (assoc-ref outputs "out"))
5997 (string-append "--debug")
5998 (string-append "--with-fuse-prefix="
5999 (assoc-ref inputs "fuse"))
6000 (string-append "--with-magic-prefix="
6001 (assoc-ref inputs "libmagic"))
6002 ;; TODO: building with libxml2 fails with linker errors
6003 ;; (string-append "--with-xml2-prefix="
6004 ;; (assoc-ref inputs "libxml2"))
6005 (string-append "--with-ncbi-vdb-sources="
6006 (assoc-ref inputs "ncbi-vdb"))
6007 (string-append "--with-ncbi-vdb-build="
6008 (assoc-ref inputs "ncbi-vdb"))
6009 (string-append "--with-ngs-sdk-prefix="
6010 (assoc-ref inputs "ngs-sdk"))
6011 (string-append "--with-hdf5-prefix="
6012 (assoc-ref inputs "hdf5")))
6013 #t)))))
6014 (native-inputs `(("perl" ,perl)))
6015 (inputs
6016 `(("ngs-sdk" ,ngs-sdk)
6017 ("ncbi-vdb" ,ncbi-vdb)
6018 ("libmagic" ,file)
6019 ("fuse" ,fuse)
6020 ("hdf5" ,hdf5)
6021 ("zlib" ,zlib)))
6022 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
6023 (synopsis "Tools and libraries for reading and writing sequencing data")
6024 (description
6025 "The SRA Toolkit from NCBI is a collection of tools and libraries for
6026 reading of sequencing files from the Sequence Read Archive (SRA) database and
6027 writing files into the .sra format.")
6028 (license license:public-domain)))
6029
6030 (define-public seqan
6031 (package
6032 (name "seqan")
6033 (version "2.4.0")
6034 (source (origin
6035 (method url-fetch)
6036 (uri (string-append "https://github.com/seqan/seqan/releases/"
6037 "download/seqan-v" version
6038 "/seqan-library-" version ".tar.xz"))
6039 (sha256
6040 (base32
6041 "19a1rlxx03qy1i1iriicly68w64yjxbv24g9gdywnfmq998v35yx"))))
6042 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6043 ;; makes sense to split the outputs.
6044 (outputs '("out" "doc"))
6045 (build-system trivial-build-system)
6046 (arguments
6047 `(#:modules ((guix build utils))
6048 #:builder
6049 (begin
6050 (use-modules (guix build utils))
6051 (let ((tar (assoc-ref %build-inputs "tar"))
6052 (xz (assoc-ref %build-inputs "xz"))
6053 (out (assoc-ref %outputs "out"))
6054 (doc (assoc-ref %outputs "doc")))
6055 (setenv "PATH" (string-append tar "/bin:" xz "/bin"))
6056 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6057 (chdir (string-append "seqan-library-" ,version))
6058 (copy-recursively "include" (string-append out "/include"))
6059 (copy-recursively "share" (string-append doc "/share"))
6060 #t))))
6061 (native-inputs
6062 `(("source" ,source)
6063 ("tar" ,tar)
6064 ("xz" ,xz)))
6065 (home-page "http://www.seqan.de")
6066 (synopsis "Library for nucleotide sequence analysis")
6067 (description
6068 "SeqAn is a C++ library of efficient algorithms and data structures for
6069 the analysis of sequences with the focus on biological data. It contains
6070 algorithms and data structures for string representation and their
6071 manipulation, online and indexed string search, efficient I/O of
6072 bioinformatics file formats, sequence alignment, and more.")
6073 (license license:bsd-3)))
6074
6075 (define-public seqan-1
6076 (package (inherit seqan)
6077 (name "seqan")
6078 (version "1.4.2")
6079 (source (origin
6080 (method url-fetch)
6081 (uri (string-append "http://packages.seqan.de/seqan-library/"
6082 "seqan-library-" version ".tar.bz2"))
6083 (sha256
6084 (base32
6085 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
6086 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6087 ;; makes sense to split the outputs.
6088 (outputs '("out" "doc"))
6089 (build-system trivial-build-system)
6090 (arguments
6091 `(#:modules ((guix build utils))
6092 #:builder
6093 (begin
6094 (use-modules (guix build utils))
6095 (let ((tar (assoc-ref %build-inputs "tar"))
6096 (bzip (assoc-ref %build-inputs "bzip2"))
6097 (out (assoc-ref %outputs "out"))
6098 (doc (assoc-ref %outputs "doc")))
6099 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
6100 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6101 (chdir (string-append "seqan-library-" ,version))
6102 (copy-recursively "include" (string-append out "/include"))
6103 (copy-recursively "share" (string-append doc "/share"))
6104 #t))))
6105 (native-inputs
6106 `(("source" ,source)
6107 ("tar" ,tar)
6108 ("bzip2" ,bzip2)))))
6109
6110 (define-public seqmagick
6111 (package
6112 (name "seqmagick")
6113 (version "0.7.0")
6114 (source
6115 (origin
6116 (method url-fetch)
6117 (uri (pypi-uri "seqmagick" version))
6118 (sha256
6119 (base32
6120 "12bfyp8nqi0hd36rmj450aygafp01qy3hkbvlwn3bk39pyjjkgg5"))))
6121 (build-system python-build-system)
6122 (inputs
6123 `(("python-biopython" ,python-biopython)))
6124 (native-inputs
6125 `(("python-nose" ,python-nose)))
6126 (home-page "https://github.com/fhcrc/seqmagick")
6127 (synopsis "Tools for converting and modifying sequence files")
6128 (description
6129 "Bioinformaticians often have to convert sequence files between formats
6130 and do little manipulations on them, and it's not worth writing scripts for
6131 that. Seqmagick is a utility to expose the file format conversion in
6132 BioPython in a convenient way. Instead of having a big mess of scripts, there
6133 is one that takes arguments.")
6134 (license license:gpl3)))
6135
6136 (define-public seqtk
6137 (package
6138 (name "seqtk")
6139 (version "1.3")
6140 (source (origin
6141 (method git-fetch)
6142 (uri (git-reference
6143 (url "https://github.com/lh3/seqtk.git")
6144 (commit (string-append "v" version))))
6145 (file-name (git-file-name name version))
6146 (sha256
6147 (base32
6148 "1bfzlqa84b5s1qi22blmmw2s8xdyp9h9ydcq22pfjhh5gab3yz6l"))))
6149 (build-system gnu-build-system)
6150 (arguments
6151 `(#:phases
6152 (modify-phases %standard-phases
6153 (delete 'configure)
6154 (replace 'check
6155 ;; There are no tests, so we just run a sanity check.
6156 (lambda _ (invoke "./seqtk" "seq") #t))
6157 (replace 'install
6158 (lambda* (#:key outputs #:allow-other-keys)
6159 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6160 (install-file "seqtk" bin)
6161 #t))))))
6162 (inputs
6163 `(("zlib" ,zlib)))
6164 (home-page "https://github.com/lh3/seqtk")
6165 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
6166 (description
6167 "Seqtk is a fast and lightweight tool for processing sequences in the
6168 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
6169 optionally compressed by gzip.")
6170 (license license:expat)))
6171
6172 (define-public snap-aligner
6173 (package
6174 (name "snap-aligner")
6175 (version "1.0beta.18")
6176 (source (origin
6177 (method git-fetch)
6178 (uri (git-reference
6179 (url "https://github.com/amplab/snap.git")
6180 (commit (string-append "v" version))))
6181 (file-name (git-file-name name version))
6182 (sha256
6183 (base32
6184 "01w3qq4wm07z73vky0cfwlmrbf50n3w722cxrlzxfi99mnb808d8"))))
6185 (build-system gnu-build-system)
6186 (arguments
6187 '(#:phases
6188 (modify-phases %standard-phases
6189 (delete 'configure)
6190 (replace 'check (lambda _ (invoke "./unit_tests") #t))
6191 (replace 'install
6192 (lambda* (#:key outputs #:allow-other-keys)
6193 (let* ((out (assoc-ref outputs "out"))
6194 (bin (string-append out "/bin")))
6195 (install-file "snap-aligner" bin)
6196 (install-file "SNAPCommand" bin)
6197 #t))))))
6198 (native-inputs
6199 `(("zlib" ,zlib)))
6200 (home-page "http://snap.cs.berkeley.edu/")
6201 (synopsis "Short read DNA sequence aligner")
6202 (description
6203 "SNAP is a fast and accurate aligner for short DNA reads. It is
6204 optimized for modern read lengths of 100 bases or higher, and takes advantage
6205 of these reads to align data quickly through a hash-based indexing scheme.")
6206 ;; 32-bit systems are not supported by the unpatched code.
6207 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
6208 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
6209 ;; systems without a lot of memory cannot make good use of this program.
6210 (supported-systems '("x86_64-linux"))
6211 (license license:asl2.0)))
6212
6213 (define-public sortmerna
6214 (package
6215 (name "sortmerna")
6216 (version "2.1b")
6217 (source
6218 (origin
6219 (method git-fetch)
6220 (uri (git-reference
6221 (url "https://github.com/biocore/sortmerna.git")
6222 (commit version)))
6223 (file-name (git-file-name name version))
6224 (sha256
6225 (base32
6226 "0j3mbz4n25738yijmjbr5r4fyvkgm8v5vn3sshyfvmyqf5q9byqf"))))
6227 (build-system gnu-build-system)
6228 (outputs '("out" ;for binaries
6229 "db")) ;for sequence databases
6230 (arguments
6231 `(#:phases
6232 (modify-phases %standard-phases
6233 (replace 'install
6234 (lambda* (#:key outputs #:allow-other-keys)
6235 (let* ((out (assoc-ref outputs "out"))
6236 (bin (string-append out "/bin"))
6237 (db (assoc-ref outputs "db"))
6238 (share
6239 (string-append db "/share/sortmerna/rRNA_databases")))
6240 (install-file "sortmerna" bin)
6241 (install-file "indexdb_rna" bin)
6242 (for-each (lambda (file)
6243 (install-file file share))
6244 (find-files "rRNA_databases" ".*fasta"))
6245 #t))))))
6246 (inputs
6247 `(("zlib" ,zlib)))
6248 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
6249 (synopsis "Biological sequence analysis tool for NGS reads")
6250 (description
6251 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
6252 and operational taxonomic unit (OTU) picking of next generation
6253 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
6254 allows for fast and sensitive analyses of nucleotide sequences. The main
6255 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
6256 ;; The source includes x86 specific code
6257 (supported-systems '("x86_64-linux" "i686-linux"))
6258 (license license:lgpl3)))
6259
6260 (define-public star
6261 (package
6262 (name "star")
6263 (version "2.7.0b")
6264 (source (origin
6265 (method git-fetch)
6266 (uri (git-reference
6267 (url "https://github.com/alexdobin/STAR.git")
6268 (commit version)))
6269 (file-name (string-append name "-" version "-checkout"))
6270 (sha256
6271 (base32
6272 "1lih6cbpvnvhyvvswdhy06mwyzvwax96m723378v4z6psqzsh11d"))
6273 (modules '((guix build utils)))
6274 (snippet
6275 '(begin
6276 (substitute* "source/Makefile"
6277 (("/bin/rm") "rm"))
6278 ;; Remove pre-built binaries and bundled htslib sources.
6279 (delete-file-recursively "bin/MacOSX_x86_64")
6280 (delete-file-recursively "bin/Linux_x86_64")
6281 (delete-file-recursively "bin/Linux_x86_64_static")
6282 (delete-file-recursively "source/htslib")
6283 #t))))
6284 (build-system gnu-build-system)
6285 (arguments
6286 '(#:tests? #f ;no check target
6287 #:make-flags '("STAR")
6288 #:phases
6289 (modify-phases %standard-phases
6290 (add-after 'unpack 'enter-source-dir
6291 (lambda _ (chdir "source") #t))
6292 (add-after 'enter-source-dir 'make-reproducible
6293 (lambda _
6294 (substitute* "Makefile"
6295 (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
6296 (string-append pre "Built with Guix" post)))
6297 #t))
6298 ;; See https://github.com/alexdobin/STAR/pull/562
6299 (add-after 'enter-source-dir 'add-missing-header
6300 (lambda _
6301 (substitute* "SoloReadFeature_inputRecords.cpp"
6302 (("#include \"binarySearch2.h\"" h)
6303 (string-append h "\n#include <math.h>")))
6304 #t))
6305 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
6306 (lambda _
6307 (substitute* "Makefile"
6308 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
6309 _ prefix) prefix))
6310 (substitute* '("BAMfunctions.cpp"
6311 "signalFromBAM.h"
6312 "bam_cat.h"
6313 "bam_cat.c"
6314 "STAR.cpp"
6315 "bamRemoveDuplicates.cpp")
6316 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
6317 (string-append "#include <" header ">")))
6318 (substitute* "IncludeDefine.h"
6319 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
6320 (string-append "<" header ">")))
6321 #t))
6322 (replace 'install
6323 (lambda* (#:key outputs #:allow-other-keys)
6324 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6325 (install-file "STAR" bin))
6326 #t))
6327 (delete 'configure))))
6328 (native-inputs
6329 `(("xxd" ,xxd)))
6330 (inputs
6331 `(("htslib" ,htslib)
6332 ("zlib" ,zlib)))
6333 (home-page "https://github.com/alexdobin/STAR")
6334 (synopsis "Universal RNA-seq aligner")
6335 (description
6336 "The Spliced Transcripts Alignment to a Reference (STAR) software is
6337 based on a previously undescribed RNA-seq alignment algorithm that uses
6338 sequential maximum mappable seed search in uncompressed suffix arrays followed
6339 by seed clustering and stitching procedure. In addition to unbiased de novo
6340 detection of canonical junctions, STAR can discover non-canonical splices and
6341 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
6342 sequences.")
6343 ;; Only 64-bit systems are supported according to the README.
6344 (supported-systems '("x86_64-linux" "mips64el-linux"))
6345 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
6346 (license license:gpl3+)))
6347
6348 (define-public starlong
6349 (package (inherit star)
6350 (name "starlong")
6351 (arguments
6352 (substitute-keyword-arguments (package-arguments star)
6353 ((#:make-flags flags)
6354 `(list "STARlong"))
6355 ((#:phases phases)
6356 `(modify-phases ,phases
6357 ;; Allow extra long sequence reads.
6358 (add-after 'unpack 'make-extra-long
6359 (lambda _
6360 (substitute* "source/IncludeDefine.h"
6361 (("(#define DEF_readNameLengthMax ).*" _ match)
6362 (string-append match "900000\n")))
6363 #t))
6364 (replace 'install
6365 (lambda* (#:key outputs #:allow-other-keys)
6366 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6367 (install-file "STARlong" bin))
6368 #t))))))))
6369
6370 (define-public subread
6371 (package
6372 (name "subread")
6373 (version "1.6.0")
6374 (source (origin
6375 (method url-fetch)
6376 (uri (string-append "mirror://sourceforge/subread/subread-"
6377 version "/subread-" version "-source.tar.gz"))
6378 (sha256
6379 (base32
6380 "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
6381 (build-system gnu-build-system)
6382 (arguments
6383 `(#:tests? #f ;no "check" target
6384 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
6385 ;; optimizations by default, so we override these flags such that x86_64
6386 ;; flags are only added when the build target is an x86_64 system.
6387 #:make-flags
6388 (list (let ((system ,(or (%current-target-system)
6389 (%current-system)))
6390 (flags '("-ggdb" "-fomit-frame-pointer"
6391 "-ffast-math" "-funroll-loops"
6392 "-fmessage-length=0"
6393 "-O9" "-Wall" "-DMAKE_FOR_EXON"
6394 "-DMAKE_STANDALONE"
6395 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
6396 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
6397 (if (string-prefix? "x86_64" system)
6398 (string-append "CCFLAGS=" (string-join (append flags flags64)))
6399 (string-append "CCFLAGS=" (string-join flags))))
6400 "-f" "Makefile.Linux"
6401 "CC=gcc ${CCFLAGS}")
6402 #:phases
6403 (modify-phases %standard-phases
6404 (add-after 'unpack 'enter-dir
6405 (lambda _ (chdir "src") #t))
6406 (replace 'install
6407 (lambda* (#:key outputs #:allow-other-keys)
6408 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6409 (mkdir-p bin)
6410 (copy-recursively "../bin" bin))
6411 #t))
6412 ;; no "configure" script
6413 (delete 'configure))))
6414 (inputs `(("zlib" ,zlib)))
6415 (home-page "http://bioinf.wehi.edu.au/subread-package/")
6416 (synopsis "Tool kit for processing next-gen sequencing data")
6417 (description
6418 "The subread package contains the following tools: subread aligner, a
6419 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
6420 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
6421 features; exactSNP: a SNP caller that discovers SNPs by testing signals
6422 against local background noises.")
6423 (license license:gpl3+)))
6424
6425 (define-public stringtie
6426 (package
6427 (name "stringtie")
6428 (version "1.2.1")
6429 (source (origin
6430 (method url-fetch)
6431 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
6432 "stringtie-" version ".tar.gz"))
6433 (sha256
6434 (base32
6435 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
6436 (modules '((guix build utils)))
6437 (snippet
6438 '(begin
6439 (delete-file-recursively "samtools-0.1.18")
6440 #t))))
6441 (build-system gnu-build-system)
6442 (arguments
6443 `(#:tests? #f ;no test suite
6444 #:phases
6445 (modify-phases %standard-phases
6446 ;; no configure script
6447 (delete 'configure)
6448 (add-before 'build 'use-system-samtools
6449 (lambda _
6450 (substitute* "Makefile"
6451 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
6452 "stringtie: "))
6453 (substitute* '("gclib/GBam.h"
6454 "gclib/GBam.cpp")
6455 (("#include \"(bam|sam|kstring).h\"" _ header)
6456 (string-append "#include <samtools/" header ".h>")))
6457 #t))
6458 (add-after 'unpack 'remove-duplicate-typedef
6459 (lambda _
6460 ;; This typedef conflicts with the typedef in
6461 ;; glibc-2.25/include/bits/types.h
6462 (substitute* "gclib/GThreads.h"
6463 (("typedef long long __intmax_t;") ""))
6464 #t))
6465 (replace 'install
6466 (lambda* (#:key outputs #:allow-other-keys)
6467 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6468 (install-file "stringtie" bin)
6469 #t))))))
6470 (inputs
6471 `(("samtools" ,samtools-0.1)
6472 ("zlib" ,zlib)))
6473 (home-page "http://ccb.jhu.edu/software/stringtie/")
6474 (synopsis "Transcript assembly and quantification for RNA-Seq data")
6475 (description
6476 "StringTie is a fast and efficient assembler of RNA-Seq sequence
6477 alignments into potential transcripts. It uses a novel network flow algorithm
6478 as well as an optional de novo assembly step to assemble and quantitate
6479 full-length transcripts representing multiple splice variants for each gene
6480 locus. Its input can include not only the alignments of raw reads used by
6481 other transcript assemblers, but also alignments of longer sequences that have
6482 been assembled from those reads. To identify differentially expressed genes
6483 between experiments, StringTie's output can be processed either by the
6484 Cuffdiff or Ballgown programs.")
6485 (license license:artistic2.0)))
6486
6487 (define-public taxtastic
6488 (package
6489 (name "taxtastic")
6490 (version "0.8.5")
6491 (source (origin
6492 (method url-fetch)
6493 (uri (pypi-uri "taxtastic" version))
6494 (sha256
6495 (base32
6496 "03pysw79lsrvz4lwzis88j15067ffqbi4cid5pqhrlxmd6bh8rrk"))))
6497 (build-system python-build-system)
6498 (arguments
6499 `(#:python ,python-2
6500 #:phases
6501 (modify-phases %standard-phases
6502 (replace 'check
6503 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t)))))
6504 (propagated-inputs
6505 `(("python-sqlalchemy" ,python2-sqlalchemy)
6506 ("python-decorator" ,python2-decorator)
6507 ("python-biopython" ,python2-biopython)
6508 ("python-pandas" ,python2-pandas)
6509 ("python-psycopg2" ,python2-psycopg2)
6510 ("python-fastalite" ,python2-fastalite)
6511 ("python-pyyaml" ,python2-pyyaml)
6512 ("python-six" ,python2-six)
6513 ("python-jinja2" ,python2-jinja2)
6514 ("python-dendropy" ,python2-dendropy)))
6515 (home-page "https://github.com/fhcrc/taxtastic")
6516 (synopsis "Tools for taxonomic naming and annotation")
6517 (description
6518 "Taxtastic is software written in python used to build and maintain
6519 reference packages i.e. collections of reference trees, reference alignments,
6520 profiles, and associated taxonomic information.")
6521 (license license:gpl3+)))
6522
6523 (define-public vcftools
6524 (package
6525 (name "vcftools")
6526 (version "0.1.15")
6527 (source (origin
6528 (method url-fetch)
6529 (uri (string-append
6530 "https://github.com/vcftools/vcftools/releases/download/v"
6531 version "/vcftools-" version ".tar.gz"))
6532 (sha256
6533 (base32
6534 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
6535 (build-system gnu-build-system)
6536 (arguments
6537 `(#:tests? #f ; no "check" target
6538 #:make-flags (list
6539 "CFLAGS=-O2" ; override "-m64" flag
6540 (string-append "PREFIX=" (assoc-ref %outputs "out"))
6541 (string-append "MANDIR=" (assoc-ref %outputs "out")
6542 "/share/man/man1"))))
6543 (native-inputs
6544 `(("pkg-config" ,pkg-config)))
6545 (inputs
6546 `(("perl" ,perl)
6547 ("zlib" ,zlib)))
6548 (home-page "https://vcftools.github.io/")
6549 (synopsis "Tools for working with VCF files")
6550 (description
6551 "VCFtools is a program package designed for working with VCF files, such
6552 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
6553 provide easily accessible methods for working with complex genetic variation
6554 data in the form of VCF files.")
6555 ;; The license is declared as LGPLv3 in the README and
6556 ;; at https://vcftools.github.io/license.html
6557 (license license:lgpl3)))
6558
6559 (define-public infernal
6560 (package
6561 (name "infernal")
6562 (version "1.1.2")
6563 (source (origin
6564 (method url-fetch)
6565 (uri (string-append "http://eddylab.org/software/infernal/"
6566 "infernal-" version ".tar.gz"))
6567 (sha256
6568 (base32
6569 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
6570 (build-system gnu-build-system)
6571 (native-inputs
6572 `(("perl" ,perl))) ; for tests
6573 (home-page "http://eddylab.org/infernal/")
6574 (synopsis "Inference of RNA alignments")
6575 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
6576 searching DNA sequence databases for RNA structure and sequence similarities.
6577 It is an implementation of a special case of profile stochastic context-free
6578 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
6579 profile, but it scores a combination of sequence consensus and RNA secondary
6580 structure consensus, so in many cases, it is more capable of identifying RNA
6581 homologs that conserve their secondary structure more than their primary
6582 sequence.")
6583 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
6584 (supported-systems '("i686-linux" "x86_64-linux"))
6585 (license license:bsd-3)))
6586
6587 (define-public r-scde
6588 (package
6589 (name "r-scde")
6590 (version "1.99.2")
6591 (source (origin
6592 (method git-fetch)
6593 (uri (git-reference
6594 (url "https://github.com/hms-dbmi/scde.git")
6595 (commit version)))
6596 (file-name (git-file-name name version))
6597 (sha256
6598 (base32
6599 "10na2gyka24mszdxf92wz9h2c13hdf1ww30c68gfsw53lvvhhhxb"))))
6600 (build-system r-build-system)
6601 (propagated-inputs
6602 `(("r-rcpp" ,r-rcpp)
6603 ("r-rcpparmadillo" ,r-rcpparmadillo)
6604 ("r-mgcv" ,r-mgcv)
6605 ("r-rook" ,r-rook)
6606 ("r-rjson" ,r-rjson)
6607 ("r-cairo" ,r-cairo)
6608 ("r-rcolorbrewer" ,r-rcolorbrewer)
6609 ("r-edger" ,r-edger)
6610 ("r-quantreg" ,r-quantreg)
6611 ("r-nnet" ,r-nnet)
6612 ("r-rmtstat" ,r-rmtstat)
6613 ("r-extremes" ,r-extremes)
6614 ("r-pcamethods" ,r-pcamethods)
6615 ("r-biocparallel" ,r-biocparallel)
6616 ("r-flexmix" ,r-flexmix)))
6617 (home-page "https://hms-dbmi.github.io/scde/")
6618 (synopsis "R package for analyzing single-cell RNA-seq data")
6619 (description "The SCDE package implements a set of statistical methods for
6620 analyzing single-cell RNA-seq data. SCDE fits individual error models for
6621 single-cell RNA-seq measurements. These models can then be used for
6622 assessment of differential expression between groups of cells, as well as
6623 other types of analysis. The SCDE package also contains the pagoda framework
6624 which applies pathway and gene set overdispersion analysis to identify aspects
6625 of transcriptional heterogeneity among single cells.")
6626 ;; See https://github.com/hms-dbmi/scde/issues/38
6627 (license license:gpl2)))
6628
6629 (define-public r-centipede
6630 (package
6631 (name "r-centipede")
6632 (version "1.2")
6633 (source (origin
6634 (method url-fetch)
6635 (uri (string-append "http://download.r-forge.r-project.org/"
6636 "src/contrib/CENTIPEDE_" version ".tar.gz"))
6637 (sha256
6638 (base32
6639 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
6640 (build-system r-build-system)
6641 (home-page "http://centipede.uchicago.edu/")
6642 (synopsis "Predict transcription factor binding sites")
6643 (description
6644 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
6645 of the genome that are bound by particular transcription factors. It starts
6646 by identifying a set of candidate binding sites, and then aims to classify the
6647 sites according to whether each site is bound or not bound by a transcription
6648 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
6649 between two different types of motif instances using as much relevant
6650 information as possible.")
6651 (license (list license:gpl2+ license:gpl3+))))
6652
6653 (define-public r-genefilter
6654 (package
6655 (name "r-genefilter")
6656 (version "1.64.0")
6657 (source
6658 (origin
6659 (method url-fetch)
6660 (uri (bioconductor-uri "genefilter" version))
6661 (sha256
6662 (base32
6663 "0p64s1n1627yafnp25wjr4b22p34lqw574fx2qg4s1m0lffh1z6i"))))
6664 (build-system r-build-system)
6665 (native-inputs
6666 `(("gfortran" ,gfortran)))
6667 (propagated-inputs
6668 `(("r-annotate" ,r-annotate)
6669 ("r-annotationdbi" ,r-annotationdbi)
6670 ("r-biobase" ,r-biobase)
6671 ("r-s4vectors" ,r-s4vectors)
6672 ("r-survival" ,r-survival)))
6673 (home-page "https://bioconductor.org/packages/genefilter")
6674 (synopsis "Filter genes from high-throughput experiments")
6675 (description
6676 "This package provides basic functions for filtering genes from
6677 high-throughput sequencing experiments.")
6678 (license license:artistic2.0)))
6679
6680 (define-public r-deseq2
6681 (package
6682 (name "r-deseq2")
6683 (version "1.22.2")
6684 (source
6685 (origin
6686 (method url-fetch)
6687 (uri (bioconductor-uri "DESeq2" version))
6688 (sha256
6689 (base32
6690 "0n5ah84mxn87p45drzy0wh2yknmzj1q5i6gv0v9vgg1lj7awb91r"))))
6691 (properties `((upstream-name . "DESeq2")))
6692 (build-system r-build-system)
6693 (propagated-inputs
6694 `(("r-biobase" ,r-biobase)
6695 ("r-biocgenerics" ,r-biocgenerics)
6696 ("r-biocparallel" ,r-biocparallel)
6697 ("r-genefilter" ,r-genefilter)
6698 ("r-geneplotter" ,r-geneplotter)
6699 ("r-genomicranges" ,r-genomicranges)
6700 ("r-ggplot2" ,r-ggplot2)
6701 ("r-hmisc" ,r-hmisc)
6702 ("r-iranges" ,r-iranges)
6703 ("r-locfit" ,r-locfit)
6704 ("r-rcpp" ,r-rcpp)
6705 ("r-rcpparmadillo" ,r-rcpparmadillo)
6706 ("r-s4vectors" ,r-s4vectors)
6707 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6708 (home-page "https://bioconductor.org/packages/DESeq2")
6709 (synopsis "Differential gene expression analysis")
6710 (description
6711 "This package provides functions to estimate variance-mean dependence in
6712 count data from high-throughput nucleotide sequencing assays and test for
6713 differential expression based on a model using the negative binomial
6714 distribution.")
6715 (license license:lgpl3+)))
6716
6717 (define-public r-dexseq
6718 (package
6719 (name "r-dexseq")
6720 (version "1.28.3")
6721 (source
6722 (origin
6723 (method url-fetch)
6724 (uri (bioconductor-uri "DEXSeq" version))
6725 (sha256
6726 (base32
6727 "1wsj1kqfrakmjnlplxmrv17r2spzcdkmwdkhggyjbf8mdhqs3w16"))))
6728 (properties `((upstream-name . "DEXSeq")))
6729 (build-system r-build-system)
6730 (propagated-inputs
6731 `(("r-annotationdbi" ,r-annotationdbi)
6732 ("r-biobase" ,r-biobase)
6733 ("r-biocgenerics" ,r-biocgenerics)
6734 ("r-biocparallel" ,r-biocparallel)
6735 ("r-biomart" ,r-biomart)
6736 ("r-deseq2" ,r-deseq2)
6737 ("r-genefilter" ,r-genefilter)
6738 ("r-geneplotter" ,r-geneplotter)
6739 ("r-genomicranges" ,r-genomicranges)
6740 ("r-hwriter" ,r-hwriter)
6741 ("r-iranges" ,r-iranges)
6742 ("r-rcolorbrewer" ,r-rcolorbrewer)
6743 ("r-rsamtools" ,r-rsamtools)
6744 ("r-s4vectors" ,r-s4vectors)
6745 ("r-statmod" ,r-statmod)
6746 ("r-stringr" ,r-stringr)
6747 ("r-summarizedexperiment" ,r-summarizedexperiment)))
6748 (home-page "https://bioconductor.org/packages/DEXSeq")
6749 (synopsis "Inference of differential exon usage in RNA-Seq")
6750 (description
6751 "This package is focused on finding differential exon usage using RNA-seq
6752 exon counts between samples with different experimental designs. It provides
6753 functions that allows the user to make the necessary statistical tests based
6754 on a model that uses the negative binomial distribution to estimate the
6755 variance between biological replicates and generalized linear models for
6756 testing. The package also provides functions for the visualization and
6757 exploration of the results.")
6758 (license license:gpl3+)))
6759
6760 (define-public r-annotationforge
6761 (package
6762 (name "r-annotationforge")
6763 (version "1.24.0")
6764 (source
6765 (origin
6766 (method url-fetch)
6767 (uri (bioconductor-uri "AnnotationForge" version))
6768 (sha256
6769 (base32
6770 "13yvhf3yskmvhs8szs6rkw93h81h5xqa3h19h91pp6nprhc8s3ll"))))
6771 (properties
6772 `((upstream-name . "AnnotationForge")))
6773 (build-system r-build-system)
6774 (propagated-inputs
6775 `(("r-annotationdbi" ,r-annotationdbi)
6776 ("r-biobase" ,r-biobase)
6777 ("r-biocgenerics" ,r-biocgenerics)
6778 ("r-dbi" ,r-dbi)
6779 ("r-rcurl" ,r-rcurl)
6780 ("r-rsqlite" ,r-rsqlite)
6781 ("r-s4vectors" ,r-s4vectors)
6782 ("r-xml" ,r-xml)))
6783 (home-page "https://bioconductor.org/packages/AnnotationForge")
6784 (synopsis "Code for building annotation database packages")
6785 (description
6786 "This package provides code for generating Annotation packages and their
6787 databases. Packages produced are intended to be used with AnnotationDbi.")
6788 (license license:artistic2.0)))
6789
6790 (define-public r-rbgl
6791 (package
6792 (name "r-rbgl")
6793 (version "1.58.2")
6794 (source
6795 (origin
6796 (method url-fetch)
6797 (uri (bioconductor-uri "RBGL" version))
6798 (sha256
6799 (base32
6800 "0vhnh47pswnp27c0zqcbnnsayfmq3cxcgrs9g860555ldqfl4cyl"))))
6801 (properties `((upstream-name . "RBGL")))
6802 (build-system r-build-system)
6803 (propagated-inputs `(("r-graph" ,r-graph)))
6804 (home-page "https://www.bioconductor.org/packages/RBGL")
6805 (synopsis "Interface to the Boost graph library")
6806 (description
6807 "This package provides a fairly extensive and comprehensive interface to
6808 the graph algorithms contained in the Boost library.")
6809 (license license:artistic2.0)))
6810
6811 (define-public r-gseabase
6812 (package
6813 (name "r-gseabase")
6814 (version "1.44.0")
6815 (source
6816 (origin
6817 (method url-fetch)
6818 (uri (bioconductor-uri "GSEABase" version))
6819 (sha256
6820 (base32
6821 "110al7x0ig8plzrprvhwc7xshi1jzpj2n8llhhg2fh6v6k0k6awr"))))
6822 (properties `((upstream-name . "GSEABase")))
6823 (build-system r-build-system)
6824 (propagated-inputs
6825 `(("r-annotate" ,r-annotate)
6826 ("r-annotationdbi" ,r-annotationdbi)
6827 ("r-biobase" ,r-biobase)
6828 ("r-biocgenerics" ,r-biocgenerics)
6829 ("r-graph" ,r-graph)
6830 ("r-xml" ,r-xml)))
6831 (home-page "https://bioconductor.org/packages/GSEABase")
6832 (synopsis "Gene set enrichment data structures and methods")
6833 (description
6834 "This package provides classes and methods to support @dfn{Gene Set
6835 Enrichment Analysis} (GSEA).")
6836 (license license:artistic2.0)))
6837
6838 (define-public r-category
6839 (package
6840 (name "r-category")
6841 (version "2.48.1")
6842 (source
6843 (origin
6844 (method url-fetch)
6845 (uri (bioconductor-uri "Category" version))
6846 (sha256
6847 (base32
6848 "18rsxlwa1l06i635cnznb9b2zssqcgb71pihky29gl2gwp7a654b"))))
6849 (properties `((upstream-name . "Category")))
6850 (build-system r-build-system)
6851 (propagated-inputs
6852 `(("r-annotate" ,r-annotate)
6853 ("r-annotationdbi" ,r-annotationdbi)
6854 ("r-biobase" ,r-biobase)
6855 ("r-biocgenerics" ,r-biocgenerics)
6856 ("r-genefilter" ,r-genefilter)
6857 ("r-graph" ,r-graph)
6858 ("r-gseabase" ,r-gseabase)
6859 ("r-matrix" ,r-matrix)
6860 ("r-rbgl" ,r-rbgl)
6861 ("r-dbi" ,r-dbi)))
6862 (home-page "https://bioconductor.org/packages/Category")
6863 (synopsis "Category analysis")
6864 (description
6865 "This package provides a collection of tools for performing category
6866 analysis.")
6867 (license license:artistic2.0)))
6868
6869 (define-public r-gostats
6870 (package
6871 (name "r-gostats")
6872 (version "2.48.0")
6873 (source
6874 (origin
6875 (method url-fetch)
6876 (uri (bioconductor-uri "GOstats" version))
6877 (sha256
6878 (base32
6879 "0wlqqgfynwqnqhckhsfjwg9zkj6hkmzwd5y76dhqz720vy21rcln"))))
6880 (properties `((upstream-name . "GOstats")))
6881 (build-system r-build-system)
6882 (propagated-inputs
6883 `(("r-annotate" ,r-annotate)
6884 ("r-annotationdbi" ,r-annotationdbi)
6885 ("r-annotationforge" ,r-annotationforge)
6886 ("r-biobase" ,r-biobase)
6887 ("r-category" ,r-category)
6888 ("r-go-db" ,r-go-db)
6889 ("r-graph" ,r-graph)
6890 ("r-rgraphviz" ,r-rgraphviz)
6891 ("r-rbgl" ,r-rbgl)))
6892 (home-page "https://bioconductor.org/packages/GOstats")
6893 (synopsis "Tools for manipulating GO and microarrays")
6894 (description
6895 "This package provides a set of tools for interacting with GO and
6896 microarray data. A variety of basic manipulation tools for graphs, hypothesis
6897 testing and other simple calculations.")
6898 (license license:artistic2.0)))
6899
6900 (define-public r-shortread
6901 (package
6902 (name "r-shortread")
6903 (version "1.40.0")
6904 (source
6905 (origin
6906 (method url-fetch)
6907 (uri (bioconductor-uri "ShortRead" version))
6908 (sha256
6909 (base32
6910 "0iks123i1adkb9i2q4wvfqdmmj9dy867jvngj9757y8gj6xbcpy1"))))
6911 (properties `((upstream-name . "ShortRead")))
6912 (build-system r-build-system)
6913 (inputs
6914 `(("zlib" ,zlib)))
6915 (propagated-inputs
6916 `(("r-biobase" ,r-biobase)
6917 ("r-biocgenerics" ,r-biocgenerics)
6918 ("r-biocparallel" ,r-biocparallel)
6919 ("r-biostrings" ,r-biostrings)
6920 ("r-genomeinfodb" ,r-genomeinfodb)
6921 ("r-genomicalignments" ,r-genomicalignments)
6922 ("r-genomicranges" ,r-genomicranges)
6923 ("r-hwriter" ,r-hwriter)
6924 ("r-iranges" ,r-iranges)
6925 ("r-lattice" ,r-lattice)
6926 ("r-latticeextra" ,r-latticeextra)
6927 ("r-rsamtools" ,r-rsamtools)
6928 ("r-s4vectors" ,r-s4vectors)
6929 ("r-xvector" ,r-xvector)
6930 ("r-zlibbioc" ,r-zlibbioc)))
6931 (home-page "https://bioconductor.org/packages/ShortRead")
6932 (synopsis "FASTQ input and manipulation tools")
6933 (description
6934 "This package implements sampling, iteration, and input of FASTQ files.
6935 It includes functions for filtering and trimming reads, and for generating a
6936 quality assessment report. Data are represented as
6937 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
6938 purposes. The package also contains legacy support for early single-end,
6939 ungapped alignment formats.")
6940 (license license:artistic2.0)))
6941
6942 (define-public r-systempiper
6943 (package
6944 (name "r-systempiper")
6945 (version "1.16.1")
6946 (source
6947 (origin
6948 (method url-fetch)
6949 (uri (bioconductor-uri "systemPipeR" version))
6950 (sha256
6951 (base32
6952 "0qzydz87rld2nhwzbfgrw5jfgh8maa9y54mjx9c4285m11qj2shq"))))
6953 (properties `((upstream-name . "systemPipeR")))
6954 (build-system r-build-system)
6955 (propagated-inputs
6956 `(("r-annotate" ,r-annotate)
6957 ("r-batchjobs" ,r-batchjobs)
6958 ("r-biocgenerics" ,r-biocgenerics)
6959 ("r-biostrings" ,r-biostrings)
6960 ("r-deseq2" ,r-deseq2)
6961 ("r-edger" ,r-edger)
6962 ("r-genomicfeatures" ,r-genomicfeatures)
6963 ("r-genomicranges" ,r-genomicranges)
6964 ("r-ggplot2" ,r-ggplot2)
6965 ("r-go-db" ,r-go-db)
6966 ("r-gostats" ,r-gostats)
6967 ("r-limma" ,r-limma)
6968 ("r-pheatmap" ,r-pheatmap)
6969 ("r-rjson" ,r-rjson)
6970 ("r-rsamtools" ,r-rsamtools)
6971 ("r-shortread" ,r-shortread)
6972 ("r-summarizedexperiment" ,r-summarizedexperiment)
6973 ("r-variantannotation" ,r-variantannotation)))
6974 (home-page "https://github.com/tgirke/systemPipeR")
6975 (synopsis "Next generation sequencing workflow and reporting environment")
6976 (description
6977 "This R package provides tools for building and running automated
6978 end-to-end analysis workflows for a wide range of @dfn{next generation
6979 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
6980 Important features include a uniform workflow interface across different NGS
6981 applications, automated report generation, and support for running both R and
6982 command-line software, such as NGS aligners or peak/variant callers, on local
6983 computers or compute clusters. Efficient handling of complex sample sets and
6984 experimental designs is facilitated by a consistently implemented sample
6985 annotation infrastructure.")
6986 (license license:artistic2.0)))
6987
6988 (define-public r-grohmm
6989 (package
6990 (name "r-grohmm")
6991 (version "1.16.0")
6992 (source
6993 (origin
6994 (method url-fetch)
6995 (uri (bioconductor-uri "groHMM" version))
6996 (sha256
6997 (base32
6998 "1ph92fv44b90v7mk4b1mjvv0dlrhl8ba01klxbnd0vs4qn9zxplh"))))
6999 (properties `((upstream-name . "groHMM")))
7000 (build-system r-build-system)
7001 (propagated-inputs
7002 `(("r-genomeinfodb" ,r-genomeinfodb)
7003 ("r-genomicalignments" ,r-genomicalignments)
7004 ("r-genomicranges" ,r-genomicranges)
7005 ("r-iranges" ,r-iranges)
7006 ("r-mass" ,r-mass)
7007 ("r-rtracklayer" ,r-rtracklayer)
7008 ("r-s4vectors" ,r-s4vectors)))
7009 (home-page "https://github.com/Kraus-Lab/groHMM")
7010 (synopsis "GRO-seq analysis pipeline")
7011 (description
7012 "This package provides a pipeline for the analysis of GRO-seq data.")
7013 (license license:gpl3+)))
7014
7015 (define-public vsearch
7016 (package
7017 (name "vsearch")
7018 (version "2.9.1")
7019 (source
7020 (origin
7021 (method git-fetch)
7022 (uri (git-reference
7023 (url "https://github.com/torognes/vsearch.git")
7024 (commit (string-append "v" version))))
7025 (file-name (git-file-name name version))
7026 (sha256
7027 (base32
7028 "0vhrpjfdf75ba04b24xknp41790cvcgwl0vgpy7qbzj5xh2521ss"))
7029 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
7030 (snippet
7031 '(begin
7032 ;; Remove bundled cityhash sources. The vsearch source is adjusted
7033 ;; for this in the patch.
7034 (delete-file "src/city.h")
7035 (delete-file "src/citycrc.h")
7036 (delete-file "src/city.cc")
7037 #t))))
7038 (build-system gnu-build-system)
7039 (inputs
7040 `(("zlib" ,zlib)
7041 ("bzip2" ,bzip2)
7042 ("cityhash" ,cityhash)))
7043 (native-inputs
7044 `(("autoconf" ,autoconf)
7045 ("automake" ,automake)))
7046 (synopsis "Sequence search tools for metagenomics")
7047 (description
7048 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
7049 dereplication, pairwise alignment, shuffling, subsampling, sorting and
7050 masking. The tool takes advantage of parallelism in the form of SIMD
7051 vectorization as well as multiple threads to perform accurate alignments at
7052 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
7053 Needleman-Wunsch).")
7054 (home-page "https://github.com/torognes/vsearch")
7055 ;; vsearch uses non-portable SSE intrinsics so building fails on other
7056 ;; platforms.
7057 (supported-systems '("x86_64-linux"))
7058 ;; Dual licensed; also includes public domain source.
7059 (license (list license:gpl3 license:bsd-2))))
7060
7061 (define-public pardre
7062 (package
7063 (name "pardre")
7064 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
7065 (version "1.1.5-1")
7066 (source
7067 (origin
7068 (method url-fetch)
7069 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
7070 "1.1.5" ".tar.gz"))
7071 (sha256
7072 (base32
7073 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
7074 (build-system gnu-build-system)
7075 (arguments
7076 `(#:tests? #f ; no tests included
7077 #:phases
7078 (modify-phases %standard-phases
7079 (delete 'configure)
7080 (replace 'install
7081 (lambda* (#:key outputs #:allow-other-keys)
7082 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
7083 (install-file "ParDRe" bin)
7084 #t))))))
7085 (inputs
7086 `(("openmpi" ,openmpi)
7087 ("zlib" ,zlib)))
7088 (synopsis "Parallel tool to remove duplicate DNA reads")
7089 (description
7090 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
7091 Duplicate reads can be seen as identical or nearly identical sequences with
7092 some mismatches. This tool lets users avoid the analysis of unnecessary
7093 reads, reducing the time of subsequent procedures with the
7094 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
7095 in order to exploit the parallel capabilities of multicore clusters. It is
7096 faster than multithreaded counterparts (end of 2015) for the same number of
7097 cores and, thanks to the message-passing technology, it can be executed on
7098 clusters.")
7099 (home-page "https://sourceforge.net/projects/pardre/")
7100 (license license:gpl3+)))
7101
7102 (define-public ruby-bio-kseq
7103 (package
7104 (name "ruby-bio-kseq")
7105 (version "0.0.2")
7106 (source
7107 (origin
7108 (method url-fetch)
7109 (uri (rubygems-uri "bio-kseq" version))
7110 (sha256
7111 (base32
7112 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
7113 (build-system ruby-build-system)
7114 (arguments
7115 `(#:test-target "spec"))
7116 (native-inputs
7117 `(("bundler" ,bundler)
7118 ("ruby-rspec" ,ruby-rspec)
7119 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7120 (inputs
7121 `(("zlib" ,zlib)))
7122 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
7123 (description
7124 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
7125 FASTQ parsing code. It provides a fast iterator over sequences and their
7126 quality scores.")
7127 (home-page "https://github.com/gusevfe/bio-kseq")
7128 (license license:expat)))
7129
7130 (define-public bio-locus
7131 (package
7132 (name "bio-locus")
7133 (version "0.0.7")
7134 (source
7135 (origin
7136 (method url-fetch)
7137 (uri (rubygems-uri "bio-locus" version))
7138 (sha256
7139 (base32
7140 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
7141 (build-system ruby-build-system)
7142 (native-inputs
7143 `(("ruby-rspec" ,ruby-rspec)))
7144 (synopsis "Tool for fast querying of genome locations")
7145 (description
7146 "Bio-locus is a tabix-like tool for fast querying of genome
7147 locations. Many file formats in bioinformatics contain records that
7148 start with a chromosome name and a position for a SNP, or a start-end
7149 position for indels. Bio-locus allows users to store this chr+pos or
7150 chr+pos+alt information in a database.")
7151 (home-page "https://github.com/pjotrp/bio-locus")
7152 (license license:expat)))
7153
7154 (define-public bio-blastxmlparser
7155 (package
7156 (name "bio-blastxmlparser")
7157 (version "2.0.4")
7158 (source (origin
7159 (method url-fetch)
7160 (uri (rubygems-uri "bio-blastxmlparser" version))
7161 (sha256
7162 (base32
7163 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
7164 (build-system ruby-build-system)
7165 (propagated-inputs
7166 `(("ruby-bio-logger" ,ruby-bio-logger)
7167 ("ruby-nokogiri" ,ruby-nokogiri)))
7168 (inputs
7169 `(("ruby-rspec" ,ruby-rspec)))
7170 (synopsis "Fast big data BLAST XML parser and library")
7171 (description
7172 "Very fast parallel big-data BLAST XML file parser which can be used as
7173 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
7174 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
7175 (home-page "https://github.com/pjotrp/blastxmlparser")
7176 (license license:expat)))
7177
7178 (define-public bioruby
7179 (package
7180 (name "bioruby")
7181 (version "1.5.2")
7182 (source
7183 (origin
7184 (method url-fetch)
7185 (uri (rubygems-uri "bio" version))
7186 (sha256
7187 (base32
7188 "1d56amdsjv1mag7m6gv2w0xij8hqx1v5xbdjsix8sp3yp36m7938"))))
7189 (build-system ruby-build-system)
7190 (propagated-inputs
7191 `(("ruby-libxml" ,ruby-libxml)))
7192 (native-inputs
7193 `(("which" ,which))) ; required for test phase
7194 (arguments
7195 `(#:phases
7196 (modify-phases %standard-phases
7197 (add-before 'build 'patch-test-command
7198 (lambda _
7199 (substitute* '("test/functional/bio/test_command.rb")
7200 (("/bin/sh") (which "sh")))
7201 (substitute* '("test/functional/bio/test_command.rb")
7202 (("/bin/ls") (which "ls")))
7203 (substitute* '("test/functional/bio/test_command.rb")
7204 (("which") (which "which")))
7205 (substitute* '("test/functional/bio/test_command.rb",
7206 "test/data/command/echoarg2.sh")
7207 (("/bin/echo") (which "echo")))
7208 #t)))))
7209 (synopsis "Ruby library, shell and utilities for bioinformatics")
7210 (description "BioRuby comes with a comprehensive set of Ruby development
7211 tools and libraries for bioinformatics and molecular biology. BioRuby has
7212 components for sequence analysis, pathway analysis, protein modelling and
7213 phylogenetic analysis; it supports many widely used data formats and provides
7214 easy access to databases, external programs and public web services, including
7215 BLAST, KEGG, GenBank, MEDLINE and GO.")
7216 (home-page "http://bioruby.org/")
7217 ;; Code is released under Ruby license, except for setup
7218 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
7219 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
7220
7221 (define-public r-biocinstaller
7222 (package
7223 (name "r-biocinstaller")
7224 (version "1.32.1")
7225 (source (origin
7226 (method url-fetch)
7227 (uri (bioconductor-uri "BiocInstaller" version))
7228 (sha256
7229 (base32
7230 "1s1f9qhyf3mc73ir25x2zlgi9hf45a37lg4z8fbva4i21hqisgsl"))))
7231 (properties
7232 `((upstream-name . "BiocInstaller")))
7233 (build-system r-build-system)
7234 (home-page "https://bioconductor.org/packages/BiocInstaller")
7235 (synopsis "Install Bioconductor packages")
7236 (description "This package is used to install and update R packages from
7237 Bioconductor, CRAN, and Github.")
7238 (license license:artistic2.0)))
7239
7240 (define-public r-biocviews
7241 (package
7242 (name "r-biocviews")
7243 (version "1.50.10")
7244 (source (origin
7245 (method url-fetch)
7246 (uri (bioconductor-uri "biocViews" version))
7247 (sha256
7248 (base32
7249 "06ms82pyc5rxbd9crfvqjxcwpafv0c627i83v80d12925mrc51h8"))))
7250 (properties
7251 `((upstream-name . "biocViews")))
7252 (build-system r-build-system)
7253 (propagated-inputs
7254 `(("r-biobase" ,r-biobase)
7255 ("r-graph" ,r-graph)
7256 ("r-rbgl" ,r-rbgl)
7257 ("r-rcurl" ,r-rcurl)
7258 ("r-xml" ,r-xml)
7259 ("r-runit" ,r-runit)))
7260 (home-page "https://bioconductor.org/packages/biocViews")
7261 (synopsis "Bioconductor package categorization helper")
7262 (description "The purpose of biocViews is to create HTML pages that
7263 categorize packages in a Bioconductor package repository according to keywords,
7264 also known as views, in a controlled vocabulary.")
7265 (license license:artistic2.0)))
7266
7267 (define-public r-biocstyle
7268 (package
7269 (name "r-biocstyle")
7270 (version "2.10.0")
7271 (source (origin
7272 (method url-fetch)
7273 (uri (bioconductor-uri "BiocStyle" version))
7274 (sha256
7275 (base32
7276 "01lm8xljilj666fcl3wnw82dxkcxnlr294lddr553rm8xr5nwg31"))))
7277 (properties
7278 `((upstream-name . "BiocStyle")))
7279 (build-system r-build-system)
7280 (propagated-inputs
7281 `(("r-biocmanager" ,r-biocmanager)
7282 ("r-bookdown" ,r-bookdown)
7283 ("r-knitr" ,r-knitr)
7284 ("r-rmarkdown" ,r-rmarkdown)
7285 ("r-yaml" ,r-yaml)))
7286 (home-page "https://bioconductor.org/packages/BiocStyle")
7287 (synopsis "Bioconductor formatting styles")
7288 (description "This package provides standard formatting styles for
7289 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
7290 functionality.")
7291 (license license:artistic2.0)))
7292
7293 (define-public r-bioccheck
7294 (package
7295 (name "r-bioccheck")
7296 (version "1.18.0")
7297 (source (origin
7298 (method url-fetch)
7299 (uri (bioconductor-uri "BiocCheck" version))
7300 (sha256
7301 (base32
7302 "0zamvs5jar38293ff27imvwy0ra25y64ls9z8w3q1y4jcp8p8pg7"))))
7303 (properties
7304 `((upstream-name . "BiocCheck")))
7305 (build-system r-build-system)
7306 (arguments
7307 '(#:phases
7308 (modify-phases %standard-phases
7309 ;; This package can be used by calling BiocCheck(<package>) from
7310 ;; within R, or by running R CMD BiocCheck <package>. This phase
7311 ;; makes sure the latter works. For this to work, the BiocCheck
7312 ;; script must be somewhere on the PATH (not the R bin directory).
7313 (add-after 'install 'install-bioccheck-subcommand
7314 (lambda* (#:key outputs #:allow-other-keys)
7315 (let* ((out (assoc-ref outputs "out"))
7316 (dest-dir (string-append out "/bin"))
7317 (script-dir
7318 (string-append out "/site-library/BiocCheck/script/")))
7319 (mkdir-p dest-dir)
7320 (symlink (string-append script-dir "/checkBadDeps.R")
7321 (string-append dest-dir "/checkBadDeps.R"))
7322 (symlink (string-append script-dir "/BiocCheck")
7323 (string-append dest-dir "/BiocCheck")))
7324 #t)))))
7325 (propagated-inputs
7326 `(("r-codetools" ,r-codetools)
7327 ("r-graph" ,r-graph)
7328 ("r-httr" ,r-httr)
7329 ("r-knitr" ,r-knitr)
7330 ("r-optparse" ,r-optparse)
7331 ("r-biocmanager" ,r-biocmanager)
7332 ("r-biocviews" ,r-biocviews)
7333 ("r-stringdist" ,r-stringdist)))
7334 (home-page "https://bioconductor.org/packages/BiocCheck")
7335 (synopsis "Executes Bioconductor-specific package checks")
7336 (description "This package contains tools to perform additional quality
7337 checks on R packages that are to be submitted to the Bioconductor repository.")
7338 (license license:artistic2.0)))
7339
7340 (define-public r-s4vectors
7341 (package
7342 (name "r-s4vectors")
7343 (version "0.20.1")
7344 (source (origin
7345 (method url-fetch)
7346 (uri (bioconductor-uri "S4Vectors" version))
7347 (sha256
7348 (base32
7349 "18whrw67nxn82xshckl2pjy7d14sa3c27h3n9naqyqwz88lr6dzg"))))
7350 (properties
7351 `((upstream-name . "S4Vectors")))
7352 (build-system r-build-system)
7353 (propagated-inputs
7354 `(("r-biocgenerics" ,r-biocgenerics)))
7355 (home-page "https://bioconductor.org/packages/S4Vectors")
7356 (synopsis "S4 implementation of vectors and lists")
7357 (description
7358 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7359 classes and a set of generic functions that extend the semantic of ordinary
7360 vectors and lists in R. Package developers can easily implement vector-like
7361 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7362 In addition, a few low-level concrete subclasses of general interest (e.g.
7363 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7364 S4Vectors package itself.")
7365 (license license:artistic2.0)))
7366
7367 (define-public r-iranges
7368 (package
7369 (name "r-iranges")
7370 (version "2.16.0")
7371 (source (origin
7372 (method url-fetch)
7373 (uri (bioconductor-uri "IRanges" version))
7374 (sha256
7375 (base32
7376 "0ljppsk611xi72gc8mbdx1311b63b1ijd401jz5xmxk5frla1nc1"))))
7377 (properties
7378 `((upstream-name . "IRanges")))
7379 (build-system r-build-system)
7380 (propagated-inputs
7381 `(("r-biocgenerics" ,r-biocgenerics)
7382 ("r-s4vectors" ,r-s4vectors)))
7383 (home-page "https://bioconductor.org/packages/IRanges")
7384 (synopsis "Infrastructure for manipulating intervals on sequences")
7385 (description
7386 "This package provides efficient low-level and highly reusable S4 classes
7387 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7388 generally, data that can be organized sequentially (formally defined as
7389 @code{Vector} objects), as well as views on these @code{Vector} objects.
7390 Efficient list-like classes are also provided for storing big collections of
7391 instances of the basic classes. All classes in the package use consistent
7392 naming and share the same rich and consistent \"Vector API\" as much as
7393 possible.")
7394 (license license:artistic2.0)))
7395
7396 (define-public r-genomeinfodbdata
7397 (package
7398 (name "r-genomeinfodbdata")
7399 (version "1.2.0")
7400 (source (origin
7401 (method url-fetch)
7402 ;; We cannot use bioconductor-uri here because this tarball is
7403 ;; located under "data/annotation/" instead of "bioc/".
7404 (uri (string-append "https://bioconductor.org/packages/release/"
7405 "data/annotation/src/contrib/GenomeInfoDbData_"
7406 version ".tar.gz"))
7407 (sha256
7408 (base32
7409 "0di6nlqpsyqf693k2na65ayqldih563x3zfrczpqc5q2hl5kg35c"))))
7410 (properties
7411 `((upstream-name . "GenomeInfoDbData")))
7412 (build-system r-build-system)
7413 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
7414 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7415 (description "This package contains data for mapping between NCBI taxonomy
7416 ID and species. It is used by functions in the GenomeInfoDb package.")
7417 (license license:artistic2.0)))
7418
7419 (define-public r-genomeinfodb
7420 (package
7421 (name "r-genomeinfodb")
7422 (version "1.18.2")
7423 (source (origin
7424 (method url-fetch)
7425 (uri (bioconductor-uri "GenomeInfoDb" version))
7426 (sha256
7427 (base32
7428 "07bm35jcczpyxap0b3gky4b28z38z423sngzsm19d9krjxr76b5p"))))
7429 (properties
7430 `((upstream-name . "GenomeInfoDb")))
7431 (build-system r-build-system)
7432 (propagated-inputs
7433 `(("r-biocgenerics" ,r-biocgenerics)
7434 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
7435 ("r-iranges" ,r-iranges)
7436 ("r-rcurl" ,r-rcurl)
7437 ("r-s4vectors" ,r-s4vectors)))
7438 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
7439 (synopsis "Utilities for manipulating chromosome identifiers")
7440 (description
7441 "This package contains data and functions that define and allow
7442 translation between different chromosome sequence naming conventions (e.g.,
7443 \"chr1\" versus \"1\"), including a function that attempts to place sequence
7444 names in their natural, rather than lexicographic, order.")
7445 (license license:artistic2.0)))
7446
7447 (define-public r-edger
7448 (package
7449 (name "r-edger")
7450 (version "3.24.3")
7451 (source (origin
7452 (method url-fetch)
7453 (uri (bioconductor-uri "edgeR" version))
7454 (sha256
7455 (base32
7456 "15yimsbsxmxhlsfmgw5j7fd8qn08zz4xqxrir1c6n2dc103y22xg"))))
7457 (properties `((upstream-name . "edgeR")))
7458 (build-system r-build-system)
7459 (propagated-inputs
7460 `(("r-limma" ,r-limma)
7461 ("r-locfit" ,r-locfit)
7462 ("r-rcpp" ,r-rcpp)
7463 ("r-statmod" ,r-statmod))) ;for estimateDisp
7464 (home-page "http://bioinf.wehi.edu.au/edgeR")
7465 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7466 (description "This package can do differential expression analysis of
7467 RNA-seq expression profiles with biological replication. It implements a range
7468 of statistical methodology based on the negative binomial distributions,
7469 including empirical Bayes estimation, exact tests, generalized linear models
7470 and quasi-likelihood tests. It be applied to differential signal analysis of
7471 other types of genomic data that produce counts, including ChIP-seq, SAGE and
7472 CAGE.")
7473 (license license:gpl2+)))
7474
7475 (define-public r-variantannotation
7476 (package
7477 (name "r-variantannotation")
7478 (version "1.28.13")
7479 (source (origin
7480 (method url-fetch)
7481 (uri (bioconductor-uri "VariantAnnotation" version))
7482 (sha256
7483 (base32
7484 "1a7b0bg579ynpbfh5dk87fdgl62r9cwk4zmrl61m6zil7881p3gh"))))
7485 (properties
7486 `((upstream-name . "VariantAnnotation")))
7487 (inputs
7488 `(("zlib" ,zlib)))
7489 (propagated-inputs
7490 `(("r-annotationdbi" ,r-annotationdbi)
7491 ("r-biobase" ,r-biobase)
7492 ("r-biocgenerics" ,r-biocgenerics)
7493 ("r-biostrings" ,r-biostrings)
7494 ("r-bsgenome" ,r-bsgenome)
7495 ("r-dbi" ,r-dbi)
7496 ("r-genomeinfodb" ,r-genomeinfodb)
7497 ("r-genomicfeatures" ,r-genomicfeatures)
7498 ("r-genomicranges" ,r-genomicranges)
7499 ("r-iranges" ,r-iranges)
7500 ("r-summarizedexperiment" ,r-summarizedexperiment)
7501 ("r-rsamtools" ,r-rsamtools)
7502 ("r-rtracklayer" ,r-rtracklayer)
7503 ("r-s4vectors" ,r-s4vectors)
7504 ("r-xvector" ,r-xvector)
7505 ("r-zlibbioc" ,r-zlibbioc)))
7506 (build-system r-build-system)
7507 (home-page "https://bioconductor.org/packages/VariantAnnotation")
7508 (synopsis "Package for annotation of genetic variants")
7509 (description "This R package can annotate variants, compute amino acid
7510 coding changes and predict coding outcomes.")
7511 (license license:artistic2.0)))
7512
7513 (define-public r-limma
7514 (package
7515 (name "r-limma")
7516 (version "3.38.3")
7517 (source (origin
7518 (method url-fetch)
7519 (uri (bioconductor-uri "limma" version))
7520 (sha256
7521 (base32
7522 "08va8jggmv61wym955mnb1n31mgikrmjys7dl1kp5hp3yia8jg7l"))))
7523 (build-system r-build-system)
7524 (home-page "http://bioinf.wehi.edu.au/limma")
7525 (synopsis "Package for linear models for microarray and RNA-seq data")
7526 (description "This package can be used for the analysis of gene expression
7527 studies, especially the use of linear models for analysing designed experiments
7528 and the assessment of differential expression. The analysis methods apply to
7529 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
7530 (license license:gpl2+)))
7531
7532 (define-public r-xvector
7533 (package
7534 (name "r-xvector")
7535 (version "0.22.0")
7536 (source (origin
7537 (method url-fetch)
7538 (uri (bioconductor-uri "XVector" version))
7539 (sha256
7540 (base32
7541 "01fph1ydd6g0rl5mcw54spx22glq2kqv7wyw8bqw0plmabzcwwdm"))))
7542 (properties
7543 `((upstream-name . "XVector")))
7544 (build-system r-build-system)
7545 (arguments
7546 `(#:phases
7547 (modify-phases %standard-phases
7548 (add-after 'unpack 'use-system-zlib
7549 (lambda _
7550 (substitute* "DESCRIPTION"
7551 (("zlibbioc, ") ""))
7552 (substitute* "NAMESPACE"
7553 (("import\\(zlibbioc\\)") ""))
7554 #t)))))
7555 (inputs
7556 `(("zlib" ,zlib)))
7557 (propagated-inputs
7558 `(("r-biocgenerics" ,r-biocgenerics)
7559 ("r-iranges" ,r-iranges)
7560 ("r-s4vectors" ,r-s4vectors)))
7561 (home-page "https://bioconductor.org/packages/XVector")
7562 (synopsis "Representation and manpulation of external sequences")
7563 (description
7564 "This package provides memory efficient S4 classes for storing sequences
7565 \"externally\" (behind an R external pointer, or on disk).")
7566 (license license:artistic2.0)))
7567
7568 (define-public r-genomicranges
7569 (package
7570 (name "r-genomicranges")
7571 (version "1.34.0")
7572 (source (origin
7573 (method url-fetch)
7574 (uri (bioconductor-uri "GenomicRanges" version))
7575 (sha256
7576 (base32
7577 "0bgh14d15dpf2iy36qinw45r6n45rqkf0ghazrdl3jfva6vbrb29"))))
7578 (properties
7579 `((upstream-name . "GenomicRanges")))
7580 (build-system r-build-system)
7581 (propagated-inputs
7582 `(("r-biocgenerics" ,r-biocgenerics)
7583 ("r-genomeinfodb" ,r-genomeinfodb)
7584 ("r-iranges" ,r-iranges)
7585 ("r-s4vectors" ,r-s4vectors)
7586 ("r-xvector" ,r-xvector)))
7587 (home-page "https://bioconductor.org/packages/GenomicRanges")
7588 (synopsis "Representation and manipulation of genomic intervals")
7589 (description
7590 "This package provides tools to efficiently represent and manipulate
7591 genomic annotations and alignments is playing a central role when it comes to
7592 analyzing high-throughput sequencing data (a.k.a. NGS data). The
7593 GenomicRanges package defines general purpose containers for storing and
7594 manipulating genomic intervals and variables defined along a genome.")
7595 (license license:artistic2.0)))
7596
7597 (define-public r-biobase
7598 (package
7599 (name "r-biobase")
7600 (version "2.42.0")
7601 (source (origin
7602 (method url-fetch)
7603 (uri (bioconductor-uri "Biobase" version))
7604 (sha256
7605 (base32
7606 "10nr6nrkj5vlq8hsgbhbhv669z0dbpz4m3vz9k32rx1czbrrqwin"))))
7607 (properties
7608 `((upstream-name . "Biobase")))
7609 (build-system r-build-system)
7610 (propagated-inputs
7611 `(("r-biocgenerics" ,r-biocgenerics)))
7612 (home-page "https://bioconductor.org/packages/Biobase")
7613 (synopsis "Base functions for Bioconductor")
7614 (description
7615 "This package provides functions that are needed by many other packages
7616 on Bioconductor or which replace R functions.")
7617 (license license:artistic2.0)))
7618
7619 (define-public r-annotationdbi
7620 (package
7621 (name "r-annotationdbi")
7622 (version "1.44.0")
7623 (source (origin
7624 (method url-fetch)
7625 (uri (bioconductor-uri "AnnotationDbi" version))
7626 (sha256
7627 (base32
7628 "1954vimkx5yb9irppq8vssq0f3yjkg36w38b9r0rqmijx1ps7x5d"))))
7629 (properties
7630 `((upstream-name . "AnnotationDbi")))
7631 (build-system r-build-system)
7632 (propagated-inputs
7633 `(("r-biobase" ,r-biobase)
7634 ("r-biocgenerics" ,r-biocgenerics)
7635 ("r-dbi" ,r-dbi)
7636 ("r-iranges" ,r-iranges)
7637 ("r-rsqlite" ,r-rsqlite)
7638 ("r-s4vectors" ,r-s4vectors)))
7639 (home-page "https://bioconductor.org/packages/AnnotationDbi")
7640 (synopsis "Annotation database interface")
7641 (description
7642 "This package provides user interface and database connection code for
7643 annotation data packages using SQLite data storage.")
7644 (license license:artistic2.0)))
7645
7646 (define-public r-biomart
7647 (package
7648 (name "r-biomart")
7649 (version "2.38.0")
7650 (source (origin
7651 (method url-fetch)
7652 (uri (bioconductor-uri "biomaRt" version))
7653 (sha256
7654 (base32
7655 "1lshkknp7dmr3p6dd2zbv86cc71h53ggh9ji83jcjym8sgbbspl2"))))
7656 (properties
7657 `((upstream-name . "biomaRt")))
7658 (build-system r-build-system)
7659 (propagated-inputs
7660 `(("r-annotationdbi" ,r-annotationdbi)
7661 ("r-httr" ,r-httr)
7662 ("r-progress" ,r-progress)
7663 ("r-rcurl" ,r-rcurl)
7664 ("r-stringr" ,r-stringr)
7665 ("r-xml" ,r-xml)))
7666 (home-page "https://bioconductor.org/packages/biomaRt")
7667 (synopsis "Interface to BioMart databases")
7668 (description
7669 "biomaRt provides an interface to a growing collection of databases
7670 implementing the @url{BioMart software suite, http://www.biomart.org}. The
7671 package enables retrieval of large amounts of data in a uniform way without
7672 the need to know the underlying database schemas or write complex SQL queries.
7673 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
7674 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
7675 users direct access to a diverse set of data and enable a wide range of
7676 powerful online queries from gene annotation to database mining.")
7677 (license license:artistic2.0)))
7678
7679 (define-public r-biocparallel
7680 (package
7681 (name "r-biocparallel")
7682 (version "1.16.6")
7683 (source (origin
7684 (method url-fetch)
7685 (uri (bioconductor-uri "BiocParallel" version))
7686 (sha256
7687 (base32
7688 "1iv2xzm6lz371z0llhcxl8hmc5jfw0hjwnf1qc8d7jk9djgcaks2"))))
7689 (properties
7690 `((upstream-name . "BiocParallel")))
7691 (build-system r-build-system)
7692 (propagated-inputs
7693 `(("r-futile-logger" ,r-futile-logger)
7694 ("r-snow" ,r-snow)
7695 ("r-bh" ,r-bh)))
7696 (home-page "https://bioconductor.org/packages/BiocParallel")
7697 (synopsis "Bioconductor facilities for parallel evaluation")
7698 (description
7699 "This package provides modified versions and novel implementation of
7700 functions for parallel evaluation, tailored to use with Bioconductor
7701 objects.")
7702 (license (list license:gpl2+ license:gpl3+))))
7703
7704 (define-public r-biostrings
7705 (package
7706 (name "r-biostrings")
7707 (version "2.50.2")
7708 (source (origin
7709 (method url-fetch)
7710 (uri (bioconductor-uri "Biostrings" version))
7711 (sha256
7712 (base32
7713 "16cqqc8i6gb0jcz0lizfqqxsq7g0yb0ll2s9qzmb45brp07dg8f7"))))
7714 (properties
7715 `((upstream-name . "Biostrings")))
7716 (build-system r-build-system)
7717 (propagated-inputs
7718 `(("r-biocgenerics" ,r-biocgenerics)
7719 ("r-iranges" ,r-iranges)
7720 ("r-s4vectors" ,r-s4vectors)
7721 ("r-xvector" ,r-xvector)))
7722 (home-page "https://bioconductor.org/packages/Biostrings")
7723 (synopsis "String objects and algorithms for biological sequences")
7724 (description
7725 "This package provides memory efficient string containers, string
7726 matching algorithms, and other utilities, for fast manipulation of large
7727 biological sequences or sets of sequences.")
7728 (license license:artistic2.0)))
7729
7730 (define-public r-rsamtools
7731 (package
7732 (name "r-rsamtools")
7733 (version "1.34.1")
7734 (source (origin
7735 (method url-fetch)
7736 (uri (bioconductor-uri "Rsamtools" version))
7737 (sha256
7738 (base32
7739 "02paq7klabdkaf1b8pmmbpmyqsj3yncnfsz62rgka6r4dpsilwk9"))))
7740 (properties
7741 `((upstream-name . "Rsamtools")))
7742 (build-system r-build-system)
7743 (arguments
7744 `(#:phases
7745 (modify-phases %standard-phases
7746 (add-after 'unpack 'use-system-zlib
7747 (lambda _
7748 (substitute* "DESCRIPTION"
7749 (("zlibbioc, ") ""))
7750 (substitute* "NAMESPACE"
7751 (("import\\(zlibbioc\\)") ""))
7752 #t)))))
7753 (inputs
7754 `(("zlib" ,zlib)))
7755 (propagated-inputs
7756 `(("r-biocgenerics" ,r-biocgenerics)
7757 ("r-biocparallel" ,r-biocparallel)
7758 ("r-biostrings" ,r-biostrings)
7759 ("r-bitops" ,r-bitops)
7760 ("r-genomeinfodb" ,r-genomeinfodb)
7761 ("r-genomicranges" ,r-genomicranges)
7762 ("r-iranges" ,r-iranges)
7763 ("r-s4vectors" ,r-s4vectors)
7764 ("r-xvector" ,r-xvector)))
7765 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
7766 (synopsis "Interface to samtools, bcftools, and tabix")
7767 (description
7768 "This package provides an interface to the @code{samtools},
7769 @code{bcftools}, and @code{tabix} utilities for manipulating SAM (Sequence
7770 Alignment / Map), FASTA, binary variant call (BCF) and compressed indexed
7771 tab-delimited (tabix) files.")
7772 (license license:expat)))
7773
7774 (define-public r-delayedarray
7775 (package
7776 (name "r-delayedarray")
7777 (version "0.8.0")
7778 (source (origin
7779 (method url-fetch)
7780 (uri (bioconductor-uri "DelayedArray" version))
7781 (sha256
7782 (base32
7783 "0cl5anqkjwvqx19snjhz0zj8cp8ibckiifl28h821h50g62nvb2f"))))
7784 (properties
7785 `((upstream-name . "DelayedArray")))
7786 (build-system r-build-system)
7787 (propagated-inputs
7788 `(("r-biocgenerics" ,r-biocgenerics)
7789 ("r-biocparallel" ,r-biocparallel)
7790 ("r-s4vectors" ,r-s4vectors)
7791 ("r-iranges" ,r-iranges)
7792 ("r-matrixstats" ,r-matrixstats)))
7793 (home-page "https://bioconductor.org/packages/DelayedArray")
7794 (synopsis "Delayed operations on array-like objects")
7795 (description
7796 "Wrapping an array-like object (typically an on-disk object) in a
7797 @code{DelayedArray} object allows one to perform common array operations on it
7798 without loading the object in memory. In order to reduce memory usage and
7799 optimize performance, operations on the object are either delayed or executed
7800 using a block processing mechanism. Note that this also works on in-memory
7801 array-like objects like @code{DataFrame} objects (typically with Rle columns),
7802 @code{Matrix} objects, and ordinary arrays and data frames.")
7803 (license license:artistic2.0)))
7804
7805 (define-public r-summarizedexperiment
7806 (package
7807 (name "r-summarizedexperiment")
7808 (version "1.12.0")
7809 (source (origin
7810 (method url-fetch)
7811 (uri (bioconductor-uri "SummarizedExperiment" version))
7812 (sha256
7813 (base32
7814 "07805572xhpj5mfwq6kw1ha21wgalqvhh4ydvafyl1bnf3r20vps"))))
7815 (properties
7816 `((upstream-name . "SummarizedExperiment")))
7817 (build-system r-build-system)
7818 (propagated-inputs
7819 `(("r-biobase" ,r-biobase)
7820 ("r-biocgenerics" ,r-biocgenerics)
7821 ("r-delayedarray" ,r-delayedarray)
7822 ("r-genomeinfodb" ,r-genomeinfodb)
7823 ("r-genomicranges" ,r-genomicranges)
7824 ("r-iranges" ,r-iranges)
7825 ("r-matrix" ,r-matrix)
7826 ("r-s4vectors" ,r-s4vectors)))
7827 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
7828 (synopsis "Container for representing genomic ranges by sample")
7829 (description
7830 "The SummarizedExperiment container contains one or more assays, each
7831 represented by a matrix-like object of numeric or other mode. The rows
7832 typically represent genomic ranges of interest and the columns represent
7833 samples.")
7834 (license license:artistic2.0)))
7835
7836 (define-public r-genomicalignments
7837 (package
7838 (name "r-genomicalignments")
7839 (version "1.18.1")
7840 (source (origin
7841 (method url-fetch)
7842 (uri (bioconductor-uri "GenomicAlignments" version))
7843 (sha256
7844 (base32
7845 "1maslav2r34wjyzh2nlwa862in1ir7i5xk57nw2nlfh5gqy112jd"))))
7846 (properties
7847 `((upstream-name . "GenomicAlignments")))
7848 (build-system r-build-system)
7849 (propagated-inputs
7850 `(("r-biocgenerics" ,r-biocgenerics)
7851 ("r-biocparallel" ,r-biocparallel)
7852 ("r-biostrings" ,r-biostrings)
7853 ("r-genomeinfodb" ,r-genomeinfodb)
7854 ("r-genomicranges" ,r-genomicranges)
7855 ("r-iranges" ,r-iranges)
7856 ("r-rsamtools" ,r-rsamtools)
7857 ("r-s4vectors" ,r-s4vectors)
7858 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7859 (home-page "https://bioconductor.org/packages/GenomicAlignments")
7860 (synopsis "Representation and manipulation of short genomic alignments")
7861 (description
7862 "This package provides efficient containers for storing and manipulating
7863 short genomic alignments (typically obtained by aligning short reads to a
7864 reference genome). This includes read counting, computing the coverage,
7865 junction detection, and working with the nucleotide content of the
7866 alignments.")
7867 (license license:artistic2.0)))
7868
7869 (define-public r-rtracklayer
7870 (package
7871 (name "r-rtracklayer")
7872 (version "1.42.2")
7873 (source (origin
7874 (method url-fetch)
7875 (uri (bioconductor-uri "rtracklayer" version))
7876 (sha256
7877 (base32
7878 "1c76g6h9lx2nm7dvb2zp9dmrpk3vanx3zaz6q9clggpj7yj5lmjd"))))
7879 (build-system r-build-system)
7880 (arguments
7881 `(#:phases
7882 (modify-phases %standard-phases
7883 (add-after 'unpack 'use-system-zlib
7884 (lambda _
7885 (substitute* "DESCRIPTION"
7886 ((" zlibbioc,") ""))
7887 (substitute* "NAMESPACE"
7888 (("import\\(zlibbioc\\)") ""))
7889 #t)))))
7890 (native-inputs
7891 `(("pkg-config" ,pkg-config)))
7892 (inputs
7893 `(("zlib" ,zlib)))
7894 (propagated-inputs
7895 `(("r-biocgenerics" ,r-biocgenerics)
7896 ("r-biostrings" ,r-biostrings)
7897 ("r-genomeinfodb" ,r-genomeinfodb)
7898 ("r-genomicalignments" ,r-genomicalignments)
7899 ("r-genomicranges" ,r-genomicranges)
7900 ("r-iranges" ,r-iranges)
7901 ("r-rcurl" ,r-rcurl)
7902 ("r-rsamtools" ,r-rsamtools)
7903 ("r-s4vectors" ,r-s4vectors)
7904 ("r-xml" ,r-xml)
7905 ("r-xvector" ,r-xvector)))
7906 (home-page "https://bioconductor.org/packages/rtracklayer")
7907 (synopsis "R interface to genome browsers and their annotation tracks")
7908 (description
7909 "rtracklayer is an extensible framework for interacting with multiple
7910 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7911 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7912 built-in). The user may export/import tracks to/from the supported browsers,
7913 as well as query and modify the browser state, such as the current viewport.")
7914 (license license:artistic2.0)))
7915
7916 (define-public r-genomicfeatures
7917 (package
7918 (name "r-genomicfeatures")
7919 (version "1.34.7")
7920 (source (origin
7921 (method url-fetch)
7922 (uri (bioconductor-uri "GenomicFeatures" version))
7923 (sha256
7924 (base32
7925 "100y8cx9xfglbn36k25y09y0qfwm0qpb4b01qhk367832rqz5dhz"))))
7926 (properties
7927 `((upstream-name . "GenomicFeatures")))
7928 (build-system r-build-system)
7929 (propagated-inputs
7930 `(("r-annotationdbi" ,r-annotationdbi)
7931 ("r-biobase" ,r-biobase)
7932 ("r-biocgenerics" ,r-biocgenerics)
7933 ("r-biomart" ,r-biomart)
7934 ("r-biostrings" ,r-biostrings)
7935 ("r-dbi" ,r-dbi)
7936 ("r-genomeinfodb" ,r-genomeinfodb)
7937 ("r-genomicranges" ,r-genomicranges)
7938 ("r-iranges" ,r-iranges)
7939 ("r-rcurl" ,r-rcurl)
7940 ("r-rsqlite" ,r-rsqlite)
7941 ("r-rtracklayer" ,r-rtracklayer)
7942 ("r-s4vectors" ,r-s4vectors)
7943 ("r-xvector" ,r-xvector)))
7944 (home-page "https://bioconductor.org/packages/GenomicFeatures")
7945 (synopsis "Tools for working with transcript centric annotations")
7946 (description
7947 "This package provides a set of tools and methods for making and
7948 manipulating transcript centric annotations. With these tools the user can
7949 easily download the genomic locations of the transcripts, exons and cds of a
7950 given organism, from either the UCSC Genome Browser or a BioMart
7951 database (more sources will be supported in the future). This information is
7952 then stored in a local database that keeps track of the relationship between
7953 transcripts, exons, cds and genes. Flexible methods are provided for
7954 extracting the desired features in a convenient format.")
7955 (license license:artistic2.0)))
7956
7957 (define-public r-go-db
7958 (package
7959 (name "r-go-db")
7960 (version "3.7.0")
7961 (source (origin
7962 (method url-fetch)
7963 (uri (string-append "https://www.bioconductor.org/packages/"
7964 "release/data/annotation/src/contrib/GO.db_"
7965 version ".tar.gz"))
7966 (sha256
7967 (base32
7968 "0i3wcf5h3n0dawzc1hy0kv74f06j80c47n4p3g3fmrcxlhi3jpa5"))))
7969 (properties
7970 `((upstream-name . "GO.db")))
7971 (build-system r-build-system)
7972 (propagated-inputs
7973 `(("r-annotationdbi" ,r-annotationdbi)))
7974 (home-page "https://bioconductor.org/packages/GO.db")
7975 (synopsis "Annotation maps describing the entire Gene Ontology")
7976 (description
7977 "The purpose of this GO.db annotation package is to provide detailed
7978 information about the latest version of the Gene Ontologies.")
7979 (license license:artistic2.0)))
7980
7981 (define-public r-topgo
7982 (package
7983 (name "r-topgo")
7984 (version "2.34.0")
7985 (source (origin
7986 (method url-fetch)
7987 (uri (bioconductor-uri "topGO" version))
7988 (sha256
7989 (base32
7990 "1j1jcd16j564kr6qz28140fzmnh9xasi84v1c1fi98sqv30zq9bh"))))
7991 (properties
7992 `((upstream-name . "topGO")))
7993 (build-system r-build-system)
7994 (propagated-inputs
7995 `(("r-annotationdbi" ,r-annotationdbi)
7996 ("r-dbi" ,r-dbi)
7997 ("r-biobase" ,r-biobase)
7998 ("r-biocgenerics" ,r-biocgenerics)
7999 ("r-go-db" ,r-go-db)
8000 ("r-graph" ,r-graph)
8001 ("r-lattice" ,r-lattice)
8002 ("r-matrixstats" ,r-matrixstats)
8003 ("r-sparsem" ,r-sparsem)))
8004 (home-page "https://bioconductor.org/packages/topGO")
8005 (synopsis "Enrichment analysis for gene ontology")
8006 (description
8007 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
8008 terms while accounting for the topology of the GO graph. Different test
8009 statistics and different methods for eliminating local similarities and
8010 dependencies between GO terms can be implemented and applied.")
8011 ;; Any version of the LGPL applies.
8012 (license license:lgpl2.1+)))
8013
8014 (define-public r-bsgenome
8015 (package
8016 (name "r-bsgenome")
8017 (version "1.50.0")
8018 (source (origin
8019 (method url-fetch)
8020 (uri (bioconductor-uri "BSgenome" version))
8021 (sha256
8022 (base32
8023 "07z4zxx0khrc86qqvc7vxww8df9fh6pyks9ajxkc9gdqr5nn79j7"))))
8024 (properties
8025 `((upstream-name . "BSgenome")))
8026 (build-system r-build-system)
8027 (propagated-inputs
8028 `(("r-biocgenerics" ,r-biocgenerics)
8029 ("r-biostrings" ,r-biostrings)
8030 ("r-genomeinfodb" ,r-genomeinfodb)
8031 ("r-genomicranges" ,r-genomicranges)
8032 ("r-iranges" ,r-iranges)
8033 ("r-rsamtools" ,r-rsamtools)
8034 ("r-rtracklayer" ,r-rtracklayer)
8035 ("r-s4vectors" ,r-s4vectors)
8036 ("r-xvector" ,r-xvector)))
8037 (home-page "https://bioconductor.org/packages/BSgenome")
8038 (synopsis "Infrastructure for Biostrings-based genome data packages")
8039 (description
8040 "This package provides infrastructure shared by all Biostrings-based
8041 genome data packages and support for efficient SNP representation.")
8042 (license license:artistic2.0)))
8043
8044 (define-public r-impute
8045 (package
8046 (name "r-impute")
8047 (version "1.56.0")
8048 (source (origin
8049 (method url-fetch)
8050 (uri (bioconductor-uri "impute" version))
8051 (sha256
8052 (base32
8053 "08z0pj1dz5iq967nwj67qyka7ir7m5an2ggv7bsrlz3apzfsla33"))))
8054 (inputs
8055 `(("gfortran" ,gfortran)))
8056 (build-system r-build-system)
8057 (home-page "https://bioconductor.org/packages/impute")
8058 (synopsis "Imputation for microarray data")
8059 (description
8060 "This package provides a function to impute missing gene expression
8061 microarray data, using nearest neighbor averaging.")
8062 (license license:gpl2+)))
8063
8064 (define-public r-seqpattern
8065 (package
8066 (name "r-seqpattern")
8067 (version "1.14.0")
8068 (source (origin
8069 (method url-fetch)
8070 (uri (bioconductor-uri "seqPattern" version))
8071 (sha256
8072 (base32
8073 "0di83qi83mrlw7i12khsq55d03hlazcywaa9m9pki1sfhafpq733"))))
8074 (properties
8075 `((upstream-name . "seqPattern")))
8076 (build-system r-build-system)
8077 (propagated-inputs
8078 `(("r-biostrings" ,r-biostrings)
8079 ("r-genomicranges" ,r-genomicranges)
8080 ("r-iranges" ,r-iranges)
8081 ("r-kernsmooth" ,r-kernsmooth)
8082 ("r-plotrix" ,r-plotrix)))
8083 (home-page "https://bioconductor.org/packages/seqPattern")
8084 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
8085 (description
8086 "This package provides tools to visualize oligonucleotide patterns and
8087 sequence motif occurrences across a large set of sequences centred at a common
8088 reference point and sorted by a user defined feature.")
8089 (license license:gpl3+)))
8090
8091 (define-public r-genomation
8092 (package
8093 (name "r-genomation")
8094 (version "1.14.0")
8095 (source (origin
8096 (method url-fetch)
8097 (uri (bioconductor-uri "genomation" version))
8098 (sha256
8099 (base32
8100 "0g0v4alfpqlinqinjnyzl3mrjnpbdx9ri34mcaiqbvbvg8ic8wvg"))))
8101 (build-system r-build-system)
8102 (propagated-inputs
8103 `(("r-biostrings" ,r-biostrings)
8104 ("r-bsgenome" ,r-bsgenome)
8105 ("r-data-table" ,r-data-table)
8106 ("r-genomeinfodb" ,r-genomeinfodb)
8107 ("r-genomicalignments" ,r-genomicalignments)
8108 ("r-genomicranges" ,r-genomicranges)
8109 ("r-ggplot2" ,r-ggplot2)
8110 ("r-gridbase" ,r-gridbase)
8111 ("r-impute" ,r-impute)
8112 ("r-iranges" ,r-iranges)
8113 ("r-matrixstats" ,r-matrixstats)
8114 ("r-plotrix" ,r-plotrix)
8115 ("r-plyr" ,r-plyr)
8116 ("r-rcpp" ,r-rcpp)
8117 ("r-readr" ,r-readr)
8118 ("r-reshape2" ,r-reshape2)
8119 ("r-rsamtools" ,r-rsamtools)
8120 ("r-rtracklayer" ,r-rtracklayer)
8121 ("r-runit" ,r-runit)
8122 ("r-s4vectors" ,r-s4vectors)
8123 ("r-seqpattern" ,r-seqpattern)))
8124 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8125 (synopsis "Summary, annotation and visualization of genomic data")
8126 (description
8127 "This package provides a package for summary and annotation of genomic
8128 intervals. Users can visualize and quantify genomic intervals over
8129 pre-defined functional regions, such as promoters, exons, introns, etc. The
8130 genomic intervals represent regions with a defined chromosome position, which
8131 may be associated with a score, such as aligned reads from HT-seq experiments,
8132 TF binding sites, methylation scores, etc. The package can use any tabular
8133 genomic feature data as long as it has minimal information on the locations of
8134 genomic intervals. In addition, it can use BAM or BigWig files as input.")
8135 (license license:artistic2.0)))
8136
8137 (define-public r-genomationdata
8138 (package
8139 (name "r-genomationdata")
8140 (version "1.14.0")
8141 (source (origin
8142 (method url-fetch)
8143 ;; We cannot use bioconductor-uri here because this tarball is
8144 ;; located under "data/annotation/" instead of "bioc/".
8145 (uri (string-append "https://bioconductor.org/packages/"
8146 "release/data/experiment/src/contrib/"
8147 "genomationData_" version ".tar.gz"))
8148 (sha256
8149 (base32
8150 "10xyb8akjrhmak2i0mnv1agny2ipy364q9nlibyplpzc7vdb6bw7"))))
8151 (build-system r-build-system)
8152 ;; As this package provides little more than large data files, it doesn't
8153 ;; make sense to build substitutes.
8154 (arguments `(#:substitutable? #f))
8155 (native-inputs
8156 `(("r-knitr" ,r-knitr)))
8157 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8158 (synopsis "Experimental data for use with the genomation package")
8159 (description
8160 "This package contains experimental genetic data for use with the
8161 genomation package. Included are Chip Seq, Methylation and Cage data,
8162 downloaded from Encode.")
8163 (license license:gpl3+)))
8164
8165 (define-public r-seqlogo
8166 (package
8167 (name "r-seqlogo")
8168 (version "1.48.0")
8169 (source
8170 (origin
8171 (method url-fetch)
8172 (uri (bioconductor-uri "seqLogo" version))
8173 (sha256
8174 (base32
8175 "022vr9ydwcivs7rw7kwj73gfk5gc7ckwa1q66vhd4kw9ylh70v68"))))
8176 (properties `((upstream-name . "seqLogo")))
8177 (build-system r-build-system)
8178 (home-page "https://bioconductor.org/packages/seqLogo")
8179 (synopsis "Sequence logos for DNA sequence alignments")
8180 (description
8181 "seqLogo takes the position weight matrix of a DNA sequence motif and
8182 plots the corresponding sequence logo as introduced by Schneider and
8183 Stephens (1990).")
8184 (license license:lgpl2.0+)))
8185
8186 (define-public r-motifrg
8187 (package
8188 (name "r-motifrg")
8189 (version "1.26.0")
8190 (source
8191 (origin
8192 (method url-fetch)
8193 (uri (bioconductor-uri "motifRG" version))
8194 (sha256
8195 (base32
8196 "1wxww6i0jgyapqclcwy0zzf9kqjvrvylr89z7yhg1izi7jnw2fka"))))
8197 (properties `((upstream-name . "motifRG")))
8198 (build-system r-build-system)
8199 (propagated-inputs
8200 `(("r-biostrings" ,r-biostrings)
8201 ("r-bsgenome" ,r-bsgenome)
8202 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8203 ("r-iranges" ,r-iranges)
8204 ("r-seqlogo" ,r-seqlogo)
8205 ("r-xvector" ,r-xvector)))
8206 (home-page "https://bioconductor.org/packages/motifRG")
8207 (synopsis "Discover motifs in high throughput sequencing data")
8208 (description
8209 "This package provides tools for discriminative motif discovery in high
8210 throughput genetic sequencing data sets using regression methods.")
8211 (license license:artistic2.0)))
8212
8213 (define-public r-qtl
8214 (package
8215 (name "r-qtl")
8216 (version "1.44-9")
8217 (source
8218 (origin
8219 (method url-fetch)
8220 (uri (string-append "mirror://cran/src/contrib/qtl_"
8221 version ".tar.gz"))
8222 (sha256
8223 (base32
8224 "03lmvydln8b7666b6w46qbryhf83vsd11d4y2v95rfgvqgq66l1i"))))
8225 (build-system r-build-system)
8226 (home-page "http://rqtl.org/")
8227 (synopsis "R package for analyzing QTL experiments in genetics")
8228 (description "R/qtl is an extension library for the R statistics
8229 system. It is used to analyze experimental crosses for identifying
8230 genes contributing to variation in quantitative traits (so-called
8231 quantitative trait loci, QTLs).
8232
8233 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
8234 identify genotyping errors, and to perform single-QTL and two-QTL,
8235 two-dimensional genome scans.")
8236 (license license:gpl3)))
8237
8238 (define-public r-zlibbioc
8239 (package
8240 (name "r-zlibbioc")
8241 (version "1.28.0")
8242 (source (origin
8243 (method url-fetch)
8244 (uri (bioconductor-uri "zlibbioc" version))
8245 (sha256
8246 (base32
8247 "0bjvzy24kab7ank02cc1qk2ikcz4dllgf66wpsdl0d3zp4gn3l2h"))))
8248 (properties
8249 `((upstream-name . "zlibbioc")))
8250 (build-system r-build-system)
8251 (home-page "https://bioconductor.org/packages/zlibbioc")
8252 (synopsis "Provider for zlib-1.2.5 to R packages")
8253 (description "This package uses the source code of zlib-1.2.5 to create
8254 libraries for systems that do not have these available via other means.")
8255 (license license:artistic2.0)))
8256
8257 (define-public r-r4rna
8258 (package
8259 (name "r-r4rna")
8260 (version "0.1.4")
8261 (source
8262 (origin
8263 (method url-fetch)
8264 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8265 version ".tar.gz"))
8266 (sha256
8267 (base32
8268 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8269 (build-system r-build-system)
8270 (propagated-inputs
8271 `(("r-optparse" ,r-optparse)
8272 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8273 (home-page "http://www.e-rna.org/r-chie/index.cgi")
8274 (synopsis "Analysis framework for RNA secondary structure")
8275 (description
8276 "The R4RNA package aims to be a general framework for the analysis of RNA
8277 secondary structure and comparative analysis in R.")
8278 (license license:gpl3+)))
8279
8280 (define-public r-rhtslib
8281 (package
8282 (name "r-rhtslib")
8283 (version "1.14.1")
8284 (source
8285 (origin
8286 (method url-fetch)
8287 (uri (bioconductor-uri "Rhtslib" version))
8288 (sha256
8289 (base32
8290 "13fv78sk5g0gqfl3ks3rps3zc1k66a4lzxvgn36r7ix43yxk7hnr"))))
8291 (properties `((upstream-name . "Rhtslib")))
8292 (build-system r-build-system)
8293 (propagated-inputs
8294 `(("r-zlibbioc" ,r-zlibbioc)))
8295 (inputs
8296 `(("zlib" ,zlib)))
8297 (native-inputs
8298 `(("pkg-config" ,pkg-config)))
8299 (home-page "https://github.com/nhayden/Rhtslib")
8300 (synopsis "High-throughput sequencing library as an R package")
8301 (description
8302 "This package provides the HTSlib C library for high-throughput
8303 nucleotide sequence analysis. The package is primarily useful to developers
8304 of other R packages who wish to make use of HTSlib.")
8305 (license license:lgpl2.0+)))
8306
8307 (define-public r-bamsignals
8308 (package
8309 (name "r-bamsignals")
8310 (version "1.14.0")
8311 (source
8312 (origin
8313 (method url-fetch)
8314 (uri (bioconductor-uri "bamsignals" version))
8315 (sha256
8316 (base32
8317 "19irfx1y1izf903vq59wxsdbf88g143zy9l89gxqawh7jfxds8w8"))))
8318 (build-system r-build-system)
8319 (propagated-inputs
8320 `(("r-biocgenerics" ,r-biocgenerics)
8321 ("r-genomicranges" ,r-genomicranges)
8322 ("r-iranges" ,r-iranges)
8323 ("r-rcpp" ,r-rcpp)
8324 ("r-rhtslib" ,r-rhtslib)
8325 ("r-zlibbioc" ,r-zlibbioc)))
8326 (inputs
8327 `(("zlib" ,zlib)))
8328 (home-page "https://bioconductor.org/packages/bamsignals")
8329 (synopsis "Extract read count signals from bam files")
8330 (description
8331 "This package allows to efficiently obtain count vectors from indexed bam
8332 files. It counts the number of nucleotide sequence reads in given genomic
8333 ranges and it computes reads profiles and coverage profiles. It also handles
8334 paired-end data.")
8335 (license license:gpl2+)))
8336
8337 (define-public r-rcas
8338 (package
8339 (name "r-rcas")
8340 (version "1.8.0")
8341 (source (origin
8342 (method url-fetch)
8343 (uri (bioconductor-uri "RCAS" version))
8344 (sha256
8345 (base32
8346 "0ss5hcg2m7gjji6dd23zxa5bd5a7knwcnada4qs5q2l4clgk39ad"))))
8347 (build-system r-build-system)
8348 (propagated-inputs
8349 `(("r-annotationdbi" ,r-annotationdbi)
8350 ("r-biocgenerics" ,r-biocgenerics)
8351 ("r-biomart" ,r-biomart)
8352 ("r-biostrings" ,r-biostrings)
8353 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8354 ("r-cowplot" ,r-cowplot)
8355 ("r-data-table" ,r-data-table)
8356 ("r-dbi" ,r-dbi)
8357 ("r-dt" ,r-dt)
8358 ("r-genomation" ,r-genomation)
8359 ("r-genomeinfodb" ,r-genomeinfodb)
8360 ("r-genomicfeatures" ,r-genomicfeatures)
8361 ("r-genomicranges" ,r-genomicranges)
8362 ("r-ggplot2" ,r-ggplot2)
8363 ("r-ggseqlogo" ,r-ggseqlogo)
8364 ("r-knitr" ,r-knitr)
8365 ("r-motifrg" ,r-motifrg)
8366 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
8367 ("r-pbapply" ,r-pbapply)
8368 ("r-pheatmap" ,r-pheatmap)
8369 ("r-plotly" ,r-plotly)
8370 ("r-plotrix" ,r-plotrix)
8371 ("r-proxy" ,r-proxy)
8372 ("r-rsqlite" ,r-rsqlite)
8373 ("r-rtracklayer" ,r-rtracklayer)
8374 ("r-rmarkdown" ,r-rmarkdown)
8375 ("r-s4vectors" ,r-s4vectors)
8376 ("r-topgo" ,r-topgo)))
8377 (synopsis "RNA-centric annotation system")
8378 (description
8379 "RCAS aims to be a standalone RNA-centric annotation system that provides
8380 intuitive reports and publication-ready graphics. This package provides the R
8381 library implementing most of the pipeline's features.")
8382 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8383 (license license:artistic2.0)))
8384
8385 (define-public rcas-web
8386 (package
8387 (name "rcas-web")
8388 (version "0.1.0")
8389 (source
8390 (origin
8391 (method url-fetch)
8392 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8393 "releases/download/v" version
8394 "/rcas-web-" version ".tar.gz"))
8395 (sha256
8396 (base32
8397 "0wq951aj45gqki1bickg876i993lmawkp8x24agg264br5x716db"))))
8398 (build-system gnu-build-system)
8399 (arguments
8400 `(#:phases
8401 (modify-phases %standard-phases
8402 (add-after 'install 'wrap-executable
8403 (lambda* (#:key inputs outputs #:allow-other-keys)
8404 (let* ((out (assoc-ref outputs "out"))
8405 (json (assoc-ref inputs "guile-json"))
8406 (redis (assoc-ref inputs "guile-redis"))
8407 (path (string-append
8408 json "/share/guile/site/2.2:"
8409 redis "/share/guile/site/2.2")))
8410 (wrap-program (string-append out "/bin/rcas-web")
8411 `("GUILE_LOAD_PATH" ":" = (,path))
8412 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8413 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8414 #t)))))
8415 (inputs
8416 `(("r-minimal" ,r-minimal)
8417 ("r-rcas" ,r-rcas)
8418 ("guile-next" ,guile-2.2)
8419 ("guile-json" ,guile-json)
8420 ("guile-redis" ,guile-redis)))
8421 (native-inputs
8422 `(("pkg-config" ,pkg-config)))
8423 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8424 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8425 (description "This package provides a simple web interface for the
8426 @dfn{RNA-centric annotation system} (RCAS).")
8427 (license license:agpl3+)))
8428
8429 (define-public r-mutationalpatterns
8430 (package
8431 (name "r-mutationalpatterns")
8432 (version "1.8.0")
8433 (source
8434 (origin
8435 (method url-fetch)
8436 (uri (bioconductor-uri "MutationalPatterns" version))
8437 (sha256
8438 (base32
8439 "0w9lg1zs106h6rqvy8mhikq6q6q9syw6c1prcxr38ssh85rcih12"))))
8440 (build-system r-build-system)
8441 (propagated-inputs
8442 `(("r-biocgenerics" ,r-biocgenerics)
8443 ("r-biostrings" ,r-biostrings)
8444 ;; These two packages are suggested packages
8445 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8446 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8447 ("r-genomicranges" ,r-genomicranges)
8448 ("r-genomeinfodb" ,r-genomeinfodb)
8449 ("r-ggplot2" ,r-ggplot2)
8450 ("r-iranges" ,r-iranges)
8451 ("r-nmf" ,r-nmf)
8452 ("r-plyr" ,r-plyr)
8453 ("r-pracma" ,r-pracma)
8454 ("r-reshape2" ,r-reshape2)
8455 ("r-cowplot" ,r-cowplot)
8456 ("r-ggdendro" ,r-ggdendro)
8457 ("r-s4vectors" ,r-s4vectors)
8458 ("r-summarizedexperiment" ,r-summarizedexperiment)
8459 ("r-variantannotation" ,r-variantannotation)))
8460 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
8461 (synopsis "Extract and visualize mutational patterns in genomic data")
8462 (description "This package provides an extensive toolset for the
8463 characterization and visualization of a wide range of mutational patterns
8464 in SNV base substitution data.")
8465 (license license:expat)))
8466
8467 (define-public r-chipkernels
8468 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8469 (revision "1"))
8470 (package
8471 (name "r-chipkernels")
8472 (version (string-append "1.1-" revision "." (string-take commit 9)))
8473 (source
8474 (origin
8475 (method git-fetch)
8476 (uri (git-reference
8477 (url "https://github.com/ManuSetty/ChIPKernels.git")
8478 (commit commit)))
8479 (file-name (string-append name "-" version))
8480 (sha256
8481 (base32
8482 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8483 (build-system r-build-system)
8484 (propagated-inputs
8485 `(("r-iranges" ,r-iranges)
8486 ("r-xvector" ,r-xvector)
8487 ("r-biostrings" ,r-biostrings)
8488 ("r-bsgenome" ,r-bsgenome)
8489 ("r-gtools" ,r-gtools)
8490 ("r-genomicranges" ,r-genomicranges)
8491 ("r-sfsmisc" ,r-sfsmisc)
8492 ("r-kernlab" ,r-kernlab)
8493 ("r-s4vectors" ,r-s4vectors)
8494 ("r-biocgenerics" ,r-biocgenerics)))
8495 (home-page "https://github.com/ManuSetty/ChIPKernels")
8496 (synopsis "Build string kernels for DNA Sequence analysis")
8497 (description "ChIPKernels is an R package for building different string
8498 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8499 must be built and this dictionary can be used for determining kernels for DNA
8500 Sequences.")
8501 (license license:gpl2+))))
8502
8503 (define-public r-seqgl
8504 (package
8505 (name "r-seqgl")
8506 (version "1.1.4")
8507 (source
8508 (origin
8509 (method git-fetch)
8510 (uri (git-reference
8511 (url "https://github.com/ManuSetty/SeqGL.git")
8512 (commit version)))
8513 (file-name (git-file-name name version))
8514 (sha256
8515 (base32
8516 "1r6ywvhxl3ffv48lgj7sbd582mcc6dha3ksgc2qjlvjrnkbj3799"))))
8517 (build-system r-build-system)
8518 (propagated-inputs
8519 `(("r-biostrings" ,r-biostrings)
8520 ("r-chipkernels" ,r-chipkernels)
8521 ("r-genomicranges" ,r-genomicranges)
8522 ("r-spams" ,r-spams)
8523 ("r-wgcna" ,r-wgcna)
8524 ("r-fastcluster" ,r-fastcluster)))
8525 (home-page "https://github.com/ManuSetty/SeqGL")
8526 (synopsis "Group lasso for Dnase/ChIP-seq data")
8527 (description "SeqGL is a group lasso based algorithm to extract
8528 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8529 This package presents a method which uses group lasso to discriminate between
8530 bound and non bound genomic regions to accurately identify transcription
8531 factors bound at the specific regions.")
8532 (license license:gpl2+)))
8533
8534 (define-public r-tximport
8535 (package
8536 (name "r-tximport")
8537 (version "1.10.1")
8538 (source (origin
8539 (method url-fetch)
8540 (uri (bioconductor-uri "tximport" version))
8541 (sha256
8542 (base32
8543 "16wp09dm0cpb4mc00nmglfb8ica7qb4a55vm8ajgzyagbpfdd44l"))))
8544 (build-system r-build-system)
8545 (home-page "https://bioconductor.org/packages/tximport")
8546 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8547 (description
8548 "This package provides tools to import transcript-level abundance,
8549 estimated counts and transcript lengths, and to summarize them into matrices
8550 for use with downstream gene-level analysis packages. Average transcript
8551 length, weighted by sample-specific transcript abundance estimates, is
8552 provided as a matrix which can be used as an offset for different expression
8553 of gene-level counts.")
8554 (license license:gpl2+)))
8555
8556 (define-public r-rhdf5
8557 (package
8558 (name "r-rhdf5")
8559 (version "2.26.2")
8560 (source (origin
8561 (method url-fetch)
8562 (uri (bioconductor-uri "rhdf5" version))
8563 (sha256
8564 (base32
8565 "10zkw3k13wmvyif417gplyf6rwp2gpkjasw97lhwv2f9i32rry9l"))))
8566 (build-system r-build-system)
8567 (propagated-inputs
8568 `(("r-rhdf5lib" ,r-rhdf5lib)))
8569 (inputs
8570 `(("zlib" ,zlib)))
8571 (home-page "https://bioconductor.org/packages/rhdf5")
8572 (synopsis "HDF5 interface to R")
8573 (description
8574 "This R/Bioconductor package provides an interface between HDF5 and R.
8575 HDF5's main features are the ability to store and access very large and/or
8576 complex datasets and a wide variety of metadata on mass storage (disk) through
8577 a completely portable file format. The rhdf5 package is thus suited for the
8578 exchange of large and/or complex datasets between R and other software
8579 package, and for letting R applications work on datasets that are larger than
8580 the available RAM.")
8581 (license license:artistic2.0)))
8582
8583 (define-public r-annotationfilter
8584 (package
8585 (name "r-annotationfilter")
8586 (version "1.6.0")
8587 (source (origin
8588 (method url-fetch)
8589 (uri (bioconductor-uri "AnnotationFilter" version))
8590 (sha256
8591 (base32
8592 "0wrr10cxjzmxx46vjzq2nsf6xlqz1sqwx4xm0sk3d77ff8wmph4x"))))
8593 (properties
8594 `((upstream-name . "AnnotationFilter")))
8595 (build-system r-build-system)
8596 (propagated-inputs
8597 `(("r-genomicranges" ,r-genomicranges)
8598 ("r-lazyeval" ,r-lazyeval)))
8599 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8600 (synopsis "Facilities for filtering Bioconductor annotation resources")
8601 (description
8602 "This package provides classes and other infrastructure to implement
8603 filters for manipulating Bioconductor annotation resources. The filters are
8604 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8605 (license license:artistic2.0)))
8606
8607 (define-public emboss
8608 (package
8609 (name "emboss")
8610 (version "6.5.7")
8611 (source (origin
8612 (method url-fetch)
8613 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8614 (version-major+minor version) ".0/"
8615 "EMBOSS-" version ".tar.gz"))
8616 (sha256
8617 (base32
8618 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8619 (build-system gnu-build-system)
8620 (arguments
8621 `(#:configure-flags
8622 (list (string-append "--with-hpdf="
8623 (assoc-ref %build-inputs "libharu")))
8624 #:phases
8625 (modify-phases %standard-phases
8626 (add-after 'unpack 'fix-checks
8627 (lambda _
8628 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8629 ;; and zlib, but assume that they are all found at the same
8630 ;; prefix.
8631 (substitute* "configure.in"
8632 (("CHECK_PNGDRIVER")
8633 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8634 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8635 AM_CONDITIONAL(AMPNG, true)"))
8636 #t))
8637 (add-after 'fix-checks 'disable-update-check
8638 (lambda _
8639 ;; At build time there is no connection to the Internet, so
8640 ;; looking for updates will not work.
8641 (substitute* "Makefile.am"
8642 (("\\$\\(bindir\\)/embossupdate") ""))
8643 #t))
8644 (add-after 'disable-update-check 'autogen
8645 (lambda _ (invoke "autoreconf" "-vif") #t)))))
8646 (inputs
8647 `(("perl" ,perl)
8648 ("libpng" ,libpng)
8649 ("gd" ,gd)
8650 ("libx11" ,libx11)
8651 ("libharu" ,libharu)
8652 ("zlib" ,zlib)))
8653 (native-inputs
8654 `(("autoconf" ,autoconf)
8655 ("automake" ,automake)
8656 ("libtool" ,libtool)
8657 ("pkg-config" ,pkg-config)))
8658 (home-page "http://emboss.sourceforge.net")
8659 (synopsis "Molecular biology analysis suite")
8660 (description "EMBOSS is the \"European Molecular Biology Open Software
8661 Suite\". EMBOSS is an analysis package specially developed for the needs of
8662 the molecular biology (e.g. EMBnet) user community. The software
8663 automatically copes with data in a variety of formats and even allows
8664 transparent retrieval of sequence data from the web. It also provides a
8665 number of libraries for the development of software in the field of molecular
8666 biology. EMBOSS also integrates a range of currently available packages and
8667 tools for sequence analysis into a seamless whole.")
8668 (license license:gpl2+)))
8669
8670 (define-public bits
8671 (let ((revision "1")
8672 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8673 (package
8674 (name "bits")
8675 ;; The version is 2.13.0 even though no release archives have been
8676 ;; published as yet.
8677 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8678 (source (origin
8679 (method git-fetch)
8680 (uri (git-reference
8681 (url "https://github.com/arq5x/bits.git")
8682 (commit commit)))
8683 (file-name (string-append name "-" version "-checkout"))
8684 (sha256
8685 (base32
8686 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8687 (build-system gnu-build-system)
8688 (arguments
8689 `(#:tests? #f ;no tests included
8690 #:phases
8691 (modify-phases %standard-phases
8692 (delete 'configure)
8693 (add-after 'unpack 'remove-cuda
8694 (lambda _
8695 (substitute* "Makefile"
8696 ((".*_cuda") "")
8697 (("(bits_test_intersections) \\\\" _ match) match))
8698 #t))
8699 (replace 'install
8700 (lambda* (#:key outputs #:allow-other-keys)
8701 (copy-recursively
8702 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8703 #t)))))
8704 (inputs
8705 `(("gsl" ,gsl)
8706 ("zlib" ,zlib)))
8707 (home-page "https://github.com/arq5x/bits")
8708 (synopsis "Implementation of binary interval search algorithm")
8709 (description "This package provides an implementation of the
8710 BITS (Binary Interval Search) algorithm, an approach to interval set
8711 intersection. It is especially suited for the comparison of diverse genomic
8712 datasets and the exploration of large datasets of genome
8713 intervals (e.g. genes, sequence alignments).")
8714 (license license:gpl2))))
8715
8716 (define-public piranha
8717 ;; There is no release tarball for the latest version. The latest commit is
8718 ;; older than one year at the time of this writing.
8719 (let ((revision "1")
8720 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8721 (package
8722 (name "piranha")
8723 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8724 (source (origin
8725 (method git-fetch)
8726 (uri (git-reference
8727 (url "https://github.com/smithlabcode/piranha.git")
8728 (commit commit)))
8729 (file-name (git-file-name name version))
8730 (sha256
8731 (base32
8732 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
8733 (build-system gnu-build-system)
8734 (arguments
8735 `(#:test-target "test"
8736 #:phases
8737 (modify-phases %standard-phases
8738 (add-after 'unpack 'copy-smithlab-cpp
8739 (lambda* (#:key inputs #:allow-other-keys)
8740 (for-each (lambda (file)
8741 (install-file file "./src/smithlab_cpp/"))
8742 (find-files (assoc-ref inputs "smithlab-cpp")))
8743 #t))
8744 (add-after 'install 'install-to-store
8745 (lambda* (#:key outputs #:allow-other-keys)
8746 (let* ((out (assoc-ref outputs "out"))
8747 (bin (string-append out "/bin")))
8748 (for-each (lambda (file)
8749 (install-file file bin))
8750 (find-files "bin" ".*")))
8751 #t)))
8752 #:configure-flags
8753 (list (string-append "--with-bam_tools_headers="
8754 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
8755 (string-append "--with-bam_tools_library="
8756 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
8757 (inputs
8758 `(("bamtools" ,bamtools)
8759 ("samtools" ,samtools-0.1)
8760 ("gsl" ,gsl)
8761 ("smithlab-cpp"
8762 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
8763 (origin
8764 (method git-fetch)
8765 (uri (git-reference
8766 (url "https://github.com/smithlabcode/smithlab_cpp.git")
8767 (commit commit)))
8768 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
8769 (sha256
8770 (base32
8771 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
8772 (native-inputs
8773 `(("python" ,python-2)))
8774 (home-page "https://github.com/smithlabcode/piranha")
8775 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
8776 (description
8777 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
8778 RIP-seq experiments. It takes input in BED or BAM format and identifies
8779 regions of statistically significant read enrichment. Additional covariates
8780 may optionally be provided to further inform the peak-calling process.")
8781 (license license:gpl3+))))
8782
8783 (define-public pepr
8784 (package
8785 (name "pepr")
8786 (version "1.0.9")
8787 (source (origin
8788 (method url-fetch)
8789 (uri (pypi-uri "PePr" version))
8790 (sha256
8791 (base32
8792 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
8793 (build-system python-build-system)
8794 (arguments
8795 `(#:python ,python-2 ; python2 only
8796 #:tests? #f)) ; no tests included
8797 (propagated-inputs
8798 `(("python2-numpy" ,python2-numpy)
8799 ("python2-scipy" ,python2-scipy)
8800 ("python2-pysam" ,python2-pysam)))
8801 (home-page "https://github.com/shawnzhangyx/PePr")
8802 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
8803 (description
8804 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
8805 that is primarily designed for data with biological replicates. It uses a
8806 negative binomial distribution to model the read counts among the samples in
8807 the same group, and look for consistent differences between ChIP and control
8808 group or two ChIP groups run under different conditions.")
8809 (license license:gpl3+)))
8810
8811 (define-public filevercmp
8812 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
8813 (package
8814 (name "filevercmp")
8815 (version (string-append "0-1." (string-take commit 7)))
8816 (source (origin
8817 (method git-fetch)
8818 (uri (git-reference
8819 (url "https://github.com/ekg/filevercmp.git")
8820 (commit commit)))
8821 (file-name (git-file-name name commit))
8822 (sha256
8823 (base32
8824 "1j9vxsy0y050v59h0q1d6501fcw1kjvj0d18l1xk2zyg0jzj247c"))))
8825 (build-system gnu-build-system)
8826 (arguments
8827 `(#:tests? #f ; There are no tests to run.
8828 #:phases
8829 (modify-phases %standard-phases
8830 (delete 'configure) ; There is no configure phase.
8831 (replace 'install
8832 (lambda* (#:key outputs #:allow-other-keys)
8833 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
8834 (install-file "filevercmp" bin)
8835 #t))))))
8836 (home-page "https://github.com/ekg/filevercmp")
8837 (synopsis "This program compares version strings")
8838 (description "This program compares version strings. It intends to be a
8839 replacement for strverscmp.")
8840 (license license:gpl3+))))
8841
8842 (define-public multiqc
8843 (package
8844 (name "multiqc")
8845 (version "1.5")
8846 (source
8847 (origin
8848 (method url-fetch)
8849 (uri (pypi-uri "multiqc" version))
8850 (sha256
8851 (base32
8852 "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
8853 (build-system python-build-system)
8854 (propagated-inputs
8855 `(("python-jinja2" ,python-jinja2)
8856 ("python-simplejson" ,python-simplejson)
8857 ("python-pyyaml" ,python-pyyaml)
8858 ("python-click" ,python-click)
8859 ("python-spectra" ,python-spectra)
8860 ("python-requests" ,python-requests)
8861 ("python-markdown" ,python-markdown)
8862 ("python-lzstring" ,python-lzstring)
8863 ("python-matplotlib" ,python-matplotlib)
8864 ("python-numpy" ,python-numpy)
8865 ;; MultQC checks for the presence of nose at runtime.
8866 ("python-nose" ,python-nose)))
8867 (arguments
8868 `(#:phases
8869 (modify-phases %standard-phases
8870 (add-after 'unpack 'relax-requirements
8871 (lambda _
8872 (substitute* "setup.py"
8873 ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
8874 ;; than the one in Guix, but should work fine with 2.2.2.
8875 ;; See <https://github.com/ewels/MultiQC/issues/725> and
8876 ;; <https://github.com/ewels/MultiQC/issues/732> for details.
8877 (("['\"]matplotlib.*?['\"]")
8878 "'matplotlib'"))
8879 #t)))))
8880 (home-page "http://multiqc.info")
8881 (synopsis "Aggregate bioinformatics analysis reports")
8882 (description
8883 "MultiQC is a tool to aggregate bioinformatics results across many
8884 samples into a single report. It contains modules for a large number of
8885 common bioinformatics tools.")
8886 (license license:gpl3+)))
8887
8888 (define-public r-chipseq
8889 (package
8890 (name "r-chipseq")
8891 (version "1.32.0")
8892 (source
8893 (origin
8894 (method url-fetch)
8895 (uri (bioconductor-uri "chipseq" version))
8896 (sha256
8897 (base32
8898 "1pp1rm5fs3hlar5x4dl3a3b4gara7qwf81dbvka6r1n78hrf9x1b"))))
8899 (build-system r-build-system)
8900 (propagated-inputs
8901 `(("r-biocgenerics" ,r-biocgenerics)
8902 ("r-genomicranges" ,r-genomicranges)
8903 ("r-iranges" ,r-iranges)
8904 ("r-lattice" ,r-lattice)
8905 ("r-s4vectors" ,r-s4vectors)
8906 ("r-shortread" ,r-shortread)))
8907 (home-page "https://bioconductor.org/packages/chipseq")
8908 (synopsis "Package for analyzing ChIPseq data")
8909 (description
8910 "This package provides tools for processing short read data from ChIPseq
8911 experiments.")
8912 (license license:artistic2.0)))
8913
8914 (define-public r-copyhelper
8915 (package
8916 (name "r-copyhelper")
8917 (version "1.6.0")
8918 (source
8919 (origin
8920 (method url-fetch)
8921 (uri (string-append "https://bioconductor.org/packages/release/"
8922 "data/experiment/src/contrib/CopyhelpeR_"
8923 version ".tar.gz"))
8924 (sha256
8925 (base32
8926 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
8927 (properties `((upstream-name . "CopyhelpeR")))
8928 (build-system r-build-system)
8929 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
8930 (synopsis "Helper files for CopywriteR")
8931 (description
8932 "This package contains the helper files that are required to run the
8933 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
8934 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
8935 mm10. In addition, it contains a blacklist filter to remove regions that
8936 display copy number variation. Files are stored as GRanges objects from the
8937 GenomicRanges Bioconductor package.")
8938 (license license:gpl2)))
8939
8940 (define-public r-copywriter
8941 (package
8942 (name "r-copywriter")
8943 (version "2.14.1")
8944 (source
8945 (origin
8946 (method url-fetch)
8947 (uri (bioconductor-uri "CopywriteR" version))
8948 (sha256
8949 (base32
8950 "1hbiw0m9hmx4na9v502pxf8y5wvxzr68r4d3fqr2755gxx86qck6"))))
8951 (properties `((upstream-name . "CopywriteR")))
8952 (build-system r-build-system)
8953 (propagated-inputs
8954 `(("r-biocparallel" ,r-biocparallel)
8955 ("r-chipseq" ,r-chipseq)
8956 ("r-copyhelper" ,r-copyhelper)
8957 ("r-data-table" ,r-data-table)
8958 ("r-dnacopy" ,r-dnacopy)
8959 ("r-futile-logger" ,r-futile-logger)
8960 ("r-genomeinfodb" ,r-genomeinfodb)
8961 ("r-genomicalignments" ,r-genomicalignments)
8962 ("r-genomicranges" ,r-genomicranges)
8963 ("r-gtools" ,r-gtools)
8964 ("r-iranges" ,r-iranges)
8965 ("r-matrixstats" ,r-matrixstats)
8966 ("r-rsamtools" ,r-rsamtools)
8967 ("r-s4vectors" ,r-s4vectors)))
8968 (home-page "https://github.com/PeeperLab/CopywriteR")
8969 (synopsis "Copy number information from targeted sequencing")
8970 (description
8971 "CopywriteR extracts DNA copy number information from targeted sequencing
8972 by utilizing off-target reads. It allows for extracting uniformly distributed
8973 copy number information, can be used without reference, and can be applied to
8974 sequencing data obtained from various techniques including chromatin
8975 immunoprecipitation and target enrichment on small gene panels. Thereby,
8976 CopywriteR constitutes a widely applicable alternative to available copy
8977 number detection tools.")
8978 (license license:gpl2)))
8979
8980 (define-public r-methylkit
8981 (package
8982 (name "r-methylkit")
8983 (version "1.8.1")
8984 (source (origin
8985 (method url-fetch)
8986 (uri (bioconductor-uri "methylKit" version))
8987 (sha256
8988 (base32
8989 "1zcfwy7i10aqgnf7r0c41hakb5aai3s3n9y8pc6a98vimz51ly2z"))))
8990 (properties `((upstream-name . "methylKit")))
8991 (build-system r-build-system)
8992 (propagated-inputs
8993 `(("r-data-table" ,r-data-table)
8994 ("r-emdbook" ,r-emdbook)
8995 ("r-fastseg" ,r-fastseg)
8996 ("r-genomeinfodb" ,r-genomeinfodb)
8997 ("r-genomicranges" ,r-genomicranges)
8998 ("r-gtools" ,r-gtools)
8999 ("r-iranges" ,r-iranges)
9000 ("r-kernsmooth" ,r-kernsmooth)
9001 ("r-limma" ,r-limma)
9002 ("r-mclust" ,r-mclust)
9003 ("r-qvalue" ,r-qvalue)
9004 ("r-r-utils" ,r-r-utils)
9005 ("r-rcpp" ,r-rcpp)
9006 ("r-rhtslib" ,r-rhtslib)
9007 ("r-rsamtools" ,r-rsamtools)
9008 ("r-rtracklayer" ,r-rtracklayer)
9009 ("r-s4vectors" ,r-s4vectors)
9010 ("r-zlibbioc" ,r-zlibbioc)))
9011 (inputs
9012 `(("zlib" ,zlib)))
9013 (home-page "https://github.com/al2na/methylKit")
9014 (synopsis
9015 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9016 (description
9017 "MethylKit is an R package for DNA methylation analysis and annotation
9018 from high-throughput bisulfite sequencing. The package is designed to deal
9019 with sequencing data from @dfn{Reduced representation bisulfite
9020 sequencing} (RRBS) and its variants, but also target-capture methods and whole
9021 genome bisulfite sequencing. It also has functions to analyze base-pair
9022 resolution 5hmC data from experimental protocols such as oxBS-Seq and
9023 TAB-Seq.")
9024 (license license:artistic2.0)))
9025
9026 (define-public r-sva
9027 (package
9028 (name "r-sva")
9029 (version "3.30.1")
9030 (source
9031 (origin
9032 (method url-fetch)
9033 (uri (bioconductor-uri "sva" version))
9034 (sha256
9035 (base32
9036 "0czja4c5jxa0g3fspi90nyajqmvzb29my4ykv2wi66h43f5dlwhq"))))
9037 (build-system r-build-system)
9038 (propagated-inputs
9039 `(("r-genefilter" ,r-genefilter)
9040 ("r-mgcv" ,r-mgcv)
9041 ("r-biocparallel" ,r-biocparallel)
9042 ("r-matrixstats" ,r-matrixstats)
9043 ("r-limma" ,r-limma)))
9044 (home-page "https://bioconductor.org/packages/sva")
9045 (synopsis "Surrogate variable analysis")
9046 (description
9047 "This package contains functions for removing batch effects and other
9048 unwanted variation in high-throughput experiment. It also contains functions
9049 for identifying and building surrogate variables for high-dimensional data
9050 sets. Surrogate variables are covariates constructed directly from
9051 high-dimensional data like gene expression/RNA sequencing/methylation/brain
9052 imaging data that can be used in subsequent analyses to adjust for unknown,
9053 unmodeled, or latent sources of noise.")
9054 (license license:artistic2.0)))
9055
9056 (define-public r-seqminer
9057 (package
9058 (name "r-seqminer")
9059 (version "7.1")
9060 (source
9061 (origin
9062 (method url-fetch)
9063 (uri (cran-uri "seqminer" version))
9064 (sha256
9065 (base32
9066 "1jydcpkw4rwfp983j83kipvsvr10as9pb49zzn3c2v09k1gh3ymy"))))
9067 (build-system r-build-system)
9068 (inputs
9069 `(("zlib" ,zlib)))
9070 (home-page "http://seqminer.genomic.codes")
9071 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
9072 (description
9073 "This package provides tools to integrate nucleotide sequencing
9074 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
9075 ;; Any version of the GPL is acceptable
9076 (license (list license:gpl2+ license:gpl3+))))
9077
9078 (define-public r-raremetals2
9079 (package
9080 (name "r-raremetals2")
9081 (version "0.1")
9082 (source
9083 (origin
9084 (method url-fetch)
9085 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9086 "b/b7/RareMETALS2_" version ".tar.gz"))
9087 (sha256
9088 (base32
9089 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9090 (properties `((upstream-name . "RareMETALS2")))
9091 (build-system r-build-system)
9092 (propagated-inputs
9093 `(("r-seqminer" ,r-seqminer)
9094 ("r-mvtnorm" ,r-mvtnorm)
9095 ("r-mass" ,r-mass)
9096 ("r-compquadform" ,r-compquadform)
9097 ("r-getopt" ,r-getopt)))
9098 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9099 (synopsis "Analyze gene-level association tests for binary trait")
9100 (description
9101 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9102 It was designed to meta-analyze gene-level association tests for binary trait.
9103 While rareMETALS offers a near-complete solution for meta-analysis of
9104 gene-level tests for quantitative trait, it does not offer the optimal
9105 solution for binary trait. The package rareMETALS2 offers improved features
9106 for analyzing gene-level association tests in meta-analyses for binary
9107 trait.")
9108 (license license:gpl3)))
9109
9110 (define-public r-maldiquant
9111 (package
9112 (name "r-maldiquant")
9113 (version "1.19.2")
9114 (source
9115 (origin
9116 (method url-fetch)
9117 (uri (cran-uri "MALDIquant" version))
9118 (sha256
9119 (base32
9120 "11zbvm1vw8zn2vmymvydgdczvwj961s2knvrn1q4gbziwi5gqvlc"))))
9121 (properties `((upstream-name . "MALDIquant")))
9122 (build-system r-build-system)
9123 (home-page "https://cran.r-project.org/web/packages/MALDIquant")
9124 (synopsis "Quantitative analysis of mass spectrometry data")
9125 (description
9126 "This package provides a complete analysis pipeline for matrix-assisted
9127 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
9128 two-dimensional mass spectrometry data. In addition to commonly used plotting
9129 and processing methods it includes distinctive features, namely baseline
9130 subtraction methods such as morphological filters (TopHat) or the
9131 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
9132 alignment using warping functions, handling of replicated measurements as well
9133 as allowing spectra with different resolutions.")
9134 (license license:gpl3+)))
9135
9136 (define-public r-protgenerics
9137 (package
9138 (name "r-protgenerics")
9139 (version "1.14.0")
9140 (source
9141 (origin
9142 (method url-fetch)
9143 (uri (bioconductor-uri "ProtGenerics" version))
9144 (sha256
9145 (base32
9146 "053mmxhzncqgigl2iqjlq56qzimlw2zzw31wpzw19rf7rld1vi3b"))))
9147 (properties `((upstream-name . "ProtGenerics")))
9148 (build-system r-build-system)
9149 (home-page "https://github.com/lgatto/ProtGenerics")
9150 (synopsis "S4 generic functions for proteomics infrastructure")
9151 (description
9152 "This package provides S4 generic functions needed by Bioconductor
9153 proteomics packages.")
9154 (license license:artistic2.0)))
9155
9156 (define-public r-mzr
9157 (package
9158 (name "r-mzr")
9159 (version "2.16.2")
9160 (source
9161 (origin
9162 (method url-fetch)
9163 (uri (bioconductor-uri "mzR" version))
9164 (sha256
9165 (base32
9166 "19fn58zl59kd0hsjjc6y975y9187nfls0028a4k3v0s9wfg5b3vn"))
9167 (modules '((guix build utils)))
9168 (snippet
9169 '(begin
9170 (delete-file-recursively "src/boost")
9171 #t))))
9172 (properties `((upstream-name . "mzR")))
9173 (build-system r-build-system)
9174 (arguments
9175 `(#:phases
9176 (modify-phases %standard-phases
9177 (add-after 'unpack 'use-system-boost
9178 (lambda _
9179 (substitute* "src/Makevars"
9180 (("\\./boost/libs.*") "")
9181 (("ARCH_OBJS=" line)
9182 (string-append line
9183 "\nARCH_LIBS=-lboost_system -lboost_regex \
9184 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9185 #t)))))
9186 (inputs
9187 `(;; XXX Boost 1.69 will not work here.
9188 ("boost" ,boost-for-mysql) ; use this instead of the bundled boost sources
9189 ("zlib" ,zlib)))
9190 (propagated-inputs
9191 `(("r-biobase" ,r-biobase)
9192 ("r-biocgenerics" ,r-biocgenerics)
9193 ("r-ncdf4" ,r-ncdf4)
9194 ("r-protgenerics" ,r-protgenerics)
9195 ("r-rcpp" ,r-rcpp)
9196 ("r-rhdf5lib" ,r-rhdf5lib)
9197 ("r-zlibbioc" ,r-zlibbioc)))
9198 (home-page "https://github.com/sneumann/mzR/")
9199 (synopsis "Parser for mass spectrometry data files")
9200 (description
9201 "The mzR package provides a unified API to the common file formats and
9202 parsers available for mass spectrometry data. It comes with a wrapper for the
9203 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9204 The package contains the original code written by the ISB, and a subset of the
9205 proteowizard library for mzML and mzIdentML. The netCDF reading code has
9206 previously been used in XCMS.")
9207 (license license:artistic2.0)))
9208
9209 (define-public r-affyio
9210 (package
9211 (name "r-affyio")
9212 (version "1.52.0")
9213 (source
9214 (origin
9215 (method url-fetch)
9216 (uri (bioconductor-uri "affyio" version))
9217 (sha256
9218 (base32
9219 "1s4zp1211vf0krxzch9v3q3r6vs8hihqppq18i2fpvwlknfja7c1"))))
9220 (build-system r-build-system)
9221 (propagated-inputs
9222 `(("r-zlibbioc" ,r-zlibbioc)))
9223 (inputs
9224 `(("zlib" ,zlib)))
9225 (home-page "https://github.com/bmbolstad/affyio")
9226 (synopsis "Tools for parsing Affymetrix data files")
9227 (description
9228 "This package provides routines for parsing Affymetrix data files based
9229 upon file format information. The primary focus is on accessing the CEL and
9230 CDF file formats.")
9231 (license license:lgpl2.0+)))
9232
9233 (define-public r-affy
9234 (package
9235 (name "r-affy")
9236 (version "1.60.0")
9237 (source
9238 (origin
9239 (method url-fetch)
9240 (uri (bioconductor-uri "affy" version))
9241 (sha256
9242 (base32
9243 "0x8h4fk2igv7vykqfvf6v9whmx3344v5rf3gyfajd431xkjldz6k"))))
9244 (build-system r-build-system)
9245 (propagated-inputs
9246 `(("r-affyio" ,r-affyio)
9247 ("r-biobase" ,r-biobase)
9248 ("r-biocgenerics" ,r-biocgenerics)
9249 ("r-biocmanager" ,r-biocmanager)
9250 ("r-preprocesscore" ,r-preprocesscore)
9251 ("r-zlibbioc" ,r-zlibbioc)))
9252 (inputs
9253 `(("zlib" ,zlib)))
9254 (home-page "https://bioconductor.org/packages/affy")
9255 (synopsis "Methods for affymetrix oligonucleotide arrays")
9256 (description
9257 "This package contains functions for exploratory oligonucleotide array
9258 analysis.")
9259 (license license:lgpl2.0+)))
9260
9261 (define-public r-vsn
9262 (package
9263 (name "r-vsn")
9264 (version "3.50.0")
9265 (source
9266 (origin
9267 (method url-fetch)
9268 (uri (bioconductor-uri "vsn" version))
9269 (sha256
9270 (base32
9271 "1g6qkpykw99jm2wv2i61dg2ffwk0n8fm4s5pm2q4c024vw5c9b69"))))
9272 (build-system r-build-system)
9273 (propagated-inputs
9274 `(("r-affy" ,r-affy)
9275 ("r-biobase" ,r-biobase)
9276 ("r-ggplot2" ,r-ggplot2)
9277 ("r-lattice" ,r-lattice)
9278 ("r-limma" ,r-limma)))
9279 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
9280 (synopsis "Variance stabilization and calibration for microarray data")
9281 (description
9282 "The package implements a method for normalising microarray intensities,
9283 and works for single- and multiple-color arrays. It can also be used for data
9284 from other technologies, as long as they have similar format. The method uses
9285 a robust variant of the maximum-likelihood estimator for an
9286 additive-multiplicative error model and affine calibration. The model
9287 incorporates data calibration step (a.k.a. normalization), a model for the
9288 dependence of the variance on the mean intensity and a variance stabilizing
9289 data transformation. Differences between transformed intensities are
9290 analogous to \"normalized log-ratios\". However, in contrast to the latter,
9291 their variance is independent of the mean, and they are usually more sensitive
9292 and specific in detecting differential transcription.")
9293 (license license:artistic2.0)))
9294
9295 (define-public r-mzid
9296 (package
9297 (name "r-mzid")
9298 (version "1.20.1")
9299 (source
9300 (origin
9301 (method url-fetch)
9302 (uri (bioconductor-uri "mzID" version))
9303 (sha256
9304 (base32
9305 "15yd4bdxprw3kg7zj2k652y3yr3si781iw28jqvnkm0gsc23rd0c"))))
9306 (properties `((upstream-name . "mzID")))
9307 (build-system r-build-system)
9308 (propagated-inputs
9309 `(("r-doparallel" ,r-doparallel)
9310 ("r-foreach" ,r-foreach)
9311 ("r-iterators" ,r-iterators)
9312 ("r-plyr" ,r-plyr)
9313 ("r-protgenerics" ,r-protgenerics)
9314 ("r-rcpp" ,r-rcpp)
9315 ("r-xml" ,r-xml)))
9316 (home-page "https://bioconductor.org/packages/mzID")
9317 (synopsis "Parser for mzIdentML files")
9318 (description
9319 "This package provides a parser for mzIdentML files implemented using the
9320 XML package. The parser tries to be general and able to handle all types of
9321 mzIdentML files with the drawback of having less pretty output than a vendor
9322 specific parser.")
9323 (license license:gpl2+)))
9324
9325 (define-public r-pcamethods
9326 (package
9327 (name "r-pcamethods")
9328 (version "1.74.0")
9329 (source
9330 (origin
9331 (method url-fetch)
9332 (uri (bioconductor-uri "pcaMethods" version))
9333 (sha256
9334 (base32
9335 "0ik82s9bsdj4a1mmv0a3k6yisa92mxx7maf3dvip1r8gqlm3dyng"))))
9336 (properties `((upstream-name . "pcaMethods")))
9337 (build-system r-build-system)
9338 (propagated-inputs
9339 `(("r-biobase" ,r-biobase)
9340 ("r-biocgenerics" ,r-biocgenerics)
9341 ("r-mass" ,r-mass)
9342 ("r-rcpp" ,r-rcpp)))
9343 (home-page "https://github.com/hredestig/pcamethods")
9344 (synopsis "Collection of PCA methods")
9345 (description
9346 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9347 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9348 for missing value estimation is included for comparison. BPCA, PPCA and
9349 NipalsPCA may be used to perform PCA on incomplete data as well as for
9350 accurate missing value estimation. A set of methods for printing and plotting
9351 the results is also provided. All PCA methods make use of the same data
9352 structure (pcaRes) to provide a common interface to the PCA results.")
9353 (license license:gpl3+)))
9354
9355 (define-public r-msnbase
9356 (package
9357 (name "r-msnbase")
9358 (version "2.8.3")
9359 (source
9360 (origin
9361 (method url-fetch)
9362 (uri (bioconductor-uri "MSnbase" version))
9363 (sha256
9364 (base32
9365 "1kl1d7byphnfpmbl5fzbgs68dxskhpsdyx7ka51bpfn0nv3pp492"))))
9366 (properties `((upstream-name . "MSnbase")))
9367 (build-system r-build-system)
9368 (propagated-inputs
9369 `(("r-affy" ,r-affy)
9370 ("r-biobase" ,r-biobase)
9371 ("r-biocgenerics" ,r-biocgenerics)
9372 ("r-biocparallel" ,r-biocparallel)
9373 ("r-digest" ,r-digest)
9374 ("r-ggplot2" ,r-ggplot2)
9375 ("r-impute" ,r-impute)
9376 ("r-iranges" ,r-iranges)
9377 ("r-lattice" ,r-lattice)
9378 ("r-maldiquant" ,r-maldiquant)
9379 ("r-mass" ,r-mass)
9380 ("r-mzid" ,r-mzid)
9381 ("r-mzr" ,r-mzr)
9382 ("r-pcamethods" ,r-pcamethods)
9383 ("r-plyr" ,r-plyr)
9384 ("r-preprocesscore" ,r-preprocesscore)
9385 ("r-protgenerics" ,r-protgenerics)
9386 ("r-rcpp" ,r-rcpp)
9387 ("r-s4vectors" ,r-s4vectors)
9388 ("r-scales" ,r-scales)
9389 ("r-vsn" ,r-vsn)
9390 ("r-xml" ,r-xml)))
9391 (home-page "https://github.com/lgatto/MSnbase")
9392 (synopsis "Base functions and classes for MS-based proteomics")
9393 (description
9394 "This package provides basic plotting, data manipulation and processing
9395 of mass spectrometry based proteomics data.")
9396 (license license:artistic2.0)))
9397
9398 (define-public r-msnid
9399 (package
9400 (name "r-msnid")
9401 (version "1.16.1")
9402 (source
9403 (origin
9404 (method url-fetch)
9405 (uri (bioconductor-uri "MSnID" version))
9406 (sha256
9407 (base32
9408 "077n6ljcnnl7q4w0qj8v46vm4sjk9vzzfqf7wsc6lz0wmyzqdng3"))))
9409 (properties `((upstream-name . "MSnID")))
9410 (build-system r-build-system)
9411 (propagated-inputs
9412 `(("r-biobase" ,r-biobase)
9413 ("r-data-table" ,r-data-table)
9414 ("r-doparallel" ,r-doparallel)
9415 ("r-dplyr" ,r-dplyr)
9416 ("r-foreach" ,r-foreach)
9417 ("r-iterators" ,r-iterators)
9418 ("r-msnbase" ,r-msnbase)
9419 ("r-mzid" ,r-mzid)
9420 ("r-mzr" ,r-mzr)
9421 ("r-protgenerics" ,r-protgenerics)
9422 ("r-r-cache" ,r-r-cache)
9423 ("r-rcpp" ,r-rcpp)
9424 ("r-reshape2" ,r-reshape2)))
9425 (home-page "https://bioconductor.org/packages/MSnID")
9426 (synopsis "Utilities for LC-MSn proteomics identifications")
9427 (description
9428 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9429 from mzIdentML (leveraging the mzID package) or text files. After collating
9430 the search results from multiple datasets it assesses their identification
9431 quality and optimize filtering criteria to achieve the maximum number of
9432 identifications while not exceeding a specified false discovery rate. It also
9433 contains a number of utilities to explore the MS/MS results and assess missed
9434 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9435 (license license:artistic2.0)))
9436
9437 (define-public r-seurat
9438 (package
9439 (name "r-seurat")
9440 (version "2.3.4")
9441 (source (origin
9442 (method url-fetch)
9443 (uri (cran-uri "Seurat" version))
9444 (sha256
9445 (base32
9446 "0l8bv4i9nzz26mirnva10mq6pimibj24vk7vpvfypgn7xk4942hd"))))
9447 (properties `((upstream-name . "Seurat")))
9448 (build-system r-build-system)
9449 (propagated-inputs
9450 `(("r-ape" ,r-ape)
9451 ("r-cluster" ,r-cluster)
9452 ("r-cowplot" ,r-cowplot)
9453 ("r-dosnow" ,r-dosnow)
9454 ("r-dplyr" ,r-dplyr)
9455 ("r-dtw" ,r-dtw)
9456 ("r-fitdistrplus" ,r-fitdistrplus)
9457 ("r-foreach" ,r-foreach)
9458 ("r-fpc" ,r-fpc)
9459 ("r-ggplot2" ,r-ggplot2)
9460 ("r-ggridges" ,r-ggridges)
9461 ("r-gplots" ,r-gplots)
9462 ("r-hdf5r" ,r-hdf5r)
9463 ("r-hmisc" ,r-hmisc)
9464 ("r-httr" ,r-httr)
9465 ("r-ica" ,r-ica)
9466 ("r-igraph" ,r-igraph)
9467 ("r-irlba" ,r-irlba)
9468 ("r-lars" ,r-lars)
9469 ("r-lmtest" ,r-lmtest)
9470 ("r-mass" ,r-mass)
9471 ("r-matrix" ,r-matrix)
9472 ("r-metap" ,r-metap)
9473 ("r-mixtools" ,r-mixtools)
9474 ("r-pbapply" ,r-pbapply)
9475 ("r-plotly" ,r-plotly)
9476 ("r-png" ,r-png)
9477 ("r-rann" ,r-rann)
9478 ("r-rcolorbrewer" ,r-rcolorbrewer)
9479 ("r-rcpp" ,r-rcpp)
9480 ("r-rcppeigen" ,r-rcppeigen)
9481 ("r-rcppprogress" ,r-rcppprogress)
9482 ("r-reshape2" ,r-reshape2)
9483 ("r-reticulate" ,r-reticulate)
9484 ("r-rocr" ,r-rocr)
9485 ("r-rtsne" ,r-rtsne)
9486 ("r-sdmtools" ,r-sdmtools)
9487 ("r-tidyr" ,r-tidyr)
9488 ("r-tsne" ,r-tsne)))
9489 (home-page "http://www.satijalab.org/seurat")
9490 (synopsis "Seurat is an R toolkit for single cell genomics")
9491 (description
9492 "This package is an R package designed for QC, analysis, and
9493 exploration of single cell RNA-seq data. It easily enables widely-used
9494 analytical techniques, including the identification of highly variable genes,
9495 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9496 algorithms; density clustering, hierarchical clustering, k-means, and the
9497 discovery of differentially expressed genes and markers.")
9498 (license license:gpl3)))
9499
9500 (define-public r-aroma-light
9501 (package
9502 (name "r-aroma-light")
9503 (version "3.12.0")
9504 (source
9505 (origin
9506 (method url-fetch)
9507 (uri (bioconductor-uri "aroma.light" version))
9508 (sha256
9509 (base32
9510 "0vfifgpqxjjncbiv6gvlk9jmj14j90r9f30bqk3ks9v1csjnjhrb"))))
9511 (properties `((upstream-name . "aroma.light")))
9512 (build-system r-build-system)
9513 (propagated-inputs
9514 `(("r-matrixstats" ,r-matrixstats)
9515 ("r-r-methodss3" ,r-r-methodss3)
9516 ("r-r-oo" ,r-r-oo)
9517 ("r-r-utils" ,r-r-utils)))
9518 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9519 (synopsis "Methods for normalization and visualization of microarray data")
9520 (description
9521 "This package provides methods for microarray analysis that take basic
9522 data types such as matrices and lists of vectors. These methods can be used
9523 standalone, be utilized in other packages, or be wrapped up in higher-level
9524 classes.")
9525 (license license:gpl2+)))
9526
9527 (define-public r-deseq
9528 (package
9529 (name "r-deseq")
9530 (version "1.34.1")
9531 (source
9532 (origin
9533 (method url-fetch)
9534 (uri (bioconductor-uri "DESeq" version))
9535 (sha256
9536 (base32
9537 "0bpiixczbhlyaiinpbl6xrpmv72k2bq76bxnw06gl35m4pgs94p2"))))
9538 (properties `((upstream-name . "DESeq")))
9539 (build-system r-build-system)
9540 (propagated-inputs
9541 `(("r-biobase" ,r-biobase)
9542 ("r-biocgenerics" ,r-biocgenerics)
9543 ("r-genefilter" ,r-genefilter)
9544 ("r-geneplotter" ,r-geneplotter)
9545 ("r-lattice" ,r-lattice)
9546 ("r-locfit" ,r-locfit)
9547 ("r-mass" ,r-mass)
9548 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9549 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9550 (synopsis "Differential gene expression analysis")
9551 (description
9552 "This package provides tools for estimating variance-mean dependence in
9553 count data from high-throughput genetic sequencing assays and for testing for
9554 differential expression based on a model using the negative binomial
9555 distribution.")
9556 (license license:gpl3+)))
9557
9558 (define-public r-edaseq
9559 (package
9560 (name "r-edaseq")
9561 (version "2.16.3")
9562 (source
9563 (origin
9564 (method url-fetch)
9565 (uri (bioconductor-uri "EDASeq" version))
9566 (sha256
9567 (base32
9568 "0559ph606ps2g9bwbl0a2knkcs5w581n9igngpjxvk5p56k24gb5"))))
9569 (properties `((upstream-name . "EDASeq")))
9570 (build-system r-build-system)
9571 (propagated-inputs
9572 `(("r-annotationdbi" ,r-annotationdbi)
9573 ("r-aroma-light" ,r-aroma-light)
9574 ("r-biobase" ,r-biobase)
9575 ("r-biocgenerics" ,r-biocgenerics)
9576 ("r-biocmanager" ,r-biocmanager)
9577 ("r-biomart" ,r-biomart)
9578 ("r-biostrings" ,r-biostrings)
9579 ("r-deseq" ,r-deseq)
9580 ("r-genomicfeatures" ,r-genomicfeatures)
9581 ("r-genomicranges" ,r-genomicranges)
9582 ("r-iranges" ,r-iranges)
9583 ("r-rsamtools" ,r-rsamtools)
9584 ("r-shortread" ,r-shortread)))
9585 (home-page "https://github.com/drisso/EDASeq")
9586 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9587 (description
9588 "This package provides support for numerical and graphical summaries of
9589 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9590 adjust for GC-content effect (or other gene-level effects) on read counts:
9591 loess robust local regression, global-scaling, and full-quantile
9592 normalization. Between-lane normalization procedures to adjust for
9593 distributional differences between lanes (e.g., sequencing depth):
9594 global-scaling and full-quantile normalization.")
9595 (license license:artistic2.0)))
9596
9597 (define-public r-interactivedisplaybase
9598 (package
9599 (name "r-interactivedisplaybase")
9600 (version "1.20.0")
9601 (source
9602 (origin
9603 (method url-fetch)
9604 (uri (bioconductor-uri "interactiveDisplayBase" version))
9605 (sha256
9606 (base32
9607 "04xz3dkwan2s5ic1mwkdfnggm0l41mgqfagx160bcsrpkw6z7ark"))))
9608 (properties
9609 `((upstream-name . "interactiveDisplayBase")))
9610 (build-system r-build-system)
9611 (propagated-inputs
9612 `(("r-biocgenerics" ,r-biocgenerics)
9613 ("r-shiny" ,r-shiny)))
9614 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
9615 (synopsis "Base package for web displays of Bioconductor objects")
9616 (description
9617 "This package contains the basic methods needed to generate interactive
9618 Shiny-based display methods for Bioconductor objects.")
9619 (license license:artistic2.0)))
9620
9621 (define-public r-annotationhub
9622 (package
9623 (name "r-annotationhub")
9624 (version "2.14.5")
9625 (source
9626 (origin
9627 (method url-fetch)
9628 (uri (bioconductor-uri "AnnotationHub" version))
9629 (sha256
9630 (base32
9631 "0iyrxaijl4614iz5c1j53227xy2g756p3bx7hcwglcybh0k30nki"))))
9632 (properties `((upstream-name . "AnnotationHub")))
9633 (build-system r-build-system)
9634 (propagated-inputs
9635 `(("r-annotationdbi" ,r-annotationdbi)
9636 ("r-biocgenerics" ,r-biocgenerics)
9637 ("r-biocmanager" ,r-biocmanager)
9638 ("r-curl" ,r-curl)
9639 ("r-httr" ,r-httr)
9640 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
9641 ("r-rsqlite" ,r-rsqlite)
9642 ("r-s4vectors" ,r-s4vectors)
9643 ("r-yaml" ,r-yaml)))
9644 (home-page "https://bioconductor.org/packages/AnnotationHub")
9645 (synopsis "Client to access AnnotationHub resources")
9646 (description
9647 "This package provides a client for the Bioconductor AnnotationHub web
9648 resource. The AnnotationHub web resource provides a central location where
9649 genomic files (e.g. VCF, bed, wig) and other resources from standard
9650 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
9651 metadata about each resource, e.g., a textual description, tags, and date of
9652 modification. The client creates and manages a local cache of files retrieved
9653 by the user, helping with quick and reproducible access.")
9654 (license license:artistic2.0)))
9655
9656 (define-public r-fastseg
9657 (package
9658 (name "r-fastseg")
9659 (version "1.28.0")
9660 (source
9661 (origin
9662 (method url-fetch)
9663 (uri (bioconductor-uri "fastseg" version))
9664 (sha256
9665 (base32
9666 "1l8mdjpfpgwqdss2ywjkb8b4h55wf8v6kmyxdlvy04ds2hj16sb1"))))
9667 (build-system r-build-system)
9668 (propagated-inputs
9669 `(("r-biobase" ,r-biobase)
9670 ("r-biocgenerics" ,r-biocgenerics)
9671 ("r-genomicranges" ,r-genomicranges)
9672 ("r-iranges" ,r-iranges)
9673 ("r-s4vectors" ,r-s4vectors)))
9674 (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
9675 (synopsis "Fast segmentation algorithm for genetic sequencing data")
9676 (description
9677 "Fastseg implements a very fast and efficient segmentation algorithm.
9678 It can segment data from DNA microarrays and data from next generation
9679 sequencing for example to detect copy number segments. Further it can segment
9680 data from RNA microarrays like tiling arrays to identify transcripts. Most
9681 generally, it can segment data given as a matrix or as a vector. Various data
9682 formats can be used as input to fastseg like expression set objects for
9683 microarrays or GRanges for sequencing data.")
9684 (license license:lgpl2.0+)))
9685
9686 (define-public r-keggrest
9687 (package
9688 (name "r-keggrest")
9689 (version "1.22.0")
9690 (source
9691 (origin
9692 (method url-fetch)
9693 (uri (bioconductor-uri "KEGGREST" version))
9694 (sha256
9695 (base32
9696 "0blpd5a7whd2sswfhqd17h58hg06ymaf80gapdr9ja43hnnlj309"))))
9697 (properties `((upstream-name . "KEGGREST")))
9698 (build-system r-build-system)
9699 (propagated-inputs
9700 `(("r-biostrings" ,r-biostrings)
9701 ("r-httr" ,r-httr)
9702 ("r-png" ,r-png)))
9703 (home-page "https://bioconductor.org/packages/KEGGREST")
9704 (synopsis "Client-side REST access to KEGG")
9705 (description
9706 "This package provides a package that provides a client interface to the
9707 @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
9708 (license license:artistic2.0)))
9709
9710 (define-public r-gage
9711 (package
9712 (name "r-gage")
9713 (version "2.32.1")
9714 (source
9715 (origin
9716 (method url-fetch)
9717 (uri (bioconductor-uri "gage" version))
9718 (sha256
9719 (base32
9720 "02g796sb1800ff0f1mq9f2m5wwzpf8pnfzajs49i68dhq2hm01a8"))))
9721 (build-system r-build-system)
9722 (propagated-inputs
9723 `(("r-annotationdbi" ,r-annotationdbi)
9724 ("r-graph" ,r-graph)
9725 ("r-keggrest" ,r-keggrest)))
9726 (home-page "http://www.biomedcentral.com/1471-2105/10/161")
9727 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
9728 (description
9729 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
9730 analysis. GAGE is generally applicable independent of microarray or RNA-Seq
9731 data attributes including sample sizes, experimental designs, assay platforms,
9732 and other types of heterogeneity. The gage package provides functions for
9733 basic GAGE analysis, result processing and presentation. In addition, it
9734 provides demo microarray data and commonly used gene set data based on KEGG
9735 pathways and GO terms. These funtions and data are also useful for gene set
9736 analysis using other methods.")
9737 (license license:gpl2+)))
9738
9739 (define-public r-genomicfiles
9740 (package
9741 (name "r-genomicfiles")
9742 (version "1.18.0")
9743 (source
9744 (origin
9745 (method url-fetch)
9746 (uri (bioconductor-uri "GenomicFiles" version))
9747 (sha256
9748 (base32
9749 "0qf2yj4lfnnk64fk125n8sqms01shfqiik04nasx2z3k129ykpxp"))))
9750 (properties `((upstream-name . "GenomicFiles")))
9751 (build-system r-build-system)
9752 (propagated-inputs
9753 `(("r-biocgenerics" ,r-biocgenerics)
9754 ("r-biocparallel" ,r-biocparallel)
9755 ("r-genomeinfodb" ,r-genomeinfodb)
9756 ("r-genomicalignments" ,r-genomicalignments)
9757 ("r-genomicranges" ,r-genomicranges)
9758 ("r-iranges" ,r-iranges)
9759 ("r-rsamtools" ,r-rsamtools)
9760 ("r-rtracklayer" ,r-rtracklayer)
9761 ("r-s4vectors" ,r-s4vectors)
9762 ("r-summarizedexperiment" ,r-summarizedexperiment)
9763 ("r-variantannotation" ,r-variantannotation)))
9764 (home-page "https://bioconductor.org/packages/GenomicFiles")
9765 (synopsis "Distributed computing by file or by range")
9766 (description
9767 "This package provides infrastructure for parallel computations
9768 distributed by file or by range. User defined mapper and reducer functions
9769 provide added flexibility for data combination and manipulation.")
9770 (license license:artistic2.0)))
9771
9772 (define-public r-complexheatmap
9773 (package
9774 (name "r-complexheatmap")
9775 (version "1.20.0")
9776 (source
9777 (origin
9778 (method url-fetch)
9779 (uri (bioconductor-uri "ComplexHeatmap" version))
9780 (sha256
9781 (base32
9782 "0s01dzcfj1lmpqfpsbqw7r4858krfzy499lz4cwx4fq3mbyvy2aj"))))
9783 (properties
9784 `((upstream-name . "ComplexHeatmap")))
9785 (build-system r-build-system)
9786 (propagated-inputs
9787 `(("r-circlize" ,r-circlize)
9788 ("r-colorspace" ,r-colorspace)
9789 ("r-getoptlong" ,r-getoptlong)
9790 ("r-globaloptions" ,r-globaloptions)
9791 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9792 (home-page
9793 "https://github.com/jokergoo/ComplexHeatmap")
9794 (synopsis "Making Complex Heatmaps")
9795 (description
9796 "Complex heatmaps are efficient to visualize associations between
9797 different sources of data sets and reveal potential structures. This package
9798 provides a highly flexible way to arrange multiple heatmaps and supports
9799 self-defined annotation graphics.")
9800 (license license:gpl2+)))
9801
9802 (define-public r-dirichletmultinomial
9803 (package
9804 (name "r-dirichletmultinomial")
9805 (version "1.24.1")
9806 (source
9807 (origin
9808 (method url-fetch)
9809 (uri (bioconductor-uri "DirichletMultinomial" version))
9810 (sha256
9811 (base32
9812 "0vazfjzqy78p5g7dnv30lbqbj4bhq4zafd2wh6gdwy2il1fd78xa"))))
9813 (properties
9814 `((upstream-name . "DirichletMultinomial")))
9815 (build-system r-build-system)
9816 (inputs
9817 `(("gsl" ,gsl)))
9818 (propagated-inputs
9819 `(("r-biocgenerics" ,r-biocgenerics)
9820 ("r-iranges" ,r-iranges)
9821 ("r-s4vectors" ,r-s4vectors)))
9822 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
9823 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
9824 (description
9825 "Dirichlet-multinomial mixture models can be used to describe variability
9826 in microbial metagenomic data. This package is an interface to code
9827 originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
9828 1-15.")
9829 (license license:lgpl3)))
9830
9831 (define-public r-ensembldb
9832 (package
9833 (name "r-ensembldb")
9834 (version "2.6.7")
9835 (source
9836 (origin
9837 (method url-fetch)
9838 (uri (bioconductor-uri "ensembldb" version))
9839 (sha256
9840 (base32
9841 "1wqq0m1fgvgkzq5zr2s9cj2s7qkg9lx3dwwsqixzs5fn52p4dn7f"))))
9842 (build-system r-build-system)
9843 (propagated-inputs
9844 `(("r-annotationdbi" ,r-annotationdbi)
9845 ("r-annotationfilter" ,r-annotationfilter)
9846 ("r-biobase" ,r-biobase)
9847 ("r-biocgenerics" ,r-biocgenerics)
9848 ("r-biostrings" ,r-biostrings)
9849 ("r-curl" ,r-curl)
9850 ("r-dbi" ,r-dbi)
9851 ("r-genomeinfodb" ,r-genomeinfodb)
9852 ("r-genomicfeatures" ,r-genomicfeatures)
9853 ("r-genomicranges" ,r-genomicranges)
9854 ("r-iranges" ,r-iranges)
9855 ("r-protgenerics" ,r-protgenerics)
9856 ("r-rsamtools" ,r-rsamtools)
9857 ("r-rsqlite" ,r-rsqlite)
9858 ("r-rtracklayer" ,r-rtracklayer)
9859 ("r-s4vectors" ,r-s4vectors)))
9860 (home-page "https://github.com/jotsetung/ensembldb")
9861 (synopsis "Utilities to create and use Ensembl-based annotation databases")
9862 (description
9863 "The package provides functions to create and use transcript-centric
9864 annotation databases/packages. The annotation for the databases are directly
9865 fetched from Ensembl using their Perl API. The functionality and data is
9866 similar to that of the TxDb packages from the @code{GenomicFeatures} package,
9867 but, in addition to retrieve all gene/transcript models and annotations from
9868 the database, the @code{ensembldb} package also provides a filter framework
9869 allowing to retrieve annotations for specific entries like genes encoded on a
9870 chromosome region or transcript models of lincRNA genes.")
9871 ;; No version specified
9872 (license license:lgpl3+)))
9873
9874 (define-public r-organismdbi
9875 (package
9876 (name "r-organismdbi")
9877 (version "1.24.0")
9878 (source
9879 (origin
9880 (method url-fetch)
9881 (uri (bioconductor-uri "OrganismDbi" version))
9882 (sha256
9883 (base32
9884 "11pyv56cy4iy095h40k6k0mpjdlh6gsb4ld3s57nfa9nd4ypx3yi"))))
9885 (properties `((upstream-name . "OrganismDbi")))
9886 (build-system r-build-system)
9887 (propagated-inputs
9888 `(("r-annotationdbi" ,r-annotationdbi)
9889 ("r-biobase" ,r-biobase)
9890 ("r-biocgenerics" ,r-biocgenerics)
9891 ("r-biocmanager" ,r-biocmanager)
9892 ("r-dbi" ,r-dbi)
9893 ("r-genomicfeatures" ,r-genomicfeatures)
9894 ("r-genomicranges" ,r-genomicranges)
9895 ("r-graph" ,r-graph)
9896 ("r-iranges" ,r-iranges)
9897 ("r-rbgl" ,r-rbgl)
9898 ("r-s4vectors" ,r-s4vectors)))
9899 (home-page "https://bioconductor.org/packages/OrganismDbi")
9900 (synopsis "Software to enable the smooth interfacing of database packages")
9901 (description "The package enables a simple unified interface to several
9902 annotation packages each of which has its own schema by taking advantage of
9903 the fact that each of these packages implements a select methods.")
9904 (license license:artistic2.0)))
9905
9906 (define-public r-biovizbase
9907 (package
9908 (name "r-biovizbase")
9909 (version "1.30.1")
9910 (source
9911 (origin
9912 (method url-fetch)
9913 (uri (bioconductor-uri "biovizBase" version))
9914 (sha256
9915 (base32
9916 "0v5gvcx180qn5487i1dph9abadw3ggqwp5yzy41jswzbdc8q6sbm"))))
9917 (properties `((upstream-name . "biovizBase")))
9918 (build-system r-build-system)
9919 (propagated-inputs
9920 `(("r-annotationdbi" ,r-annotationdbi)
9921 ("r-annotationfilter" ,r-annotationfilter)
9922 ("r-biocgenerics" ,r-biocgenerics)
9923 ("r-biostrings" ,r-biostrings)
9924 ("r-dichromat" ,r-dichromat)
9925 ("r-ensembldb" ,r-ensembldb)
9926 ("r-genomeinfodb" ,r-genomeinfodb)
9927 ("r-genomicalignments" ,r-genomicalignments)
9928 ("r-genomicfeatures" ,r-genomicfeatures)
9929 ("r-genomicranges" ,r-genomicranges)
9930 ("r-hmisc" ,r-hmisc)
9931 ("r-iranges" ,r-iranges)
9932 ("r-rcolorbrewer" ,r-rcolorbrewer)
9933 ("r-rlang" ,r-rlang)
9934 ("r-rsamtools" ,r-rsamtools)
9935 ("r-s4vectors" ,r-s4vectors)
9936 ("r-scales" ,r-scales)
9937 ("r-summarizedexperiment" ,r-summarizedexperiment)
9938 ("r-variantannotation" ,r-variantannotation)))
9939 (home-page "https://bioconductor.org/packages/biovizBase")
9940 (synopsis "Basic graphic utilities for visualization of genomic data")
9941 (description
9942 "The biovizBase package is designed to provide a set of utilities, color
9943 schemes and conventions for genomic data. It serves as the base for various
9944 high-level packages for biological data visualization. This saves development
9945 effort and encourages consistency.")
9946 (license license:artistic2.0)))
9947
9948 (define-public r-ggbio
9949 (package
9950 (name "r-ggbio")
9951 (version "1.30.0")
9952 (source
9953 (origin
9954 (method url-fetch)
9955 (uri (bioconductor-uri "ggbio" version))
9956 (sha256
9957 (base32
9958 "0wq49qqzkcn8s19xgaxf2s1j1a563d7pbhhvris6fhxfdjsz4934"))))
9959 (build-system r-build-system)
9960 (propagated-inputs
9961 `(("r-annotationdbi" ,r-annotationdbi)
9962 ("r-annotationfilter" ,r-annotationfilter)
9963 ("r-biobase" ,r-biobase)
9964 ("r-biocgenerics" ,r-biocgenerics)
9965 ("r-biostrings" ,r-biostrings)
9966 ("r-biovizbase" ,r-biovizbase)
9967 ("r-bsgenome" ,r-bsgenome)
9968 ("r-ensembldb" ,r-ensembldb)
9969 ("r-genomeinfodb" ,r-genomeinfodb)
9970 ("r-genomicalignments" ,r-genomicalignments)
9971 ("r-genomicfeatures" ,r-genomicfeatures)
9972 ("r-genomicranges" ,r-genomicranges)
9973 ("r-ggally" ,r-ggally)
9974 ("r-ggplot2" ,r-ggplot2)
9975 ("r-gridextra" ,r-gridextra)
9976 ("r-gtable" ,r-gtable)
9977 ("r-hmisc" ,r-hmisc)
9978 ("r-iranges" ,r-iranges)
9979 ("r-organismdbi" ,r-organismdbi)
9980 ("r-reshape2" ,r-reshape2)
9981 ("r-rlang" ,r-rlang)
9982 ("r-rsamtools" ,r-rsamtools)
9983 ("r-rtracklayer" ,r-rtracklayer)
9984 ("r-s4vectors" ,r-s4vectors)
9985 ("r-scales" ,r-scales)
9986 ("r-summarizedexperiment" ,r-summarizedexperiment)
9987 ("r-variantannotation" ,r-variantannotation)))
9988 (home-page "http://www.tengfei.name/ggbio/")
9989 (synopsis "Visualization tools for genomic data")
9990 (description
9991 "The ggbio package extends and specializes the grammar of graphics for
9992 biological data. The graphics are designed to answer common scientific
9993 questions, in particular those often asked of high throughput genomics data.
9994 All core Bioconductor data structures are supported, where appropriate. The
9995 package supports detailed views of particular genomic regions, as well as
9996 genome-wide overviews. Supported overviews include ideograms and grand linear
9997 views. High-level plots include sequence fragment length, edge-linked
9998 interval to data view, mismatch pileup, and several splicing summaries.")
9999 (license license:artistic2.0)))
10000
10001 (define-public r-gprofiler
10002 (package
10003 (name "r-gprofiler")
10004 (version "0.6.7")
10005 (source
10006 (origin
10007 (method url-fetch)
10008 (uri (cran-uri "gProfileR" version))
10009 (sha256
10010 (base32
10011 "12nwidbnqmnfy5dnqga26byslvdnkrpz2fi19qfcby6xx0wbndk7"))))
10012 (properties `((upstream-name . "gProfileR")))
10013 (build-system r-build-system)
10014 (propagated-inputs
10015 `(("r-plyr" ,r-plyr)
10016 ("r-rcurl" ,r-rcurl)))
10017 (home-page "https://cran.r-project.org/web/packages/gProfileR/")
10018 (synopsis "Interface to the g:Profiler toolkit")
10019 (description
10020 "This package provides tools for functional enrichment analysis,
10021 gene identifier conversion and mapping homologous genes across related
10022 organisms via the @code{g:Profiler} toolkit.")
10023 (license license:gpl2+)))
10024
10025 (define-public r-gqtlbase
10026 (package
10027 (name "r-gqtlbase")
10028 (version "1.14.0")
10029 (source
10030 (origin
10031 (method url-fetch)
10032 (uri (bioconductor-uri "gQTLBase" version))
10033 (sha256
10034 (base32
10035 "1lbk1m1mkvbk30flk5pf3pcrnm2s0sj5r48kbjgad39dsvd8zgqx"))))
10036 (properties `((upstream-name . "gQTLBase")))
10037 (build-system r-build-system)
10038 (propagated-inputs
10039 `(("r-batchjobs" ,r-batchjobs)
10040 ("r-bbmisc" ,r-bbmisc)
10041 ("r-biocgenerics" ,r-biocgenerics)
10042 ("r-bit" ,r-bit)
10043 ("r-doparallel" ,r-doparallel)
10044 ("r-ff" ,r-ff)
10045 ("r-ffbase" ,r-ffbase)
10046 ("r-foreach" ,r-foreach)
10047 ("r-genomicfiles" ,r-genomicfiles)
10048 ("r-genomicranges" ,r-genomicranges)
10049 ("r-rtracklayer" ,r-rtracklayer)
10050 ("r-s4vectors" ,r-s4vectors)
10051 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10052 (home-page "https://bioconductor.org/packages/gQTLBase")
10053 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10054 (description
10055 "The purpose of this package is to simplify the storage and interrogation
10056 of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10057 and more.")
10058 (license license:artistic2.0)))
10059
10060 (define-public r-snpstats
10061 (package
10062 (name "r-snpstats")
10063 (version "1.32.0")
10064 (source
10065 (origin
10066 (method url-fetch)
10067 (uri (bioconductor-uri "snpStats" version))
10068 (sha256
10069 (base32
10070 "1pplx4pf9bqi7v5v1l74yknc1s61carvbqkf327ky7vbvp0bck33"))))
10071 (properties `((upstream-name . "snpStats")))
10072 (build-system r-build-system)
10073 (inputs `(("zlib" ,zlib)))
10074 (propagated-inputs
10075 `(("r-biocgenerics" ,r-biocgenerics)
10076 ("r-matrix" ,r-matrix)
10077 ("r-survival" ,r-survival)
10078 ("r-zlibbioc" ,r-zlibbioc)))
10079 (home-page "https://bioconductor.org/packages/snpStats")
10080 (synopsis "Methods for SNP association studies")
10081 (description
10082 "This package provides classes and statistical methods for large
10083 @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10084 the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10085 (license license:gpl3)))
10086
10087 (define-public r-homo-sapiens
10088 (package
10089 (name "r-homo-sapiens")
10090 (version "1.3.1")
10091 (source (origin
10092 (method url-fetch)
10093 ;; We cannot use bioconductor-uri here because this tarball is
10094 ;; located under "data/annotation/" instead of "bioc/".
10095 (uri (string-append "http://www.bioconductor.org/packages/"
10096 "release/data/annotation/src/contrib/"
10097 "Homo.sapiens_"
10098 version ".tar.gz"))
10099 (sha256
10100 (base32
10101 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10102 (properties
10103 `((upstream-name . "Homo.sapiens")))
10104 (build-system r-build-system)
10105 (propagated-inputs
10106 `(("r-genomicfeatures" ,r-genomicfeatures)
10107 ("r-go-db" ,r-go-db)
10108 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10109 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10110 ("r-organismdbi" ,r-organismdbi)
10111 ("r-annotationdbi" ,r-annotationdbi)))
10112 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10113 (synopsis "Annotation package for the Homo.sapiens object")
10114 (description
10115 "This package contains the Homo.sapiens object to access data from
10116 several related annotation packages.")
10117 (license license:artistic2.0)))
10118
10119 (define-public r-erma
10120 (package
10121 (name "r-erma")
10122 (version "0.14.0")
10123 (source
10124 (origin
10125 (method url-fetch)
10126 (uri (bioconductor-uri "erma" version))
10127 (sha256
10128 (base32
10129 "0hj9iz904rr1y66442lkxjywkw1ydyxxlhmjirawbf09ic5ad4g9"))))
10130 (build-system r-build-system)
10131 (propagated-inputs
10132 `(("r-annotationdbi" ,r-annotationdbi)
10133 ("r-biobase" ,r-biobase)
10134 ("r-biocgenerics" ,r-biocgenerics)
10135 ("r-biocparallel" ,r-biocparallel)
10136 ("r-genomeinfodb" ,r-genomeinfodb)
10137 ("r-genomicfiles" ,r-genomicfiles)
10138 ("r-genomicranges" ,r-genomicranges)
10139 ("r-ggplot2" ,r-ggplot2)
10140 ("r-homo-sapiens" ,r-homo-sapiens)
10141 ("r-iranges" ,r-iranges)
10142 ("r-rtracklayer" ,r-rtracklayer)
10143 ("r-s4vectors" ,r-s4vectors)
10144 ("r-shiny" ,r-shiny)
10145 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10146 (home-page "https://bioconductor.org/packages/erma")
10147 (synopsis "Epigenomic road map adventures")
10148 (description
10149 "The epigenomics road map describes locations of epigenetic marks in DNA
10150 from a variety of cell types. Of interest are locations of histone
10151 modifications, sites of DNA methylation, and regions of accessible chromatin.
10152 This package presents a selection of elements of the road map including
10153 metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10154 by Ernst and Kellis.")
10155 (license license:artistic2.0)))
10156
10157 (define-public r-ldblock
10158 (package
10159 (name "r-ldblock")
10160 (version "1.12.0")
10161 (source
10162 (origin
10163 (method url-fetch)
10164 (uri (bioconductor-uri "ldblock" version))
10165 (sha256
10166 (base32
10167 "0xbf4pmhrk5fnd1iz5wzjvdr75v114bwpznhcig4wiqmxc27sips"))))
10168 (build-system r-build-system)
10169 (propagated-inputs
10170 `(("r-biocgenerics" ,r-biocgenerics)
10171 ("r-erma" ,r-erma)
10172 ("r-genomeinfodb" ,r-genomeinfodb)
10173 ("r-genomicfiles" ,r-genomicfiles)
10174 ("r-go-db" ,r-go-db)
10175 ("r-homo-sapiens" ,r-homo-sapiens)
10176 ("r-matrix" ,r-matrix)
10177 ("r-rsamtools" ,r-rsamtools)
10178 ("r-snpstats" ,r-snpstats)
10179 ("r-variantannotation" ,r-variantannotation)))
10180 (home-page "https://bioconductor.org/packages/ldblock")
10181 (synopsis "Data structures for linkage disequilibrium measures in populations")
10182 (description
10183 "This package defines data structures for @dfn{linkage
10184 disequilibrium} (LD) measures in populations. Its purpose is to simplify
10185 handling of existing population-level data for the purpose of flexibly
10186 defining LD blocks.")
10187 (license license:artistic2.0)))
10188
10189 (define-public r-gqtlstats
10190 (package
10191 (name "r-gqtlstats")
10192 (version "1.14.1")
10193 (source
10194 (origin
10195 (method url-fetch)
10196 (uri (bioconductor-uri "gQTLstats" version))
10197 (sha256
10198 (base32
10199 "1rkbnb3h02fdksc4nacqvmq4jgbj9fz4hm7j51yr2ggcgcykwraa"))))
10200 (properties `((upstream-name . "gQTLstats")))
10201 (build-system r-build-system)
10202 (propagated-inputs
10203 `(("r-annotationdbi" ,r-annotationdbi)
10204 ("r-batchjobs" ,r-batchjobs)
10205 ("r-bbmisc" ,r-bbmisc)
10206 ("r-beeswarm" ,r-beeswarm)
10207 ("r-biobase" ,r-biobase)
10208 ("r-biocgenerics" ,r-biocgenerics)
10209 ("r-doparallel" ,r-doparallel)
10210 ("r-dplyr" ,r-dplyr)
10211 ("r-erma" ,r-erma)
10212 ("r-ffbase" ,r-ffbase)
10213 ("r-foreach" ,r-foreach)
10214 ("r-genomeinfodb" ,r-genomeinfodb)
10215 ("r-genomicfeatures" ,r-genomicfeatures)
10216 ("r-genomicfiles" ,r-genomicfiles)
10217 ("r-genomicranges" ,r-genomicranges)
10218 ("r-ggbeeswarm" ,r-ggbeeswarm)
10219 ("r-ggplot2" ,r-ggplot2)
10220 ("r-gqtlbase" ,r-gqtlbase)
10221 ("r-hardyweinberg" ,r-hardyweinberg)
10222 ("r-homo-sapiens" ,r-homo-sapiens)
10223 ("r-iranges" ,r-iranges)
10224 ("r-limma" ,r-limma)
10225 ("r-mgcv" ,r-mgcv)
10226 ("r-plotly" ,r-plotly)
10227 ("r-reshape2" ,r-reshape2)
10228 ("r-s4vectors" ,r-s4vectors)
10229 ("r-shiny" ,r-shiny)
10230 ("r-snpstats" ,r-snpstats)
10231 ("r-summarizedexperiment" ,r-summarizedexperiment)
10232 ("r-variantannotation" ,r-variantannotation)))
10233 (home-page "https://bioconductor.org/packages/gQTLstats")
10234 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10235 (description
10236 "This package provides tools for the computationally efficient analysis
10237 of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10238 The software in this package aims to support refinements and functional
10239 interpretation of members of a collection of association statistics on a
10240 family of feature/genome hypotheses.")
10241 (license license:artistic2.0)))
10242
10243 (define-public r-gviz
10244 (package
10245 (name "r-gviz")
10246 (version "1.26.5")
10247 (source
10248 (origin
10249 (method url-fetch)
10250 (uri (bioconductor-uri "Gviz" version))
10251 (sha256
10252 (base32
10253 "1dpkcaar7qgzg3vgafvkplprhwmhzpb7ph009kr6ajm36hx4z81c"))))
10254 (properties `((upstream-name . "Gviz")))
10255 (build-system r-build-system)
10256 (propagated-inputs
10257 `(("r-annotationdbi" ,r-annotationdbi)
10258 ("r-biobase" ,r-biobase)
10259 ("r-biocgenerics" ,r-biocgenerics)
10260 ("r-biomart" ,r-biomart)
10261 ("r-biostrings" ,r-biostrings)
10262 ("r-biovizbase" ,r-biovizbase)
10263 ("r-bsgenome" ,r-bsgenome)
10264 ("r-digest" ,r-digest)
10265 ("r-genomeinfodb" ,r-genomeinfodb)
10266 ("r-genomicalignments" ,r-genomicalignments)
10267 ("r-genomicfeatures" ,r-genomicfeatures)
10268 ("r-genomicranges" ,r-genomicranges)
10269 ("r-iranges" ,r-iranges)
10270 ("r-lattice" ,r-lattice)
10271 ("r-latticeextra" ,r-latticeextra)
10272 ("r-matrixstats" ,r-matrixstats)
10273 ("r-rcolorbrewer" ,r-rcolorbrewer)
10274 ("r-rsamtools" ,r-rsamtools)
10275 ("r-rtracklayer" ,r-rtracklayer)
10276 ("r-s4vectors" ,r-s4vectors)
10277 ("r-xvector" ,r-xvector)))
10278 (home-page "https://bioconductor.org/packages/Gviz")
10279 (synopsis "Plotting data and annotation information along genomic coordinates")
10280 (description
10281 "Genomic data analyses requires integrated visualization of known genomic
10282 information and new experimental data. Gviz uses the biomaRt and the
10283 rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10284 and translates this to e.g. gene/transcript structures in viewports of the
10285 grid graphics package. This results in genomic information plotted together
10286 with your data.")
10287 (license license:artistic2.0)))
10288
10289 (define-public r-gwascat
10290 (package
10291 (name "r-gwascat")
10292 (version "2.14.0")
10293 (source
10294 (origin
10295 (method url-fetch)
10296 (uri (bioconductor-uri "gwascat" version))
10297 (sha256
10298 (base32
10299 "1fnyjydhicq4ayrv0lqjv48h9bd72h40s6l82g1h2ng0icwz38g0"))))
10300 (build-system r-build-system)
10301 (propagated-inputs
10302 `(("r-annotationdbi" ,r-annotationdbi)
10303 ("r-annotationhub" ,r-annotationhub)
10304 ("r-biocgenerics" ,r-biocgenerics)
10305 ("r-biostrings" ,r-biostrings)
10306 ("r-genomeinfodb" ,r-genomeinfodb)
10307 ("r-genomicfeatures" ,r-genomicfeatures)
10308 ("r-genomicranges" ,r-genomicranges)
10309 ("r-ggbio" ,r-ggbio)
10310 ("r-ggplot2" ,r-ggplot2)
10311 ("r-gqtlstats" ,r-gqtlstats)
10312 ("r-graph" ,r-graph)
10313 ("r-gviz" ,r-gviz)
10314 ("r-homo-sapiens" ,r-homo-sapiens)
10315 ("r-iranges" ,r-iranges)
10316 ("r-rsamtools" ,r-rsamtools)
10317 ("r-rtracklayer" ,r-rtracklayer)
10318 ("r-s4vectors" ,r-s4vectors)
10319 ("r-snpstats" ,r-snpstats)
10320 ("r-summarizedexperiment" ,r-summarizedexperiment)
10321 ("r-variantannotation" ,r-variantannotation)))
10322 (home-page "https://bioconductor.org/packages/gwascat")
10323 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10324 (description
10325 "This package provides tools for representing and modeling data in the
10326 EMBL-EBI GWAS catalog.")
10327 (license license:artistic2.0)))
10328
10329 (define-public r-sushi
10330 (package
10331 (name "r-sushi")
10332 (version "1.20.0")
10333 (source (origin
10334 (method url-fetch)
10335 (uri (bioconductor-uri "Sushi" version))
10336 (sha256
10337 (base32
10338 "0dv5di0hgbvk9cxnqhyf18mdjl50k6bk00a89r6zgp83rbxwr1r8"))))
10339 (properties `((upstream-name . "Sushi")))
10340 (build-system r-build-system)
10341 (propagated-inputs
10342 `(("r-biomart" ,r-biomart)
10343 ("r-zoo" ,r-zoo)))
10344 (home-page "https://bioconductor.org/packages/Sushi")
10345 (synopsis "Tools for visualizing genomics data")
10346 (description
10347 "This package provides flexible, quantitative, and integrative genomic
10348 visualizations for publication-quality multi-panel figures.")
10349 (license license:gpl2+)))
10350
10351 (define-public r-fithic
10352 (package
10353 (name "r-fithic")
10354 (version "1.8.0")
10355 (source (origin
10356 (method url-fetch)
10357 (uri (bioconductor-uri "FitHiC" version))
10358 (sha256
10359 (base32
10360 "15xd8mz7660q4zr9p74mq1pqps4iz7pxp8f9ifn21gwg94aq1avn"))))
10361 (properties `((upstream-name . "FitHiC")))
10362 (build-system r-build-system)
10363 (propagated-inputs
10364 `(("r-data-table" ,r-data-table)
10365 ("r-fdrtool" ,r-fdrtool)
10366 ("r-rcpp" ,r-rcpp)))
10367 (home-page "https://bioconductor.org/packages/FitHiC")
10368 (synopsis "Confidence estimation for intra-chromosomal contact maps")
10369 (description
10370 "Fit-Hi-C is a tool for assigning statistical confidence estimates to
10371 intra-chromosomal contact maps produced by genome-wide genome architecture
10372 assays such as Hi-C.")
10373 (license license:gpl2+)))
10374
10375 (define-public r-hitc
10376 (package
10377 (name "r-hitc")
10378 (version "1.26.0")
10379 (source (origin
10380 (method url-fetch)
10381 (uri (bioconductor-uri "HiTC" version))
10382 (sha256
10383 (base32
10384 "11f96k1707g6milpjgnrjf3b5r42hsrxhb5d8znkcr3y3mrskdbj"))))
10385 (properties `((upstream-name . "HiTC")))
10386 (build-system r-build-system)
10387 (propagated-inputs
10388 `(("r-biostrings" ,r-biostrings)
10389 ("r-genomeinfodb" ,r-genomeinfodb)
10390 ("r-genomicranges" ,r-genomicranges)
10391 ("r-iranges" ,r-iranges)
10392 ("r-matrix" ,r-matrix)
10393 ("r-rcolorbrewer" ,r-rcolorbrewer)
10394 ("r-rtracklayer" ,r-rtracklayer)))
10395 (home-page "https://bioconductor.org/packages/HiTC")
10396 (synopsis "High throughput chromosome conformation capture analysis")
10397 (description
10398 "The HiTC package was developed to explore high-throughput \"C\" data
10399 such as 5C or Hi-C. Dedicated R classes as well as standard methods for
10400 quality controls, normalization, visualization, and further analysis are also
10401 provided.")
10402 (license license:artistic2.0)))
10403
10404 (define-public r-hdf5array
10405 (package
10406 (name "r-hdf5array")
10407 (version "1.10.1")
10408 (source
10409 (origin
10410 (method url-fetch)
10411 (uri (bioconductor-uri "HDF5Array" version))
10412 (sha256
10413 (base32
10414 "1qwdsygcadl58qj598hfyvs8hp0hqcl9ghnhknahrlhmb7k2bd2d"))))
10415 (properties `((upstream-name . "HDF5Array")))
10416 (build-system r-build-system)
10417 (propagated-inputs
10418 `(("r-biocgenerics" ,r-biocgenerics)
10419 ("r-delayedarray" ,r-delayedarray)
10420 ("r-iranges" ,r-iranges)
10421 ("r-rhdf5" ,r-rhdf5)
10422 ("r-s4vectors" ,r-s4vectors)))
10423 (home-page "https://bioconductor.org/packages/HDF5Array")
10424 (synopsis "HDF5 back end for DelayedArray objects")
10425 (description "This package provides an array-like container for convenient
10426 access and manipulation of HDF5 datasets. It supports delayed operations and
10427 block processing.")
10428 (license license:artistic2.0)))
10429
10430 (define-public r-rhdf5lib
10431 (package
10432 (name "r-rhdf5lib")
10433 (version "1.4.3")
10434 (source
10435 (origin
10436 (method url-fetch)
10437 (uri (bioconductor-uri "Rhdf5lib" version))
10438 (sha256
10439 (base32
10440 "0hjhjvg2kss71fkmxlbgnyyy1agwzgq57rxkgkm4riw82x2rvw7q"))
10441 (modules '((guix build utils)))
10442 (snippet
10443 '(begin
10444 ;; Delete bundled binaries
10445 (delete-file-recursively "src/winlib/")
10446 #t))))
10447 (properties `((upstream-name . "Rhdf5lib")))
10448 (build-system r-build-system)
10449 (arguments
10450 `(#:phases
10451 (modify-phases %standard-phases
10452 (add-after 'unpack 'do-not-use-bundled-hdf5
10453 (lambda* (#:key inputs #:allow-other-keys)
10454 (for-each delete-file '("configure" "configure.ac"))
10455 ;; Do not make other packages link with the proprietary libsz.
10456 (substitute* "R/zzz.R"
10457 (("'%s/libhdf5_cpp.a %s/libhdf5.a %s/libsz.a -lz'")
10458 "'%s/libhdf5_cpp.a %s/libhdf5.a %s/libhdf5.a -lz'")
10459 (("'%s/libhdf5.a %s/libsz.a -lz'")
10460 "'%s/libhdf5.a %s/libhdf5.a -lz'"))
10461 (with-directory-excursion "src"
10462 (invoke "tar" "xvf" (assoc-ref inputs "hdf5-source"))
10463 (rename-file (string-append "hdf5-" ,(package-version hdf5-1.10))
10464 "hdf5")
10465 ;; Remove timestamp and host system information to make
10466 ;; the build reproducible.
10467 (substitute* "hdf5/src/libhdf5.settings.in"
10468 (("Configured on: @CONFIG_DATE@")
10469 "Configured on: Guix")
10470 (("Uname information:.*")
10471 "Uname information: Linux\n")
10472 ;; Remove unnecessary store reference.
10473 (("C Compiler:.*")
10474 "C Compiler: GCC\n"))
10475 (rename-file "Makevars.in" "Makevars")
10476 (substitute* "Makevars"
10477 (("HDF5_CXX_LIB=.*")
10478 (string-append "HDF5_CXX_LIB="
10479 (assoc-ref inputs "hdf5") "/lib/libhdf5_cpp.a\n"))
10480 (("HDF5_LIB=.*")
10481 (string-append "HDF5_LIB="
10482 (assoc-ref inputs "hdf5") "/lib/libhdf5.a\n"))
10483 (("HDF5_CXX_INCLUDE=.*") "HDF5_CXX_INCLUDE=./hdf5/c++/src\n")
10484 (("HDF5_INCLUDE=.*") "HDF5_INCLUDE=./hdf5/src\n")
10485 ;; szip is non-free software
10486 (("cp \\$\\{SZIP_LIB\\}.*") "")
10487 (("\\$\\{USER_LIB_DIR\\}libsz.a") "")))
10488 #t)))))
10489 (inputs
10490 `(("zlib" ,zlib)))
10491 (propagated-inputs
10492 `(("hdf5" ,hdf5-1.10)))
10493 (native-inputs
10494 `(("hdf5-source" ,(package-source hdf5-1.10))))
10495 (home-page "https://bioconductor.org/packages/Rhdf5lib")
10496 (synopsis "HDF5 library as an R package")
10497 (description "This package provides C and C++ HDF5 libraries for use in R
10498 packages.")
10499 (license license:artistic2.0)))
10500
10501 (define-public r-beachmat
10502 (package
10503 (name "r-beachmat")
10504 (version "1.4.0")
10505 (source
10506 (origin
10507 (method url-fetch)
10508 (uri (bioconductor-uri "beachmat" version))
10509 (sha256
10510 (base32
10511 "07zgmms0qg8gw7x0js46965bbhpfj2aa1h5ixdz9r332bxv9cdmr"))))
10512 (build-system r-build-system)
10513 (inputs
10514 `(("hdf5" ,hdf5)
10515 ("zlib" ,zlib)))
10516 (propagated-inputs
10517 `(("r-biocgenerics" ,r-biocgenerics)
10518 ("r-delayedarray" ,r-delayedarray)
10519 ("r-hdf5array" ,r-hdf5array)
10520 ("r-rcpp" ,r-rcpp)
10521 ("r-rhdf5" ,r-rhdf5)
10522 ("r-rhdf5lib" ,r-rhdf5lib)))
10523 (home-page "https://bioconductor.org/packages/beachmat")
10524 (synopsis "Compiling Bioconductor to handle each matrix type")
10525 (description "This package provides a consistent C++ class interface for a
10526 variety of commonly used matrix types, including sparse and HDF5-backed
10527 matrices.")
10528 (license license:gpl3)))
10529
10530 (define-public r-singlecellexperiment
10531 (package
10532 (name "r-singlecellexperiment")
10533 (version "1.4.1")
10534 (source
10535 (origin
10536 (method url-fetch)
10537 (uri (bioconductor-uri "SingleCellExperiment" version))
10538 (sha256
10539 (base32
10540 "12139kk9cqgzpm6f3cwdsq31gj5lxamz2q939dy9fa0fa54gdaq4"))))
10541 (properties
10542 `((upstream-name . "SingleCellExperiment")))
10543 (build-system r-build-system)
10544 (propagated-inputs
10545 `(("r-biocgenerics" ,r-biocgenerics)
10546 ("r-s4vectors" ,r-s4vectors)
10547 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10548 (home-page "https://bioconductor.org/packages/SingleCellExperiment")
10549 (synopsis "S4 classes for single cell data")
10550 (description "This package defines an S4 class for storing data from
10551 single-cell experiments. This includes specialized methods to store and
10552 retrieve spike-in information, dimensionality reduction coordinates and size
10553 factors for each cell, along with the usual metadata for genes and
10554 libraries.")
10555 (license license:gpl3)))
10556
10557 (define-public r-scater
10558 (package
10559 (name "r-scater")
10560 (version "1.10.1")
10561 (source (origin
10562 (method url-fetch)
10563 (uri (bioconductor-uri "scater" version))
10564 (sha256
10565 (base32
10566 "0rijhy7g5qmcn927y1wyd63la1fhyar9fv1hccsqd23jd98yc55a"))))
10567 (build-system r-build-system)
10568 (propagated-inputs
10569 `(("r-beachmat" ,r-beachmat)
10570 ("r-biocgenerics" ,r-biocgenerics)
10571 ("r-biocparallel" ,r-biocparallel)
10572 ("r-delayedarray" ,r-delayedarray)
10573 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10574 ("r-dplyr" ,r-dplyr)
10575 ("r-ggbeeswarm" ,r-ggbeeswarm)
10576 ("r-ggplot2" ,r-ggplot2)
10577 ("r-matrix" ,r-matrix)
10578 ("r-plyr" ,r-plyr)
10579 ("r-rcpp" ,r-rcpp)
10580 ("r-reshape2" ,r-reshape2)
10581 ("r-rhdf5lib" ,r-rhdf5lib)
10582 ("r-s4vectors" ,r-s4vectors)
10583 ("r-singlecellexperiment" ,r-singlecellexperiment)
10584 ("r-summarizedexperiment" ,r-summarizedexperiment)
10585 ("r-viridis" ,r-viridis)))
10586 (home-page "https://github.com/davismcc/scater")
10587 (synopsis "Single-cell analysis toolkit for gene expression data in R")
10588 (description "This package provides a collection of tools for doing
10589 various analyses of single-cell RNA-seq gene expression data, with a focus on
10590 quality control.")
10591 (license license:gpl2+)))
10592
10593 (define-public r-scran
10594 (package
10595 (name "r-scran")
10596 (version "1.10.2")
10597 (source
10598 (origin
10599 (method url-fetch)
10600 (uri (bioconductor-uri "scran" version))
10601 (sha256
10602 (base32
10603 "07mgilr3gq3lnrm1fjm9zhz4w7970bjhsykln1drqy9gkzj5sn7g"))))
10604 (build-system r-build-system)
10605 (propagated-inputs
10606 `(("r-beachmat" ,r-beachmat)
10607 ("r-biocgenerics" ,r-biocgenerics)
10608 ("r-biocneighbors" ,r-biocneighbors)
10609 ("r-biocparallel" ,r-biocparallel)
10610 ("r-delayedarray" ,r-delayedarray)
10611 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10612 ("r-dynamictreecut" ,r-dynamictreecut)
10613 ("r-edger" ,r-edger)
10614 ("r-igraph" ,r-igraph)
10615 ("r-limma" ,r-limma)
10616 ("r-matrix" ,r-matrix)
10617 ("r-rcpp" ,r-rcpp)
10618 ("r-rhdf5lib" ,r-rhdf5lib)
10619 ("r-s4vectors" ,r-s4vectors)
10620 ("r-scater" ,r-scater)
10621 ("r-singlecellexperiment" ,r-singlecellexperiment)
10622 ("r-statmod" ,r-statmod)
10623 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10624 (home-page "https://bioconductor.org/packages/scran")
10625 (synopsis "Methods for single-cell RNA-Seq data analysis")
10626 (description "This package implements a variety of low-level analyses of
10627 single-cell RNA-seq data. Methods are provided for normalization of
10628 cell-specific biases, assignment of cell cycle phase, and detection of highly
10629 variable and significantly correlated genes.")
10630 (license license:gpl3)))
10631
10632 (define-public r-delayedmatrixstats
10633 (package
10634 (name "r-delayedmatrixstats")
10635 (version "1.4.0")
10636 (source
10637 (origin
10638 (method url-fetch)
10639 (uri (bioconductor-uri "DelayedMatrixStats" version))
10640 (sha256
10641 (base32
10642 "03fk2avl1vyjv2wslczkc82qr0zmp1ra8iimd47pbmnnm839ly4w"))))
10643 (properties
10644 `((upstream-name . "DelayedMatrixStats")))
10645 (build-system r-build-system)
10646 (propagated-inputs
10647 `(("r-biocparallel" ,r-biocparallel)
10648 ("r-delayedarray" ,r-delayedarray)
10649 ("r-hdf5array" ,r-hdf5array)
10650 ("r-iranges" ,r-iranges)
10651 ("r-matrix" ,r-matrix)
10652 ("r-matrixstats" ,r-matrixstats)
10653 ("r-s4vectors" ,r-s4vectors)))
10654 (home-page "https://github.com/PeteHaitch/DelayedMatrixStats")
10655 (synopsis "Functions that apply to rows and columns of DelayedMatrix objects")
10656 (description
10657 "This package provides a port of the @code{matrixStats} API for use with
10658 @code{DelayedMatrix} objects from the @code{DelayedArray} package. It
10659 contains high-performing functions operating on rows and columns of
10660 @code{DelayedMatrix} objects, e.g. @code{colMedians}, @code{rowMedians},
10661 @code{colRanks}, @code{rowRanks}, @code{colSds}, and @code{rowSds}. Functions
10662 are optimized per data type and for subsetted calculations such that both
10663 memory usage and processing time is minimized.")
10664 (license license:expat)))
10665
10666 (define-public r-phangorn
10667 (package
10668 (name "r-phangorn")
10669 (version "2.5.3")
10670 (source
10671 (origin
10672 (method url-fetch)
10673 (uri (cran-uri "phangorn" version))
10674 (sha256
10675 (base32
10676 "1bv86yfk5r015s7ij6v4zz7bagwrw9m13yfs5853drxb19d5h1m3"))))
10677 (build-system r-build-system)
10678 (propagated-inputs
10679 `(("r-ape" ,r-ape)
10680 ("r-fastmatch" ,r-fastmatch)
10681 ("r-igraph" ,r-igraph)
10682 ("r-magrittr" ,r-magrittr)
10683 ("r-matrix" ,r-matrix)
10684 ("r-quadprog" ,r-quadprog)
10685 ("r-rcpp" ,r-rcpp)))
10686 (home-page "https://github.com/KlausVigo/phangorn")
10687 (synopsis "Phylogenetic analysis in R")
10688 (description
10689 "Phangorn is a package for phylogenetic analysis in R. It supports
10690 estimation of phylogenetic trees and networks using Maximum Likelihood,
10691 Maximum Parsimony, distance methods and Hadamard conjugation.")
10692 (license license:gpl2+)))
10693
10694 (define-public r-dropbead
10695 (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
10696 (revision "2"))
10697 (package
10698 (name "r-dropbead")
10699 (version (string-append "0-" revision "." (string-take commit 7)))
10700 (source
10701 (origin
10702 (method git-fetch)
10703 (uri (git-reference
10704 (url "https://github.com/rajewsky-lab/dropbead.git")
10705 (commit commit)))
10706 (file-name (git-file-name name version))
10707 (sha256
10708 (base32
10709 "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
10710 (build-system r-build-system)
10711 (propagated-inputs
10712 `(("r-ggplot2" ,r-ggplot2)
10713 ("r-rcolorbrewer" ,r-rcolorbrewer)
10714 ("r-gridextra" ,r-gridextra)
10715 ("r-gplots" ,r-gplots)
10716 ("r-plyr" ,r-plyr)))
10717 (home-page "https://github.com/rajewsky-lab/dropbead")
10718 (synopsis "Basic exploration and analysis of Drop-seq data")
10719 (description "This package offers a quick and straight-forward way to
10720 explore and perform basic analysis of single cell sequencing data coming from
10721 droplet sequencing. It has been particularly tailored for Drop-seq.")
10722 (license license:gpl3))))
10723
10724 (define htslib-for-sambamba
10725 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
10726 (package
10727 (inherit htslib)
10728 (name "htslib-for-sambamba")
10729 (version (string-append "1.3.1-1." (string-take commit 9)))
10730 (source
10731 (origin
10732 (method git-fetch)
10733 (uri (git-reference
10734 (url "https://github.com/lomereiter/htslib.git")
10735 (commit commit)))
10736 (file-name (string-append "htslib-" version "-checkout"))
10737 (sha256
10738 (base32
10739 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
10740 (native-inputs
10741 `(("autoconf" ,autoconf)
10742 ("automake" ,automake)
10743 ,@(package-native-inputs htslib))))))
10744
10745 (define-public sambamba
10746 (package
10747 (name "sambamba")
10748 (version "0.6.8")
10749 (source
10750 (origin
10751 (method git-fetch)
10752 (uri (git-reference
10753 (url "https://github.com/lomereiter/sambamba.git")
10754 (commit (string-append "v" version))))
10755 (file-name (string-append name "-" version "-checkout"))
10756 (sha256
10757 (base32
10758 "0k0cz3qcv98p6cq09zlbgnjsggxcqbcmzxg5zikgcgbr2nfq4lry"))))
10759 (build-system gnu-build-system)
10760 (arguments
10761 `(#:tests? #f ; there is no test target
10762 #:parallel-build? #f ; not supported
10763 #:phases
10764 (modify-phases %standard-phases
10765 (delete 'configure)
10766 (add-after 'unpack 'fix-ldc-version
10767 (lambda _
10768 (substitute* "gen_ldc_version_info.py"
10769 (("/usr/bin/env.*") (which "python3")))
10770 (substitute* "Makefile"
10771 ;; We use ldc2 instead of ldmd2 to compile sambamba.
10772 (("\\$\\(shell which ldmd2\\)") (which "ldc2")))
10773 #t))
10774 (add-after 'unpack 'place-biod-and-undead
10775 (lambda* (#:key inputs #:allow-other-keys)
10776 (copy-recursively (assoc-ref inputs "biod") "BioD")
10777 (copy-recursively (assoc-ref inputs "undead") "undeaD")
10778 #t))
10779 (add-after 'unpack 'unbundle-prerequisites
10780 (lambda _
10781 (substitute* "Makefile"
10782 (("htslib/libhts.a lz4/lib/liblz4.a")
10783 "-L-lhts -L-llz4")
10784 ((" lz4-static htslib-static") ""))
10785 #t))
10786 (replace 'install
10787 (lambda* (#:key outputs #:allow-other-keys)
10788 (let* ((out (assoc-ref outputs "out"))
10789 (bin (string-append out "/bin")))
10790 (mkdir-p bin)
10791 (install-file "bin/sambamba" bin)
10792 #t))))))
10793 (native-inputs
10794 `(("ldc" ,ldc)
10795 ("rdmd" ,rdmd)
10796 ("python" ,python)
10797 ("biod"
10798 ,(let ((commit "4f1a7d2fb7ef3dfe962aa357d672f354ebfbe42e"))
10799 (origin
10800 (method git-fetch)
10801 (uri (git-reference
10802 (url "https://github.com/biod/BioD.git")
10803 (commit commit)))
10804 (file-name (string-append "biod-"
10805 (string-take commit 9)
10806 "-checkout"))
10807 (sha256
10808 (base32
10809 "1k5pdjv1qvi0a3rwd1sfq6zbj37l86i7bf710m4c0y6737lxj426")))))
10810 ("undead"
10811 ,(let ((commit "9be93876982b5f14fcca60832563b3cd767dd84d"))
10812 (origin
10813 (method git-fetch)
10814 (uri (git-reference
10815 (url "https://github.com/biod/undeaD.git")
10816 (commit commit)))
10817 (file-name (string-append "undead-"
10818 (string-take commit 9)
10819 "-checkout"))
10820 (sha256
10821 (base32
10822 "1xfarj0nqlmi5jd1vmcmm7pabzaf9hxyvk6hp0d6jslb5k9r8r3d")))))))
10823 (inputs
10824 `(("lz4" ,lz4)
10825 ("htslib" ,htslib-for-sambamba)))
10826 (home-page "http://lomereiter.github.io/sambamba")
10827 (synopsis "Tools for working with SAM/BAM data")
10828 (description "Sambamba is a high performance modern robust and
10829 fast tool (and library), written in the D programming language, for
10830 working with SAM and BAM files. Current parallelised functionality is
10831 an important subset of samtools functionality, including view, index,
10832 sort, markdup, and depth.")
10833 (license license:gpl2+)))
10834
10835 (define-public ritornello
10836 (package
10837 (name "ritornello")
10838 (version "2.0.1")
10839 (source (origin
10840 (method git-fetch)
10841 (uri (git-reference
10842 (url "https://github.com/KlugerLab/Ritornello.git")
10843 (commit (string-append "v" version))))
10844 (file-name (git-file-name name version))
10845 (sha256
10846 (base32
10847 "1xahvq215qld7x1w8vpa5zbrsj6p9crb9shqa2x89sb0aaxa02jk"))))
10848 (build-system gnu-build-system)
10849 (arguments
10850 `(#:tests? #f ; there are no tests
10851 #:phases
10852 (modify-phases %standard-phases
10853 (add-after 'unpack 'patch-samtools-references
10854 (lambda* (#:key inputs #:allow-other-keys)
10855 (substitute* '("src/SamStream.h"
10856 "src/FLD.cpp")
10857 (("<sam.h>") "<samtools/sam.h>"))
10858 #t))
10859 (delete 'configure)
10860 (replace 'install
10861 (lambda* (#:key inputs outputs #:allow-other-keys)
10862 (let* ((out (assoc-ref outputs "out"))
10863 (bin (string-append out "/bin/")))
10864 (mkdir-p bin)
10865 (install-file "bin/Ritornello" bin)
10866 #t))))))
10867 (inputs
10868 `(("samtools" ,samtools-0.1)
10869 ("fftw" ,fftw)
10870 ("boost" ,boost)
10871 ("zlib" ,zlib)))
10872 (home-page "https://github.com/KlugerLab/Ritornello")
10873 (synopsis "Control-free peak caller for ChIP-seq data")
10874 (description "Ritornello is a ChIP-seq peak calling algorithm based on
10875 signal processing that can accurately call binding events without the need to
10876 do a pair total DNA input or IgG control sample. It has been tested for use
10877 with narrow binding events such as transcription factor ChIP-seq.")
10878 (license license:gpl3+)))
10879
10880 (define-public trim-galore
10881 (package
10882 (name "trim-galore")
10883 (version "0.6.1")
10884 (source
10885 (origin
10886 (method git-fetch)
10887 (uri (git-reference
10888 (url "https://github.com/FelixKrueger/TrimGalore.git")
10889 (commit version)))
10890 (file-name (git-file-name name version))
10891 (sha256
10892 (base32
10893 "1y31wbxwkm9xqzr5zv1pk5q418whnmlmgmfyxxpnl12h83m2i9iv"))))
10894 (build-system gnu-build-system)
10895 (arguments
10896 `(#:tests? #f ; no tests
10897 #:phases
10898 (modify-phases %standard-phases
10899 (replace 'configure
10900 (lambda _
10901 ;; Trim Galore tries to figure out what version of Python
10902 ;; cutadapt is using by looking at the shebang. Of course that
10903 ;; doesn't work, because cutadapt is wrapped in a shell script.
10904 (substitute* "trim_galore"
10905 (("my \\$python_return.*")
10906 "my $python_return = \"Python 3.999\";\n"))
10907 #t))
10908 (delete 'build)
10909 (add-after 'unpack 'hardcode-tool-references
10910 (lambda* (#:key inputs #:allow-other-keys)
10911 (substitute* "trim_galore"
10912 (("\\$path_to_cutadapt = 'cutadapt'")
10913 (string-append "$path_to_cutadapt = '"
10914 (assoc-ref inputs "cutadapt")
10915 "/bin/cutadapt'"))
10916 (("\\$compression_path = \"gzip\"")
10917 (string-append "$compression_path = \""
10918 (assoc-ref inputs "gzip")
10919 "/bin/gzip\""))
10920 (("\"gunzip")
10921 (string-append "\""
10922 (assoc-ref inputs "gzip")
10923 "/bin/gunzip"))
10924 (("\"pigz")
10925 (string-append "\""
10926 (assoc-ref inputs "pigz")
10927 "/bin/pigz")))
10928 #t))
10929 (replace 'install
10930 (lambda* (#:key outputs #:allow-other-keys)
10931 (let ((bin (string-append (assoc-ref outputs "out")
10932 "/bin")))
10933 (mkdir-p bin)
10934 (install-file "trim_galore" bin)
10935 #t))))))
10936 (inputs
10937 `(("gzip" ,gzip)
10938 ("perl" ,perl)
10939 ("pigz" ,pigz)
10940 ("cutadapt" ,cutadapt)))
10941 (native-inputs
10942 `(("unzip" ,unzip)))
10943 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
10944 (synopsis "Wrapper around Cutadapt and FastQC")
10945 (description "Trim Galore! is a wrapper script to automate quality and
10946 adapter trimming as well as quality control, with some added functionality to
10947 remove biased methylation positions for RRBS sequence files.")
10948 (license license:gpl3+)))
10949
10950 (define-public gess
10951 (package
10952 (name "gess")
10953 (version "1.0")
10954 (source (origin
10955 (method url-fetch)
10956 (uri (string-append "http://compbio.uthscsa.edu/"
10957 "GESS_Web/files/"
10958 "gess-" version ".src.tar.gz"))
10959 (sha256
10960 (base32
10961 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
10962 (build-system gnu-build-system)
10963 (arguments
10964 `(#:tests? #f ; no tests
10965 #:phases
10966 (modify-phases %standard-phases
10967 (delete 'configure)
10968 (delete 'build)
10969 (replace 'install
10970 (lambda* (#:key inputs outputs #:allow-other-keys)
10971 (let* ((python (assoc-ref inputs "python"))
10972 (out (assoc-ref outputs "out"))
10973 (bin (string-append out "/bin/"))
10974 (target (string-append
10975 out "/lib/python"
10976 ,(version-major+minor
10977 (package-version python))
10978 "/site-packages/gess/")))
10979 (mkdir-p target)
10980 (copy-recursively "." target)
10981 ;; Make GESS.py executable
10982 (chmod (string-append target "GESS.py") #o555)
10983 ;; Add Python shebang to the top and make Matplotlib
10984 ;; usable.
10985 (substitute* (string-append target "GESS.py")
10986 (("\"\"\"Description:" line)
10987 (string-append "#!" (which "python") "
10988 import matplotlib
10989 matplotlib.use('Agg')
10990 " line)))
10991 ;; Make sure GESS has all modules in its path
10992 (wrap-program (string-append target "GESS.py")
10993 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
10994 (mkdir-p bin)
10995 (symlink (string-append target "GESS.py")
10996 (string-append bin "GESS.py"))
10997 #t))))))
10998 (inputs
10999 `(("python" ,python-2)
11000 ("python2-pysam" ,python2-pysam)
11001 ("python2-scipy" ,python2-scipy)
11002 ("python2-numpy" ,python2-numpy)
11003 ("python2-networkx" ,python2-networkx)
11004 ("python2-biopython" ,python2-biopython)))
11005 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
11006 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11007 (description
11008 "GESS is an implementation of a novel computational method to detect de
11009 novo exon-skipping events directly from raw RNA-seq data without the prior
11010 knowledge of gene annotation information. GESS stands for the graph-based
11011 exon-skipping scanner detection scheme.")
11012 (license license:bsd-3)))
11013
11014 (define-public phylip
11015 (package
11016 (name "phylip")
11017 (version "3.696")
11018 (source
11019 (origin
11020 (method url-fetch)
11021 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11022 "download/phylip-" version ".tar.gz"))
11023 (sha256
11024 (base32
11025 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11026 (build-system gnu-build-system)
11027 (arguments
11028 `(#:tests? #f ; no check target
11029 #:make-flags (list "-f" "Makefile.unx" "install")
11030 #:parallel-build? #f ; not supported
11031 #:phases
11032 (modify-phases %standard-phases
11033 (add-after 'unpack 'enter-dir
11034 (lambda _ (chdir "src") #t))
11035 (delete 'configure)
11036 (replace 'install
11037 (lambda* (#:key inputs outputs #:allow-other-keys)
11038 (let ((target (string-append (assoc-ref outputs "out")
11039 "/bin")))
11040 (mkdir-p target)
11041 (for-each (lambda (file)
11042 (install-file file target))
11043 (find-files "../exe" ".*")))
11044 #t)))))
11045 (home-page "http://evolution.genetics.washington.edu/phylip/")
11046 (synopsis "Tools for inferring phylogenies")
11047 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11048 programs for inferring phylogenies (evolutionary trees).")
11049 (license license:bsd-2)))
11050
11051 (define-public imp
11052 (package
11053 (name "imp")
11054 (version "2.6.2")
11055 (source
11056 (origin
11057 (method url-fetch)
11058 (uri (string-append "https://integrativemodeling.org/"
11059 version "/download/imp-" version ".tar.gz"))
11060 (sha256
11061 (base32
11062 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
11063 (build-system cmake-build-system)
11064 (arguments
11065 `(;; FIXME: Some tests fail because they produce warnings, others fail
11066 ;; because the PYTHONPATH does not include the modeller's directory.
11067 #:tests? #f))
11068 (inputs
11069 `(("boost" ,boost)
11070 ("gsl" ,gsl)
11071 ("swig" ,swig)
11072 ("hdf5" ,hdf5)
11073 ("fftw" ,fftw)
11074 ("python" ,python-2)))
11075 (propagated-inputs
11076 `(("python2-numpy" ,python2-numpy)
11077 ("python2-scipy" ,python2-scipy)
11078 ("python2-pandas" ,python2-pandas)
11079 ("python2-scikit-learn" ,python2-scikit-learn)
11080 ("python2-networkx" ,python2-networkx)))
11081 (home-page "https://integrativemodeling.org")
11082 (synopsis "Integrative modeling platform")
11083 (description "IMP's broad goal is to contribute to a comprehensive
11084 structural characterization of biomolecules ranging in size and complexity
11085 from small peptides to large macromolecular assemblies, by integrating data
11086 from diverse biochemical and biophysical experiments. IMP provides a C++ and
11087 Python toolbox for solving complex modeling problems, and a number of
11088 applications for tackling some common problems in a user-friendly way.")
11089 ;; IMP is largely available under the GNU Lesser GPL; see the file
11090 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11091 ;; available under the GNU GPL (see the file COPYING.GPL).
11092 (license (list license:lgpl2.1+
11093 license:gpl3+))))
11094
11095 (define-public tadbit
11096 (package
11097 (name "tadbit")
11098 (version "0.2.0")
11099 (source (origin
11100 (method git-fetch)
11101 (uri (git-reference
11102 (url "https://github.com/3DGenomes/TADbit.git")
11103 (commit (string-append "v" version))))
11104 (file-name (git-file-name name version))
11105 (sha256
11106 (base32
11107 "07g3aj648prmsvxp9caz5yl41k0y0647vxh0f5p3w8376mfiljd0"))))
11108 (build-system python-build-system)
11109 (arguments
11110 `(;; Tests are included and must be run after installation, but
11111 ;; they are incomplete and thus cannot be run.
11112 #:tests? #f
11113 #:python ,python-2
11114 #:phases
11115 (modify-phases %standard-phases
11116 (add-after 'unpack 'fix-problems-with-setup.py
11117 (lambda* (#:key outputs #:allow-other-keys)
11118 ;; setup.py opens these files for writing
11119 (chmod "_pytadbit/_version.py" #o664)
11120 (chmod "README.rst" #o664)
11121
11122 ;; Don't attempt to install the bash completions to
11123 ;; the home directory.
11124 (rename-file "extras/.bash_completion"
11125 "extras/tadbit")
11126 (substitute* "setup.py"
11127 (("\\(path.expanduser\\('~'\\)")
11128 (string-append "(\""
11129 (assoc-ref outputs "out")
11130 "/etc/bash_completion.d\""))
11131 (("extras/\\.bash_completion")
11132 "extras/tadbit"))
11133 #t)))))
11134 (inputs
11135 ;; TODO: add Chimera for visualization
11136 `(("imp" ,imp)
11137 ("mcl" ,mcl)
11138 ("python2-scipy" ,python2-scipy)
11139 ("python2-numpy" ,python2-numpy)
11140 ("python2-matplotlib" ,python2-matplotlib)
11141 ("python2-pysam" ,python2-pysam)))
11142 (home-page "https://3dgenomes.github.io/TADbit/")
11143 (synopsis "Analyze, model, and explore 3C-based data")
11144 (description
11145 "TADbit is a complete Python library to deal with all steps to analyze,
11146 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11147 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
11148 correct interaction matrices, identify and compare the so-called
11149 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
11150 interaction matrices, and finally, extract structural properties from the
11151 models. TADbit is complemented by TADkit for visualizing 3D models.")
11152 (license license:gpl3+)))
11153
11154 (define-public kentutils
11155 (package
11156 (name "kentutils")
11157 ;; 302.1.0 is out, but the only difference is the inclusion of
11158 ;; pre-built binaries.
11159 (version "302.0.0")
11160 (source
11161 (origin
11162 (method git-fetch)
11163 (uri (git-reference
11164 (url "https://github.com/ENCODE-DCC/kentUtils.git")
11165 (commit (string-append "v" version))))
11166 (file-name (git-file-name name version))
11167 (sha256
11168 (base32
11169 "0n1wbyjpzii2b9qhyp9r1q76j623cggpg3y8fmw78ld3z4y7ivha"))
11170 (modules '((guix build utils)
11171 (srfi srfi-26)
11172 (ice-9 ftw)))
11173 (snippet
11174 '(begin
11175 ;; Only the contents of the specified directories are free
11176 ;; for all uses, so we remove the rest. "hg/autoSql" and
11177 ;; "hg/autoXml" are nominally free, but they depend on a
11178 ;; library that is built from the sources in "hg/lib",
11179 ;; which is nonfree.
11180 (let ((free (list "." ".."
11181 "utils" "lib" "inc" "tagStorm"
11182 "parasol" "htslib"))
11183 (directory? (lambda (file)
11184 (eq? 'directory (stat:type (stat file))))))
11185 (for-each (lambda (file)
11186 (and (directory? file)
11187 (delete-file-recursively file)))
11188 (map (cut string-append "src/" <>)
11189 (scandir "src"
11190 (lambda (file)
11191 (not (member file free)))))))
11192 ;; Only make the utils target, not the userApps target,
11193 ;; because that requires libraries we won't build.
11194 (substitute* "Makefile"
11195 ((" userApps") " utils"))
11196 ;; Only build libraries that are free.
11197 (substitute* "src/makefile"
11198 (("DIRS =.*") "DIRS =\n")
11199 (("cd jkOwnLib.*") "")
11200 ((" hgLib") "")
11201 (("cd hg.*") ""))
11202 (substitute* "src/utils/makefile"
11203 ;; These tools depend on "jkhgap.a", which is part of the
11204 ;; nonfree "src/hg/lib" directory.
11205 (("raSqlQuery") "")
11206 (("pslLiftSubrangeBlat") "")
11207
11208 ;; Do not build UCSC tools, which may require nonfree
11209 ;; components.
11210 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11211 #t))))
11212 (build-system gnu-build-system)
11213 (arguments
11214 `( ;; There is no global test target and the test target for
11215 ;; individual tools depends on input files that are not
11216 ;; included.
11217 #:tests? #f
11218 #:phases
11219 (modify-phases %standard-phases
11220 (add-after 'unpack 'fix-permissions
11221 (lambda _ (make-file-writable "src/inc/localEnvironment.mk") #t))
11222 (add-after 'unpack 'fix-paths
11223 (lambda _
11224 (substitute* "Makefile"
11225 (("/bin/echo") (which "echo")))
11226 #t))
11227 (add-after 'unpack 'prepare-samtabix
11228 (lambda* (#:key inputs #:allow-other-keys)
11229 (copy-recursively (assoc-ref inputs "samtabix")
11230 "samtabix")
11231 #t))
11232 (delete 'configure)
11233 (replace 'install
11234 (lambda* (#:key outputs #:allow-other-keys)
11235 (let ((bin (string-append (assoc-ref outputs "out")
11236 "/bin")))
11237 (copy-recursively "bin" bin))
11238 #t)))))
11239 (native-inputs
11240 `(("samtabix"
11241 ,(origin
11242 (method git-fetch)
11243 (uri (git-reference
11244 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11245 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11246 (sha256
11247 (base32
11248 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11249 (inputs
11250 `(("zlib" ,zlib)
11251 ("tcsh" ,tcsh)
11252 ("perl" ,perl)
11253 ("libpng" ,libpng)
11254 ("mariadb" ,mariadb)
11255 ("openssl" ,openssl)))
11256 (home-page "http://genome.cse.ucsc.edu/index.html")
11257 (synopsis "Assorted bioinformatics utilities")
11258 (description "This package provides the kentUtils, a selection of
11259 bioinformatics utilities used in combination with the UCSC genome
11260 browser.")
11261 ;; Only a subset of the sources are released under a non-copyleft
11262 ;; free software license. All other sources are removed in a
11263 ;; snippet. See this bug report for an explanation of how the
11264 ;; license statements apply:
11265 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11266 (license (license:non-copyleft
11267 "http://genome.ucsc.edu/license/"
11268 "The contents of this package are free for all uses."))))
11269
11270 (define-public f-seq
11271 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11272 (revision "1"))
11273 (package
11274 (name "f-seq")
11275 (version (string-append "1.1-" revision "." (string-take commit 7)))
11276 (source (origin
11277 (method git-fetch)
11278 (uri (git-reference
11279 (url "https://github.com/aboyle/F-seq.git")
11280 (commit commit)))
11281 (file-name (string-append name "-" version))
11282 (sha256
11283 (base32
11284 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11285 (modules '((guix build utils)))
11286 ;; Remove bundled Java library archives.
11287 (snippet
11288 '(begin
11289 (for-each delete-file (find-files "lib" ".*"))
11290 #t))))
11291 (build-system ant-build-system)
11292 (arguments
11293 `(#:tests? #f ; no tests included
11294 #:phases
11295 (modify-phases %standard-phases
11296 (replace 'install
11297 (lambda* (#:key inputs outputs #:allow-other-keys)
11298 (let* ((target (assoc-ref outputs "out"))
11299 (bin (string-append target "/bin"))
11300 (doc (string-append target "/share/doc/f-seq"))
11301 (lib (string-append target "/lib")))
11302 (mkdir-p target)
11303 (mkdir-p doc)
11304 (substitute* "bin/linux/fseq"
11305 (("java") (which "java"))
11306 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11307 (string-append (assoc-ref inputs "java-commons-cli")
11308 "/share/java/commons-cli.jar"))
11309 (("REALDIR=.*")
11310 (string-append "REALDIR=" bin "\n")))
11311 (install-file "README.txt" doc)
11312 (install-file "bin/linux/fseq" bin)
11313 (install-file "build~/fseq.jar" lib)
11314 (copy-recursively "lib" lib)
11315 #t))))))
11316 (inputs
11317 `(("perl" ,perl)
11318 ("java-commons-cli" ,java-commons-cli)))
11319 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11320 (synopsis "Feature density estimator for high-throughput sequence tags")
11321 (description
11322 "F-Seq is a software package that generates a continuous tag sequence
11323 density estimation allowing identification of biologically meaningful sites
11324 such as transcription factor binding sites (ChIP-seq) or regions of open
11325 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11326 Browser.")
11327 (license license:gpl3+))))
11328
11329 (define-public bismark
11330 (package
11331 (name "bismark")
11332 (version "0.20.1")
11333 (source
11334 (origin
11335 (method git-fetch)
11336 (uri (git-reference
11337 (url "https://github.com/FelixKrueger/Bismark.git")
11338 (commit version)))
11339 (file-name (string-append name "-" version "-checkout"))
11340 (sha256
11341 (base32
11342 "0xchm3rgilj6vfjnyzfzzymfd7djr64sbrmrvs3njbwi66jqbzw9"))))
11343 (build-system perl-build-system)
11344 (arguments
11345 `(#:tests? #f ; there are no tests
11346 #:modules ((guix build utils)
11347 (ice-9 popen)
11348 (srfi srfi-26)
11349 (guix build perl-build-system))
11350 #:phases
11351 (modify-phases %standard-phases
11352 ;; The bundled plotly.js is minified.
11353 (add-after 'unpack 'replace-plotly.js
11354 (lambda* (#:key inputs #:allow-other-keys)
11355 (let* ((file (assoc-ref inputs "plotly.js"))
11356 (installed "plotly/plotly.js"))
11357 (let ((minified (open-pipe* OPEN_READ "uglify-js" file)))
11358 (call-with-output-file installed
11359 (cut dump-port minified <>))))
11360 #t))
11361 (delete 'configure)
11362 (delete 'build)
11363 (replace 'install
11364 (lambda* (#:key inputs outputs #:allow-other-keys)
11365 (let* ((out (assoc-ref outputs "out"))
11366 (bin (string-append out "/bin"))
11367 (share (string-append out "/share/bismark"))
11368 (docdir (string-append out "/share/doc/bismark"))
11369 (docs '("Docs/Bismark_User_Guide.html"))
11370 (scripts '("bismark"
11371 "bismark_genome_preparation"
11372 "bismark_methylation_extractor"
11373 "bismark2bedGraph"
11374 "bismark2report"
11375 "coverage2cytosine"
11376 "deduplicate_bismark"
11377 "filter_non_conversion"
11378 "bam2nuc"
11379 "bismark2summary"
11380 "NOMe_filtering")))
11381 (substitute* "bismark2report"
11382 (("\\$RealBin/plotly")
11383 (string-append share "/plotly")))
11384 (mkdir-p share)
11385 (mkdir-p docdir)
11386 (mkdir-p bin)
11387 (for-each (lambda (file) (install-file file bin))
11388 scripts)
11389 (for-each (lambda (file) (install-file file docdir))
11390 docs)
11391 (copy-recursively "Docs/Images" (string-append docdir "/Images"))
11392 (copy-recursively "plotly"
11393 (string-append share "/plotly"))
11394
11395 ;; Fix references to gunzip
11396 (substitute* (map (lambda (file)
11397 (string-append bin "/" file))
11398 scripts)
11399 (("\"gunzip -c")
11400 (string-append "\"" (assoc-ref inputs "gzip")
11401 "/bin/gunzip -c")))
11402 #t))))))
11403 (inputs
11404 `(("gzip" ,gzip)
11405 ("perl-carp" ,perl-carp)
11406 ("perl-getopt-long" ,perl-getopt-long)))
11407 (native-inputs
11408 `(("plotly.js"
11409 ,(origin
11410 (method url-fetch)
11411 (uri (string-append "https://raw.githubusercontent.com/plotly/plotly.js/"
11412 "v1.39.4/dist/plotly.js"))
11413 (sha256
11414 (base32 "138mwsr4nf5qif4mrxx286mpnagxd1xwl6k8aidrjgknaqg88zyr"))))
11415 ("uglify-js" ,uglify-js)))
11416 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11417 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11418 (description "Bismark is a program to map bisulfite treated sequencing
11419 reads to a genome of interest and perform methylation calls in a single step.
11420 The output can be easily imported into a genome viewer, such as SeqMonk, and
11421 enables a researcher to analyse the methylation levels of their samples
11422 straight away. Its main features are:
11423
11424 @itemize
11425 @item Bisulfite mapping and methylation calling in one single step
11426 @item Supports single-end and paired-end read alignments
11427 @item Supports ungapped and gapped alignments
11428 @item Alignment seed length, number of mismatches etc are adjustable
11429 @item Output discriminates between cytosine methylation in CpG, CHG
11430 and CHH context
11431 @end itemize\n")
11432 (license license:gpl3+)))
11433
11434 (define-public paml
11435 (package
11436 (name "paml")
11437 (version "4.9e")
11438 (source (origin
11439 (method url-fetch)
11440 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11441 "paml" version ".tgz"))
11442 (sha256
11443 (base32
11444 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11445 (modules '((guix build utils)))
11446 ;; Remove Windows binaries
11447 (snippet
11448 '(begin
11449 (for-each delete-file (find-files "." "\\.exe$"))
11450 #t))))
11451 (build-system gnu-build-system)
11452 (arguments
11453 `(#:tests? #f ; there are no tests
11454 #:make-flags '("CC=gcc")
11455 #:phases
11456 (modify-phases %standard-phases
11457 (replace 'configure
11458 (lambda _
11459 (substitute* "src/BFdriver.c"
11460 (("/bin/bash") (which "bash")))
11461 (chdir "src")
11462 #t))
11463 (replace 'install
11464 (lambda* (#:key outputs #:allow-other-keys)
11465 (let ((tools '("baseml" "basemlg" "codeml"
11466 "pamp" "evolver" "yn00" "chi2"))
11467 (bin (string-append (assoc-ref outputs "out") "/bin"))
11468 (docdir (string-append (assoc-ref outputs "out")
11469 "/share/doc/paml")))
11470 (mkdir-p bin)
11471 (for-each (lambda (file) (install-file file bin)) tools)
11472 (copy-recursively "../doc" docdir)
11473 #t))))))
11474 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11475 (synopsis "Phylogentic analysis by maximum likelihood")
11476 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11477 contains a few programs for model fitting and phylogenetic tree reconstruction
11478 using nucleotide or amino-acid sequence data.")
11479 ;; GPLv3 only
11480 (license license:gpl3)))
11481
11482 (define-public kallisto
11483 (package
11484 (name "kallisto")
11485 (version "0.44.0")
11486 (source (origin
11487 (method git-fetch)
11488 (uri (git-reference
11489 (url "https://github.com/pachterlab/kallisto.git")
11490 (commit (string-append "v" version))))
11491 (file-name (git-file-name name version))
11492 (sha256
11493 (base32
11494 "0nj382jiywqnpgvyhichajpkkh5r0bapn43f4dx40zdaq5v4m40m"))))
11495 (build-system cmake-build-system)
11496 (arguments
11497 `(#:tests? #f ; no "check" target
11498 #:phases
11499 (modify-phases %standard-phases
11500 (add-after 'unpack 'do-not-use-bundled-htslib
11501 (lambda _
11502 (substitute* "CMakeLists.txt"
11503 (("^ExternalProject_Add" m)
11504 (string-append "if (NEVER)\n" m))
11505 (("^\\)")
11506 (string-append ")\nendif(NEVER)"))
11507 (("include_directories\\(\\$\\{htslib_PREFIX.*" m)
11508 (string-append "# " m)))
11509 (substitute* "src/CMakeLists.txt"
11510 (("target_link_libraries\\(kallisto kallisto_core pthread \
11511 \\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/../ext/htslib/libhts.a\\)")
11512 "target_link_libraries(kallisto kallisto_core pthread hts)")
11513 (("include_directories\\(\\.\\./ext/htslib\\)") ""))
11514 #t)))))
11515 (inputs
11516 `(("hdf5" ,hdf5)
11517 ("htslib" ,htslib)
11518 ("zlib" ,zlib)))
11519 (home-page "http://pachterlab.github.io/kallisto/")
11520 (synopsis "Near-optimal RNA-Seq quantification")
11521 (description
11522 "Kallisto is a program for quantifying abundances of transcripts from
11523 RNA-Seq data, or more generally of target sequences using high-throughput
11524 sequencing reads. It is based on the novel idea of pseudoalignment for
11525 rapidly determining the compatibility of reads with targets, without the need
11526 for alignment. Pseudoalignment of reads preserves the key information needed
11527 for quantification, and kallisto is therefore not only fast, but also as
11528 accurate as existing quantification tools.")
11529 (license license:bsd-2)))
11530
11531 (define-public libgff
11532 (package
11533 (name "libgff")
11534 (version "1.0")
11535 (source (origin
11536 (method git-fetch)
11537 (uri (git-reference
11538 (url "https://github.com/Kingsford-Group/libgff.git")
11539 (commit (string-append "v" version))))
11540 (file-name (git-file-name name version))
11541 (sha256
11542 (base32
11543 "0n6vfjnq7a2mianipscbshrvbncss8z4zkgkbjw754p9043nfkps"))))
11544 (build-system cmake-build-system)
11545 (arguments `(#:tests? #f)) ; no tests included
11546 (home-page "https://github.com/Kingsford-Group/libgff")
11547 (synopsis "Parser library for reading/writing GFF files")
11548 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11549 code that is used in the Cufflinks codebase. The goal of this library is to
11550 provide this functionality without the necessity of drawing in a heavy-weight
11551 dependency like SeqAn.")
11552 (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
11553
11554 (define-public libdivsufsort
11555 (package
11556 (name "libdivsufsort")
11557 (version "2.0.1")
11558 (source (origin
11559 (method git-fetch)
11560 (uri (git-reference
11561 (url "https://github.com/y-256/libdivsufsort.git")
11562 (commit version)))
11563 (file-name (git-file-name name version))
11564 (sha256
11565 (base32
11566 "0fgdz9fzihlvjjrxy01md1bv9vh12rkgkwbm90b1hj5xpbaqp7z2"))))
11567 (build-system cmake-build-system)
11568 (arguments
11569 '(#:tests? #f ; there are no tests
11570 #:configure-flags
11571 ;; Needed for rapmap and sailfish.
11572 '("-DBUILD_DIVSUFSORT64=ON")))
11573 (home-page "https://github.com/y-256/libdivsufsort")
11574 (synopsis "Lightweight suffix-sorting library")
11575 (description "libdivsufsort is a software library that implements a
11576 lightweight suffix array construction algorithm. This library provides a
11577 simple and an efficient C API to construct a suffix array and a
11578 Burrows-Wheeler transformed string from a given string over a constant-size
11579 alphabet. The algorithm runs in O(n log n) worst-case time using only 5n+O(1)
11580 bytes of memory space, where n is the length of the string.")
11581 (license license:expat)))
11582
11583 (define-public sailfish
11584 (package
11585 (name "sailfish")
11586 (version "0.10.1")
11587 (source (origin
11588 (method git-fetch)
11589 (uri (git-reference
11590 (url "https://github.com/kingsfordgroup/sailfish.git")
11591 (commit (string-append "v" version))))
11592 (file-name (git-file-name name version))
11593 (sha256
11594 (base32
11595 "1amcc5hqvsl42hg4x19bi9vy47cl874s0lw1fmi0hwsdk9i8c03v"))
11596 (modules '((guix build utils)))
11597 (snippet
11598 '(begin
11599 ;; Delete bundled headers for eigen3.
11600 (delete-file-recursively "include/eigen3/")
11601 #t))))
11602 (build-system cmake-build-system)
11603 (arguments
11604 `(#:configure-flags
11605 (list (string-append "-DBOOST_INCLUDEDIR="
11606 (assoc-ref %build-inputs "boost")
11607 "/include/")
11608 (string-append "-DBOOST_LIBRARYDIR="
11609 (assoc-ref %build-inputs "boost")
11610 "/lib/")
11611 (string-append "-DBoost_LIBRARIES="
11612 "-lboost_iostreams "
11613 "-lboost_filesystem "
11614 "-lboost_system "
11615 "-lboost_thread "
11616 "-lboost_timer "
11617 "-lboost_chrono "
11618 "-lboost_program_options")
11619 "-DBoost_FOUND=TRUE"
11620 ;; Don't download RapMap---we already have it!
11621 "-DFETCHED_RAPMAP=1")
11622 ;; Tests must be run after installation and the location of the test
11623 ;; data file must be overridden. But the tests fail. It looks like
11624 ;; they are not really meant to be run.
11625 #:tests? #f
11626 #:phases
11627 (modify-phases %standard-phases
11628 ;; Boost cannot be found, even though it's right there.
11629 (add-after 'unpack 'do-not-look-for-boost
11630 (lambda* (#:key inputs #:allow-other-keys)
11631 (substitute* "CMakeLists.txt"
11632 (("find_package\\(Boost 1\\.53\\.0") "#"))
11633 #t))
11634 (add-after 'unpack 'do-not-assign-to-macro
11635 (lambda _
11636 (substitute* "include/spdlog/details/format.cc"
11637 (("const unsigned CHAR_WIDTH = 1;") ""))
11638 #t))
11639 (add-after 'unpack 'prepare-rapmap
11640 (lambda* (#:key inputs #:allow-other-keys)
11641 (let ((src "external/install/src/rapmap/")
11642 (include "external/install/include/rapmap/")
11643 (rapmap (assoc-ref inputs "rapmap")))
11644 (mkdir-p "/tmp/rapmap")
11645 (invoke "tar" "xf"
11646 (assoc-ref inputs "rapmap")
11647 "-C" "/tmp/rapmap"
11648 "--strip-components=1")
11649 (mkdir-p src)
11650 (mkdir-p include)
11651 (for-each (lambda (file)
11652 (install-file file src))
11653 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
11654 (copy-recursively "/tmp/rapmap/include" include))
11655 #t))
11656 (add-after 'unpack 'use-system-libraries
11657 (lambda* (#:key inputs #:allow-other-keys)
11658 (substitute* '("src/SailfishIndexer.cpp"
11659 "src/SailfishUtils.cpp"
11660 "src/SailfishQuantify.cpp"
11661 "src/FASTAParser.cpp"
11662 "include/PCA.hpp"
11663 "include/SailfishUtils.hpp"
11664 "include/SailfishIndex.hpp"
11665 "include/CollapsedEMOptimizer.hpp"
11666 "src/CollapsedEMOptimizer.cpp")
11667 (("#include \"jellyfish/config.h\"") ""))
11668 (substitute* "src/CMakeLists.txt"
11669 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11670 (string-append (assoc-ref inputs "jellyfish")
11671 "/include/jellyfish-" ,(package-version jellyfish)))
11672 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11673 (string-append (assoc-ref inputs "jellyfish")
11674 "/lib/libjellyfish-2.0.a"))
11675 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11676 (string-append (assoc-ref inputs "libdivsufsort")
11677 "/lib/libdivsufsort.so"))
11678 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11679 (string-append (assoc-ref inputs "libdivsufsort")
11680 "/lib/libdivsufsort64.so")))
11681 (substitute* "CMakeLists.txt"
11682 ;; Don't prefer static libs
11683 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11684 (("find_package\\(Jellyfish.*") "")
11685 (("ExternalProject_Add\\(libjellyfish") "message(")
11686 (("ExternalProject_Add\\(libgff") "message(")
11687 (("ExternalProject_Add\\(libsparsehash") "message(")
11688 (("ExternalProject_Add\\(libdivsufsort") "message("))
11689
11690 ;; Ensure that Eigen headers can be found
11691 (setenv "CPLUS_INCLUDE_PATH"
11692 (string-append (getenv "CPLUS_INCLUDE_PATH")
11693 ":"
11694 (assoc-ref inputs "eigen")
11695 "/include/eigen3"))
11696 #t)))))
11697 (inputs
11698 `(("boost" ,boost)
11699 ("eigen" ,eigen)
11700 ("jemalloc" ,jemalloc)
11701 ("jellyfish" ,jellyfish)
11702 ("sparsehash" ,sparsehash)
11703 ("rapmap" ,(origin
11704 (method git-fetch)
11705 (uri (git-reference
11706 (url "https://github.com/COMBINE-lab/RapMap.git")
11707 (commit (string-append "sf-v" version))))
11708 (file-name (string-append "rapmap-sf-v" version "-checkout"))
11709 (sha256
11710 (base32
11711 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
11712 (modules '((guix build utils)))
11713 ;; These files are expected to be excluded.
11714 (snippet
11715 '(begin (delete-file-recursively "include/spdlog")
11716 (for-each delete-file '("include/xxhash.h"
11717 "src/xxhash.c"))
11718 #t))))
11719 ("libdivsufsort" ,libdivsufsort)
11720 ("libgff" ,libgff)
11721 ("tbb" ,tbb)
11722 ("zlib" ,zlib)))
11723 (native-inputs
11724 `(("pkg-config" ,pkg-config)))
11725 (home-page "http://www.cs.cmu.edu/~ckingsf/software/sailfish")
11726 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
11727 (description "Sailfish is a tool for genomic transcript quantification
11728 from RNA-seq data. It requires a set of target transcripts (either from a
11729 reference or de-novo assembly) to quantify. All you need to run sailfish is a
11730 fasta file containing your reference transcripts and a (set of) fasta/fastq
11731 file(s) containing your reads.")
11732 (license license:gpl3+)))
11733
11734 (define libstadenio-for-salmon
11735 (package
11736 (name "libstadenio")
11737 (version "1.14.8")
11738 (source (origin
11739 (method git-fetch)
11740 (uri (git-reference
11741 (url "https://github.com/COMBINE-lab/staden-io_lib.git")
11742 (commit (string-append "v" version))))
11743 (file-name (string-append name "-" version "-checkout"))
11744 (sha256
11745 (base32
11746 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
11747 (build-system gnu-build-system)
11748 (arguments '(#:parallel-tests? #f)) ; not supported
11749 (inputs
11750 `(("zlib" ,zlib)))
11751 (native-inputs
11752 `(("perl" ,perl))) ; for tests
11753 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
11754 (synopsis "General purpose trace and experiment file library")
11755 (description "This package provides a library of file reading and writing
11756 code to provide a general purpose Trace file (and Experiment File) reading
11757 interface.
11758
11759 The following file formats are supported:
11760
11761 @enumerate
11762 @item SCF trace files
11763 @item ABI trace files
11764 @item ALF trace files
11765 @item ZTR trace files
11766 @item SFF trace archives
11767 @item SRF trace archives
11768 @item Experiment files
11769 @item Plain text files
11770 @item SAM/BAM sequence files
11771 @item CRAM sequence files
11772 @end enumerate\n")
11773 (license license:bsd-3)))
11774
11775 (define spdlog-for-salmon
11776 (package
11777 (name "spdlog")
11778 (version "0.14.0")
11779 (source (origin
11780 (method git-fetch)
11781 (uri (git-reference
11782 (url "https://github.com/COMBINE-lab/spdlog.git")
11783 (commit (string-append "v" version))))
11784 (file-name (string-append name "-" version "-checkout"))
11785 (sha256
11786 (base32
11787 "13730429gwlabi432ilpnja3sfvy0nn2719vnhhmii34xcdyc57q"))))
11788 (build-system cmake-build-system)
11789 (home-page "https://github.com/COMBINE-lab/spdlog")
11790 (synopsis "Very fast C++ logging library")
11791 (description "Spdlog is a very fast header-only C++ logging library with
11792 performance as its primary goal.")
11793 (license license:expat)))
11794
11795 ;; This is a modified variant of bwa for use with Salmon. It installs a
11796 ;; library to avoid having to build this as part of Salmon.
11797 (define bwa-for-salmon
11798 (package (inherit bwa)
11799 (name "bwa")
11800 (version "0.7.12.5")
11801 (source (origin
11802 (method git-fetch)
11803 (uri (git-reference
11804 (url "https://github.com/COMBINE-lab/bwa.git")
11805 (commit (string-append "v" version))))
11806 (file-name (string-append "bwa-for-salmon-" version "-checkout"))
11807 (sha256
11808 (base32
11809 "1z2qa64y0c5hky10510x137mnzlhz6k8qf27csw4w9j6qihq95gb"))))
11810 (build-system gnu-build-system)
11811 (arguments
11812 '(#:tests? #f ;no "check" target
11813 #:phases
11814 (modify-phases %standard-phases
11815 (replace 'install
11816 (lambda* (#:key outputs #:allow-other-keys)
11817 (let* ((out (assoc-ref outputs "out"))
11818 (bin (string-append out "/bin"))
11819 (lib (string-append out "/lib"))
11820 (doc (string-append out "/share/doc/bwa"))
11821 (man (string-append out "/share/man/man1"))
11822 (inc (string-append out "/include/bwa")))
11823 (install-file "bwa" bin)
11824 (install-file "README.md" doc)
11825 (install-file "bwa.1" man)
11826 (install-file "libbwa.a" lib)
11827 (mkdir-p lib)
11828 (mkdir-p inc)
11829 (for-each (lambda (file)
11830 (install-file file inc))
11831 (find-files "." "\\.h$")))
11832 #t))
11833 ;; no "configure" script
11834 (delete 'configure))))))
11835
11836 (define-public salmon
11837 (package
11838 (name "salmon")
11839 (version "0.9.1")
11840 (source (origin
11841 (method git-fetch)
11842 (uri (git-reference
11843 (url "https://github.com/COMBINE-lab/salmon.git")
11844 (commit (string-append "v" version))))
11845 (file-name (string-append name "-" version "-checkout"))
11846 (sha256
11847 (base32
11848 "1zi1ff4i7y2ykk0vdzysgwzzzv166vg2x77pj1mf4baclavxj87a"))
11849 (modules '((guix build utils)))
11850 (snippet
11851 '(begin
11852 ;; Delete bundled headers for eigen3.
11853 (delete-file-recursively "include/eigen3/")
11854 #t))))
11855 (build-system cmake-build-system)
11856 (arguments
11857 `(#:configure-flags
11858 (list (string-append "-DBOOST_INCLUDEDIR="
11859 (assoc-ref %build-inputs "boost")
11860 "/include/")
11861 (string-append "-DBOOST_LIBRARYDIR="
11862 (assoc-ref %build-inputs "boost")
11863 "/lib/")
11864 (string-append "-DBoost_LIBRARIES="
11865 "-lboost_iostreams "
11866 "-lboost_filesystem "
11867 "-lboost_system "
11868 "-lboost_thread "
11869 "-lboost_timer "
11870 "-lboost_chrono "
11871 "-lboost_program_options")
11872 "-DBoost_FOUND=TRUE"
11873 "-DTBB_LIBRARIES=tbb tbbmalloc"
11874 ;; Don't download RapMap---we already have it!
11875 "-DFETCHED_RAPMAP=1")
11876 #:phases
11877 (modify-phases %standard-phases
11878 ;; Boost cannot be found, even though it's right there.
11879 (add-after 'unpack 'do-not-look-for-boost
11880 (lambda* (#:key inputs #:allow-other-keys)
11881 (substitute* "CMakeLists.txt"
11882 (("find_package\\(Boost 1\\.53\\.0") "#"))
11883 #t))
11884 (add-after 'unpack 'do-not-phone-home
11885 (lambda _
11886 (substitute* "src/Salmon.cpp"
11887 (("getVersionMessage\\(\\)") "\"\""))
11888 #t))
11889 (add-after 'unpack 'prepare-rapmap
11890 (lambda* (#:key inputs #:allow-other-keys)
11891 (let ((src "external/install/src/rapmap/")
11892 (include "external/install/include/rapmap/")
11893 (rapmap (assoc-ref inputs "rapmap")))
11894 (mkdir-p src)
11895 (mkdir-p include)
11896 (for-each (lambda (file)
11897 (install-file file src))
11898 (find-files (string-append rapmap "/src") "\\.(c|cpp)"))
11899 (copy-recursively (string-append rapmap "/include") include)
11900 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
11901 "external/install/include/rapmap/FastxParser.hpp"
11902 "external/install/include/rapmap/concurrentqueue.h"
11903 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
11904 "external/install/src/rapmap/FastxParser.cpp"
11905 "external/install/src/rapmap/xxhash.c")))
11906 #t))
11907 (add-after 'unpack 'use-system-libraries
11908 (lambda* (#:key inputs #:allow-other-keys)
11909 (substitute* "src/CMakeLists.txt"
11910 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11911 (string-append (assoc-ref inputs "jellyfish")
11912 "/include/jellyfish-" ,(package-version jellyfish)))
11913 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11914 (string-append (assoc-ref inputs "jellyfish")
11915 "/lib/libjellyfish-2.0.a"))
11916 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11917 (string-append (assoc-ref inputs "libdivsufsort")
11918 "/lib/libdivsufsort.so"))
11919 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
11920 (string-append (assoc-ref inputs "libstadenio-for-salmon")
11921 "/lib/libstaden-read.a"))
11922 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libbwa.a")
11923 (string-append (assoc-ref inputs "bwa") "/lib/libbwa.a"))
11924 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11925 (string-append (assoc-ref inputs "libdivsufsort")
11926 "/lib/libdivsufsort64.so")))
11927 (substitute* "CMakeLists.txt"
11928 ;; Don't prefer static libs
11929 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11930 (("set\\(TBB_LIBRARIES") "message(")
11931 (("find_package\\(Jellyfish.*") "")
11932 (("ExternalProject_Add\\(libcereal") "message(")
11933 (("ExternalProject_Add\\(libbwa") "message(")
11934 (("ExternalProject_Add\\(libjellyfish") "message(")
11935 (("ExternalProject_Add\\(libgff") "message(")
11936 (("ExternalProject_Add\\(libtbb") "message(")
11937 (("ExternalProject_Add\\(libspdlog") "message(")
11938 (("ExternalProject_Add\\(libdivsufsort") "message(")
11939 (("ExternalProject_Add\\(libstadenio") "message(")
11940 (("ExternalProject_Add_Step\\(") "message("))
11941
11942 ;; Ensure that all headers can be found
11943 (setenv "CPLUS_INCLUDE_PATH"
11944 (string-append (getenv "CPLUS_INCLUDE_PATH")
11945 ":"
11946 (assoc-ref inputs "bwa")
11947 "/include/bwa"
11948 ":"
11949 (assoc-ref inputs "eigen")
11950 "/include/eigen3"))
11951 (setenv "CPATH"
11952 (string-append (assoc-ref inputs "bwa")
11953 "/include/bwa"
11954 ":"
11955 (assoc-ref inputs "eigen")
11956 "/include/eigen3"))
11957 #t))
11958 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
11959 ;; run. It only exists after the install phase.
11960 (add-after 'unpack 'fix-tests
11961 (lambda _
11962 (substitute* "src/CMakeLists.txt"
11963 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
11964 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
11965 #t)))))
11966 (inputs
11967 `(("boost" ,boost)
11968 ("bwa" ,bwa-for-salmon)
11969 ("bzip2" ,bzip2)
11970 ("cereal" ,cereal)
11971 ("eigen" ,eigen)
11972 ("rapmap" ,(origin
11973 (method git-fetch)
11974 (uri (git-reference
11975 (url "https://github.com/COMBINE-lab/RapMap.git")
11976 (commit (string-append "salmon-v" version))))
11977 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
11978 (sha256
11979 (base32
11980 "1yc12yqsz6f0r8sg1qnk57xg34aqwc9jbqq6gd5ys28xw3plj98p"))))
11981 ("jemalloc" ,jemalloc)
11982 ("jellyfish" ,jellyfish)
11983 ("libgff" ,libgff)
11984 ("tbb" ,tbb)
11985 ("libdivsufsort" ,libdivsufsort)
11986 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
11987 ("spdlog-for-salmon" ,spdlog-for-salmon)
11988 ("xz" ,xz)
11989 ("zlib" ,zlib)))
11990 (home-page "https://github.com/COMBINE-lab/salmon")
11991 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
11992 (description "Salmon is a program to produce highly-accurate,
11993 transcript-level quantification estimates from RNA-seq data. Salmon achieves
11994 its accuracy and speed via a number of different innovations, including the
11995 use of lightweight alignments (accurate but fast-to-compute proxies for
11996 traditional read alignments) and massively-parallel stochastic collapsed
11997 variational inference.")
11998 (license license:gpl3+)))
11999
12000 (define-public python-loompy
12001 (package
12002 (name "python-loompy")
12003 (version "2.0.17")
12004 ;; The tarball on Pypi does not include the tests.
12005 (source (origin
12006 (method git-fetch)
12007 (uri (git-reference
12008 (url "https://github.com/linnarsson-lab/loompy.git")
12009 (commit version)))
12010 (file-name (git-file-name name version))
12011 (sha256
12012 (base32
12013 "12a5kjgiikapv93wahfw0frszx1lblnppyz3vs5gy8fgmgngra07"))))
12014 (build-system python-build-system)
12015 (arguments
12016 `(#:phases
12017 (modify-phases %standard-phases
12018 (replace 'check
12019 (lambda _
12020 (setenv "PYTHONPATH"
12021 (string-append (getcwd) ":"
12022 (getenv "PYTHONPATH")))
12023 (invoke "pytest" "tests")
12024 #t)))))
12025 (propagated-inputs
12026 `(("python-h5py" ,python-h5py)
12027 ("python-numpy" ,python-numpy)
12028 ("python-pandas" ,python-pandas)
12029 ("python-scipy" ,python-scipy)))
12030 (native-inputs
12031 `(("python-pytest" ,python-pytest)))
12032 (home-page "https://github.com/linnarsson-lab/loompy")
12033 (synopsis "Work with .loom files for single-cell RNA-seq data")
12034 (description "The loom file format is an efficient format for very large
12035 omics datasets, consisting of a main matrix, optional additional layers, a
12036 variable number of row and column annotations. Loom also supports sparse
12037 graphs. This library makes it easy to work with @file{.loom} files for
12038 single-cell RNA-seq data.")
12039 (license license:bsd-3)))
12040
12041 ;; We cannot use the latest commit because it requires Java 9.
12042 (define-public java-forester
12043 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12044 (revision "1"))
12045 (package
12046 (name "java-forester")
12047 (version (string-append "0-" revision "." (string-take commit 7)))
12048 (source (origin
12049 (method git-fetch)
12050 (uri (git-reference
12051 (url "https://github.com/cmzmasek/forester.git")
12052 (commit commit)))
12053 (file-name (string-append name "-" version "-checkout"))
12054 (sha256
12055 (base32
12056 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12057 (modules '((guix build utils)))
12058 (snippet
12059 '(begin
12060 ;; Delete bundled jars and pre-built classes
12061 (delete-file-recursively "forester/java/resources")
12062 (delete-file-recursively "forester/java/classes")
12063 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12064 ;; Delete bundled applications
12065 (delete-file-recursively "forester_applications")
12066 #t))))
12067 (build-system ant-build-system)
12068 (arguments
12069 `(#:tests? #f ; there are none
12070 #:jdk ,icedtea-8
12071 #:modules ((guix build ant-build-system)
12072 (guix build utils)
12073 (guix build java-utils)
12074 (sxml simple)
12075 (sxml transform))
12076 #:phases
12077 (modify-phases %standard-phases
12078 (add-after 'unpack 'chdir
12079 (lambda _ (chdir "forester/java") #t))
12080 (add-after 'chdir 'fix-dependencies
12081 (lambda _
12082 (chmod "build.xml" #o664)
12083 (call-with-output-file "build.xml.new"
12084 (lambda (port)
12085 (sxml->xml
12086 (pre-post-order
12087 (with-input-from-file "build.xml"
12088 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12089 `(;; Remove all unjar tags to avoid repacking classes.
12090 (unjar . ,(lambda _ '()))
12091 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12092 (*text* . ,(lambda (_ txt) txt))))
12093 port)))
12094 (rename-file "build.xml.new" "build.xml")
12095 #t))
12096 ;; FIXME: itext is difficult to package as it depends on a few
12097 ;; unpackaged libraries.
12098 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12099 (lambda _
12100 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12101 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12102 (("pdf_written_to = PdfExporter.*")
12103 "throw new IOException(\"PDF export is not available.\");"))
12104 #t))
12105 ;; There is no install target
12106 (replace 'install (install-jars ".")))))
12107 (propagated-inputs
12108 `(("java-commons-codec" ,java-commons-codec)
12109 ("java-openchart2" ,java-openchart2)))
12110 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12111 (synopsis "Phylogenomics libraries for Java")
12112 (description "Forester is a collection of Java libraries for
12113 phylogenomics and evolutionary biology research. It includes support for
12114 reading, writing, and exporting phylogenetic trees.")
12115 (license license:lgpl2.1+))))
12116
12117 (define-public java-forester-1.005
12118 (package
12119 (name "java-forester")
12120 (version "1.005")
12121 (source (origin
12122 (method url-fetch)
12123 (uri (string-append "http://search.maven.org/remotecontent?"
12124 "filepath=org/biojava/thirdparty/forester/"
12125 version "/forester-" version "-sources.jar"))
12126 (file-name (string-append name "-" version ".jar"))
12127 (sha256
12128 (base32
12129 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12130 (build-system ant-build-system)
12131 (arguments
12132 `(#:tests? #f ; there are none
12133 #:jdk ,icedtea-8
12134 #:modules ((guix build ant-build-system)
12135 (guix build utils)
12136 (guix build java-utils)
12137 (sxml simple)
12138 (sxml transform))
12139 #:phases
12140 (modify-phases %standard-phases
12141 (add-after 'unpack 'fix-dependencies
12142 (lambda* (#:key inputs #:allow-other-keys)
12143 (call-with-output-file "build.xml"
12144 (lambda (port)
12145 (sxml->xml
12146 (pre-post-order
12147 (with-input-from-file "src/build.xml"
12148 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12149 `(;; Remove all unjar tags to avoid repacking classes.
12150 (unjar . ,(lambda _ '()))
12151 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12152 (*text* . ,(lambda (_ txt) txt))))
12153 port)))
12154 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12155 "synth_look_and_feel_1.xml")
12156 (copy-file (assoc-ref inputs "phyloxml.xsd")
12157 "phyloxml.xsd")
12158 (substitute* "build.xml"
12159 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12160 "synth_look_and_feel_1.xml")
12161 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12162 "phyloxml.xsd"))
12163 #t))
12164 ;; FIXME: itext is difficult to package as it depends on a few
12165 ;; unpackaged libraries.
12166 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12167 (lambda _
12168 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12169 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12170 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12171 (("pdf_written_to = PdfExporter.*")
12172 "throw new IOException(\"PDF export is not available.\"); /*")
12173 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12174 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12175 #t))
12176 (add-after 'unpack 'delete-pre-built-classes
12177 (lambda _ (delete-file-recursively "src/classes") #t))
12178 ;; There is no install target
12179 (replace 'install (install-jars ".")))))
12180 (propagated-inputs
12181 `(("java-commons-codec" ,java-commons-codec)
12182 ("java-openchart2" ,java-openchart2)))
12183 ;; The source archive does not contain the resources.
12184 (native-inputs
12185 `(("phyloxml.xsd"
12186 ,(origin
12187 (method url-fetch)
12188 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12189 "b61cc2dcede0bede317db362472333115756b8c6/"
12190 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12191 (file-name (string-append name "-phyloxml-" version ".xsd"))
12192 (sha256
12193 (base32
12194 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12195 ("synth_look_and_feel_1.xml"
12196 ,(origin
12197 (method url-fetch)
12198 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12199 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12200 "forester/java/classes/resources/synth_look_and_feel_1.xml"))
12201 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12202 (sha256
12203 (base32
12204 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12205 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12206 (synopsis "Phylogenomics libraries for Java")
12207 (description "Forester is a collection of Java libraries for
12208 phylogenomics and evolutionary biology research. It includes support for
12209 reading, writing, and exporting phylogenetic trees.")
12210 (license license:lgpl2.1+)))
12211
12212 (define-public java-biojava-core
12213 (package
12214 (name "java-biojava-core")
12215 (version "4.2.11")
12216 (source (origin
12217 (method git-fetch)
12218 (uri (git-reference
12219 (url "https://github.com/biojava/biojava")
12220 (commit (string-append "biojava-" version))))
12221 (file-name (string-append name "-" version "-checkout"))
12222 (sha256
12223 (base32
12224 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12225 (build-system ant-build-system)
12226 (arguments
12227 `(#:jdk ,icedtea-8
12228 #:jar-name "biojava-core.jar"
12229 #:source-dir "biojava-core/src/main/java/"
12230 #:test-dir "biojava-core/src/test"
12231 ;; These tests seem to require internet access.
12232 #:test-exclude (list "**/SearchIOTest.java"
12233 "**/BlastXMLParserTest.java"
12234 "**/GenbankCookbookTest.java"
12235 "**/GenbankProxySequenceReaderTest.java")
12236 #:phases
12237 (modify-phases %standard-phases
12238 (add-before 'build 'copy-resources
12239 (lambda _
12240 (copy-recursively "biojava-core/src/main/resources"
12241 "build/classes")
12242 #t))
12243 (add-before 'check 'copy-test-resources
12244 (lambda _
12245 (copy-recursively "biojava-core/src/test/resources"
12246 "build/test-classes")
12247 #t)))))
12248 (propagated-inputs
12249 `(("java-log4j-api" ,java-log4j-api)
12250 ("java-log4j-core" ,java-log4j-core)
12251 ("java-slf4j-api" ,java-slf4j-api)
12252 ("java-slf4j-simple" ,java-slf4j-simple)))
12253 (native-inputs
12254 `(("java-junit" ,java-junit)
12255 ("java-hamcrest-core" ,java-hamcrest-core)))
12256 (home-page "http://biojava.org")
12257 (synopsis "Core libraries of Java framework for processing biological data")
12258 (description "BioJava is a project dedicated to providing a Java framework
12259 for processing biological data. It provides analytical and statistical
12260 routines, parsers for common file formats, reference implementations of
12261 popular algorithms, and allows the manipulation of sequences and 3D
12262 structures. The goal of the biojava project is to facilitate rapid
12263 application development for bioinformatics.
12264
12265 This package provides the core libraries.")
12266 (license license:lgpl2.1+)))
12267
12268 (define-public java-biojava-phylo
12269 (package (inherit java-biojava-core)
12270 (name "java-biojava-phylo")
12271 (build-system ant-build-system)
12272 (arguments
12273 `(#:jdk ,icedtea-8
12274 #:jar-name "biojava-phylo.jar"
12275 #:source-dir "biojava-phylo/src/main/java/"
12276 #:test-dir "biojava-phylo/src/test"
12277 #:phases
12278 (modify-phases %standard-phases
12279 (add-before 'build 'copy-resources
12280 (lambda _
12281 (copy-recursively "biojava-phylo/src/main/resources"
12282 "build/classes")
12283 #t))
12284 (add-before 'check 'copy-test-resources
12285 (lambda _
12286 (copy-recursively "biojava-phylo/src/test/resources"
12287 "build/test-classes")
12288 #t)))))
12289 (propagated-inputs
12290 `(("java-log4j-api" ,java-log4j-api)
12291 ("java-log4j-core" ,java-log4j-core)
12292 ("java-slf4j-api" ,java-slf4j-api)
12293 ("java-slf4j-simple" ,java-slf4j-simple)
12294 ("java-biojava-core" ,java-biojava-core)
12295 ("java-forester" ,java-forester)))
12296 (native-inputs
12297 `(("java-junit" ,java-junit)
12298 ("java-hamcrest-core" ,java-hamcrest-core)))
12299 (home-page "http://biojava.org")
12300 (synopsis "Biojava interface to the forester phylogenomics library")
12301 (description "The phylo module provides a biojava interface layer to the
12302 forester phylogenomics library for constructing phylogenetic trees.")))
12303
12304 (define-public java-biojava-alignment
12305 (package (inherit java-biojava-core)
12306 (name "java-biojava-alignment")
12307 (build-system ant-build-system)
12308 (arguments
12309 `(#:jdk ,icedtea-8
12310 #:jar-name "biojava-alignment.jar"
12311 #:source-dir "biojava-alignment/src/main/java/"
12312 #:test-dir "biojava-alignment/src/test"
12313 #:phases
12314 (modify-phases %standard-phases
12315 (add-before 'build 'copy-resources
12316 (lambda _
12317 (copy-recursively "biojava-alignment/src/main/resources"
12318 "build/classes")
12319 #t))
12320 (add-before 'check 'copy-test-resources
12321 (lambda _
12322 (copy-recursively "biojava-alignment/src/test/resources"
12323 "build/test-classes")
12324 #t)))))
12325 (propagated-inputs
12326 `(("java-log4j-api" ,java-log4j-api)
12327 ("java-log4j-core" ,java-log4j-core)
12328 ("java-slf4j-api" ,java-slf4j-api)
12329 ("java-slf4j-simple" ,java-slf4j-simple)
12330 ("java-biojava-core" ,java-biojava-core)
12331 ("java-biojava-phylo" ,java-biojava-phylo)
12332 ("java-forester" ,java-forester)))
12333 (native-inputs
12334 `(("java-junit" ,java-junit)
12335 ("java-hamcrest-core" ,java-hamcrest-core)))
12336 (home-page "http://biojava.org")
12337 (synopsis "Biojava API for genetic sequence alignment")
12338 (description "The alignment module of BioJava provides an API that
12339 contains
12340
12341 @itemize
12342 @item implementations of dynamic programming algorithms for sequence
12343 alignment;
12344 @item reading and writing of popular alignment file formats;
12345 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12346 @end itemize\n")))
12347
12348 (define-public java-biojava-core-4.0
12349 (package (inherit java-biojava-core)
12350 (name "java-biojava-core")
12351 (version "4.0.0")
12352 (source (origin
12353 (method git-fetch)
12354 (uri (git-reference
12355 (url "https://github.com/biojava/biojava")
12356 (commit (string-append "biojava-" version))))
12357 (file-name (string-append name "-" version "-checkout"))
12358 (sha256
12359 (base32
12360 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
12361
12362 (define-public java-biojava-phylo-4.0
12363 (package (inherit java-biojava-core-4.0)
12364 (name "java-biojava-phylo")
12365 (build-system ant-build-system)
12366 (arguments
12367 `(#:jdk ,icedtea-8
12368 #:jar-name "biojava-phylo.jar"
12369 #:source-dir "biojava-phylo/src/main/java/"
12370 #:test-dir "biojava-phylo/src/test"
12371 #:phases
12372 (modify-phases %standard-phases
12373 (add-before 'build 'copy-resources
12374 (lambda _
12375 (copy-recursively "biojava-phylo/src/main/resources"
12376 "build/classes")
12377 #t))
12378 (add-before 'check 'copy-test-resources
12379 (lambda _
12380 (copy-recursively "biojava-phylo/src/test/resources"
12381 "build/test-classes")
12382 #t)))))
12383 (propagated-inputs
12384 `(("java-log4j-api" ,java-log4j-api)
12385 ("java-log4j-core" ,java-log4j-core)
12386 ("java-slf4j-api" ,java-slf4j-api)
12387 ("java-slf4j-simple" ,java-slf4j-simple)
12388 ("java-biojava-core" ,java-biojava-core-4.0)
12389 ("java-forester" ,java-forester-1.005)))
12390 (native-inputs
12391 `(("java-junit" ,java-junit)
12392 ("java-hamcrest-core" ,java-hamcrest-core)))
12393 (home-page "http://biojava.org")
12394 (synopsis "Biojava interface to the forester phylogenomics library")
12395 (description "The phylo module provides a biojava interface layer to the
12396 forester phylogenomics library for constructing phylogenetic trees.")))
12397
12398 (define-public java-biojava-alignment-4.0
12399 (package (inherit java-biojava-core-4.0)
12400 (name "java-biojava-alignment")
12401 (build-system ant-build-system)
12402 (arguments
12403 `(#:jdk ,icedtea-8
12404 #:jar-name "biojava-alignment.jar"
12405 #:source-dir "biojava-alignment/src/main/java/"
12406 #:test-dir "biojava-alignment/src/test"
12407 #:phases
12408 (modify-phases %standard-phases
12409 (add-before 'build 'copy-resources
12410 (lambda _
12411 (copy-recursively "biojava-alignment/src/main/resources"
12412 "build/classes")
12413 #t))
12414 (add-before 'check 'copy-test-resources
12415 (lambda _
12416 (copy-recursively "biojava-alignment/src/test/resources"
12417 "build/test-classes")
12418 #t)))))
12419 (propagated-inputs
12420 `(("java-log4j-api" ,java-log4j-api)
12421 ("java-log4j-core" ,java-log4j-core)
12422 ("java-slf4j-api" ,java-slf4j-api)
12423 ("java-slf4j-simple" ,java-slf4j-simple)
12424 ("java-biojava-core" ,java-biojava-core-4.0)
12425 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12426 ("java-forester" ,java-forester-1.005)))
12427 (native-inputs
12428 `(("java-junit" ,java-junit)
12429 ("java-hamcrest-core" ,java-hamcrest-core)))
12430 (home-page "http://biojava.org")
12431 (synopsis "Biojava API for genetic sequence alignment")
12432 (description "The alignment module of BioJava provides an API that
12433 contains
12434
12435 @itemize
12436 @item implementations of dynamic programming algorithms for sequence
12437 alignment;
12438 @item reading and writing of popular alignment file formats;
12439 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12440 @end itemize\n")))
12441
12442 (define-public dropseq-tools
12443 (package
12444 (name "dropseq-tools")
12445 (version "1.13")
12446 (source
12447 (origin
12448 (method url-fetch)
12449 (uri "http://mccarrolllab.com/download/1276/")
12450 (file-name (string-append "dropseq-tools-" version ".zip"))
12451 (sha256
12452 (base32
12453 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12454 ;; Delete bundled libraries
12455 (modules '((guix build utils)))
12456 (snippet
12457 '(begin
12458 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
12459 (delete-file-recursively "3rdParty")
12460 #t))))
12461 (build-system ant-build-system)
12462 (arguments
12463 `(#:tests? #f ; test data are not included
12464 #:test-target "test"
12465 #:build-target "all"
12466 #:source-dir "public/src/"
12467 #:jdk ,icedtea-8
12468 #:make-flags
12469 (list (string-append "-Dpicard.executable.dir="
12470 (assoc-ref %build-inputs "java-picard")
12471 "/share/java/"))
12472 #:modules ((ice-9 match)
12473 (srfi srfi-1)
12474 (guix build utils)
12475 (guix build java-utils)
12476 (guix build ant-build-system))
12477 #:phases
12478 (modify-phases %standard-phases
12479 ;; FIXME: fails with "java.io.FileNotFoundException:
12480 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
12481 (delete 'generate-jar-indices)
12482 ;; All dependencies must be linked to "lib", because that's where
12483 ;; they will be searched for when the Class-Path property of the
12484 ;; manifest is computed.
12485 (add-after 'unpack 'record-references
12486 (lambda* (#:key inputs #:allow-other-keys)
12487 (mkdir-p "jar/lib")
12488 (let ((dirs (filter-map (match-lambda
12489 ((name . dir)
12490 (if (and (string-prefix? "java-" name)
12491 (not (string=? name "java-testng")))
12492 dir #f)))
12493 inputs)))
12494 (for-each (lambda (jar)
12495 (symlink jar (string-append "jar/lib/" (basename jar))))
12496 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12497 dirs)))
12498 #t))
12499 ;; There is no installation target
12500 (replace 'install
12501 (lambda* (#:key inputs outputs #:allow-other-keys)
12502 (let* ((out (assoc-ref outputs "out"))
12503 (bin (string-append out "/bin"))
12504 (share (string-append out "/share/java/"))
12505 (lib (string-append share "/lib/"))
12506 (scripts (list "BAMTagHistogram"
12507 "BAMTagofTagCounts"
12508 "BaseDistributionAtReadPosition"
12509 "CollapseBarcodesInPlace"
12510 "CollapseTagWithContext"
12511 "ConvertToRefFlat"
12512 "CreateIntervalsFiles"
12513 "DetectBeadSynthesisErrors"
12514 "DigitalExpression"
12515 "Drop-seq_alignment.sh"
12516 "FilterBAM"
12517 "FilterBAMByTag"
12518 "GatherGeneGCLength"
12519 "GatherMolecularBarcodeDistributionByGene"
12520 "GatherReadQualityMetrics"
12521 "PolyATrimmer"
12522 "ReduceGTF"
12523 "SelectCellsByNumTranscripts"
12524 "SingleCellRnaSeqMetricsCollector"
12525 "TagBamWithReadSequenceExtended"
12526 "TagReadWithGeneExon"
12527 "TagReadWithInterval"
12528 "TrimStartingSequence"
12529 "ValidateReference")))
12530 (for-each mkdir-p (list bin share lib))
12531 (install-file "dist/dropseq.jar" share)
12532 (for-each (lambda (script)
12533 (chmod script #o555)
12534 (install-file script bin))
12535 scripts)
12536 (substitute* (map (lambda (script)
12537 (string-append bin "/" script))
12538 scripts)
12539 (("^java") (which "java"))
12540 (("jar_deploy_dir=.*")
12541 (string-append "jar_deploy_dir=" share "\n"))))
12542 #t))
12543 ;; FIXME: We do this after stripping jars because we don't want it to
12544 ;; copy all these jars and strip them. We only want to install
12545 ;; links. Arguably, this is a problem with the ant-build-system.
12546 (add-after 'strip-jar-timestamps 'install-links
12547 (lambda* (#:key outputs #:allow-other-keys)
12548 (let* ((out (assoc-ref outputs "out"))
12549 (share (string-append out "/share/java/"))
12550 (lib (string-append share "/lib/")))
12551 (for-each (lambda (jar)
12552 (symlink (readlink jar)
12553 (string-append lib (basename jar))))
12554 (find-files "jar/lib" "\\.jar$")))
12555 #t)))))
12556 (inputs
12557 `(("jdk" ,icedtea-8)
12558 ("java-picard" ,java-picard-2.10.3)
12559 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12560 ("java-commons-math3" ,java-commons-math3)
12561 ("java-commons-jexl2" ,java-commons-jexl-2)
12562 ("java-commons-collections4" ,java-commons-collections4)
12563 ("java-commons-lang2" ,java-commons-lang)
12564 ("java-commons-io" ,java-commons-io)
12565 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12566 ("java-guava" ,java-guava)
12567 ("java-la4j" ,java-la4j)
12568 ("java-biojava-core" ,java-biojava-core-4.0)
12569 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12570 ("java-jdistlib" ,java-jdistlib)
12571 ("java-simple-xml" ,java-simple-xml)
12572 ("java-snakeyaml" ,java-snakeyaml)))
12573 (native-inputs
12574 `(("unzip" ,unzip)
12575 ("java-testng" ,java-testng)))
12576 (home-page "http://mccarrolllab.com/dropseq/")
12577 (synopsis "Tools for Drop-seq analyses")
12578 (description "Drop-seq is a technology to enable biologists to
12579 analyze RNA expression genome-wide in thousands of individual cells at
12580 once. This package provides tools to perform Drop-seq analyses.")
12581 (license license:expat)))
12582
12583 (define-public pigx-rnaseq
12584 (package
12585 (name "pigx-rnaseq")
12586 (version "0.0.5")
12587 (source (origin
12588 (method url-fetch)
12589 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
12590 "releases/download/v" version
12591 "/pigx_rnaseq-" version ".tar.gz"))
12592 (sha256
12593 (base32
12594 "05gn658zpj9xki5dbs728z9zxq1mcm25hkwr5vzwqxsfi15l5f2l"))))
12595 (build-system gnu-build-system)
12596 (arguments
12597 `(#:parallel-tests? #f ; not supported
12598 #:phases
12599 (modify-phases %standard-phases
12600 ;; "test.sh" runs STAR, which requires excessive amounts of memory.
12601 (add-after 'unpack 'disable-resource-intensive-test
12602 (lambda _
12603 (substitute* "Makefile.in"
12604 (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
12605 (("^ tests/test_multiqc/test.sh") "")
12606 (("^ test.sh") ""))
12607 #t)))))
12608 (inputs
12609 `(("gzip" ,gzip)
12610 ("snakemake" ,snakemake)
12611 ("fastqc" ,fastqc)
12612 ("multiqc" ,multiqc)
12613 ("star" ,star)
12614 ("trim-galore" ,trim-galore)
12615 ("htseq" ,htseq)
12616 ("samtools" ,samtools)
12617 ("bedtools" ,bedtools)
12618 ("r-minimal" ,r-minimal)
12619 ("r-rmarkdown" ,r-rmarkdown)
12620 ("r-ggplot2" ,r-ggplot2)
12621 ("r-ggrepel" ,r-ggrepel)
12622 ("r-gprofiler" ,r-gprofiler)
12623 ("r-deseq2" ,r-deseq2)
12624 ("r-dt" ,r-dt)
12625 ("r-knitr" ,r-knitr)
12626 ("r-pheatmap" ,r-pheatmap)
12627 ("r-corrplot" ,r-corrplot)
12628 ("r-reshape2" ,r-reshape2)
12629 ("r-plotly" ,r-plotly)
12630 ("r-scales" ,r-scales)
12631 ("r-summarizedexperiment" ,r-summarizedexperiment)
12632 ("r-crosstalk" ,r-crosstalk)
12633 ("r-tximport" ,r-tximport)
12634 ("r-rtracklayer" ,r-rtracklayer)
12635 ("r-rjson" ,r-rjson)
12636 ("salmon" ,salmon)
12637 ("ghc-pandoc" ,ghc-pandoc)
12638 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12639 ("python-wrapper" ,python-wrapper)
12640 ("python-pyyaml" ,python-pyyaml)))
12641 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12642 (synopsis "Analysis pipeline for RNA sequencing experiments")
12643 (description "PiGX RNAseq is an analysis pipeline for preprocessing and
12644 reporting for RNA sequencing experiments. It is easy to use and produces high
12645 quality reports. The inputs are reads files from the sequencing experiment,
12646 and a configuration file which describes the experiment. In addition to
12647 quality control of the experiment, the pipeline produces a differential
12648 expression report comparing samples in an easily configurable manner.")
12649 (license license:gpl3+)))
12650
12651 (define-public pigx-chipseq
12652 (package
12653 (name "pigx-chipseq")
12654 (version "0.0.40")
12655 (source (origin
12656 (method url-fetch)
12657 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
12658 "releases/download/v" version
12659 "/pigx_chipseq-" version ".tar.gz"))
12660 (sha256
12661 (base32
12662 "0y9x62cfwzhsp82imnawyamxp58bcb00yjxdy44spylqnjdlsaj8"))))
12663 (build-system gnu-build-system)
12664 ;; parts of the tests rely on access to the network
12665 (arguments '(#:tests? #f))
12666 (inputs
12667 `(("grep" ,grep)
12668 ("coreutils" ,coreutils)
12669 ("r-minimal" ,r-minimal)
12670 ("r-argparser" ,r-argparser)
12671 ("r-biocparallel" ,r-biocparallel)
12672 ("r-biostrings" ,r-biostrings)
12673 ("r-chipseq" ,r-chipseq)
12674 ("r-data-table" ,r-data-table)
12675 ("r-dplyr" ,r-dplyr)
12676 ("r-genomation" ,r-genomation)
12677 ("r-genomicalignments" ,r-genomicalignments)
12678 ("r-genomicranges" ,r-genomicranges)
12679 ("r-rsamtools" ,r-rsamtools)
12680 ("r-rtracklayer" ,r-rtracklayer)
12681 ("r-s4vectors" ,r-s4vectors)
12682 ("r-stringr" ,r-stringr)
12683 ("r-tibble" ,r-tibble)
12684 ("r-tidyr" ,r-tidyr)
12685 ("r-jsonlite" ,r-jsonlite)
12686 ("r-heatmaply" ,r-heatmaply)
12687 ("r-htmlwidgets" ,r-htmlwidgets)
12688 ("r-ggplot2" ,r-ggplot2)
12689 ("r-plotly" ,r-plotly)
12690 ("r-rmarkdown" ,r-rmarkdown)
12691 ("python-wrapper" ,python-wrapper)
12692 ("python-pyyaml" ,python-pyyaml)
12693 ("python-magic" ,python-magic)
12694 ("python-xlrd" ,python-xlrd)
12695 ("trim-galore" ,trim-galore)
12696 ("macs" ,macs)
12697 ("multiqc" ,multiqc)
12698 ("perl" ,perl)
12699 ("ghc-pandoc" ,ghc-pandoc)
12700 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12701 ("fastqc" ,fastqc)
12702 ("bowtie" ,bowtie)
12703 ("idr" ,idr)
12704 ("snakemake" ,snakemake)
12705 ("samtools" ,samtools)
12706 ("bedtools" ,bedtools)
12707 ("kentutils" ,kentutils)))
12708 (native-inputs
12709 `(("python-pytest" ,python-pytest)))
12710 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12711 (synopsis "Analysis pipeline for ChIP sequencing experiments")
12712 (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
12713 calling and reporting for ChIP sequencing experiments. It is easy to use and
12714 produces high quality reports. The inputs are reads files from the sequencing
12715 experiment, and a configuration file which describes the experiment. In
12716 addition to quality control of the experiment, the pipeline enables to set up
12717 multiple peak calling analysis and allows the generation of a UCSC track hub
12718 in an easily configurable manner.")
12719 (license license:gpl3+)))
12720
12721 (define-public pigx-bsseq
12722 (package
12723 (name "pigx-bsseq")
12724 (version "0.0.10")
12725 (source (origin
12726 (method url-fetch)
12727 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
12728 "releases/download/v" version
12729 "/pigx_bsseq-" version ".tar.gz"))
12730 (sha256
12731 (base32
12732 "0l97wvkq4diq8lcarraj33bby1zzf0w804jwi8mlc5qddp8idwhy"))))
12733 (build-system gnu-build-system)
12734 (arguments
12735 `(#:phases
12736 (modify-phases %standard-phases
12737 (add-before 'check 'set-timezone
12738 ;; The readr package is picky about timezones.
12739 (lambda* (#:key inputs #:allow-other-keys)
12740 (setenv "TZ" "UTC+1")
12741 (setenv "TZDIR"
12742 (string-append (assoc-ref inputs "tzdata")
12743 "/share/zoneinfo"))
12744 #t)))))
12745 (native-inputs
12746 `(("tzdata" ,tzdata)))
12747 (inputs
12748 `(("coreutils" ,coreutils)
12749 ("sed" ,sed)
12750 ("grep" ,grep)
12751 ("r-minimal" ,r-minimal)
12752 ("r-annotationhub" ,r-annotationhub)
12753 ("r-dt" ,r-dt)
12754 ("r-genomation" ,r-genomation)
12755 ("r-methylkit" ,r-methylkit)
12756 ("r-rtracklayer" ,r-rtracklayer)
12757 ("r-rmarkdown" ,r-rmarkdown)
12758 ("r-bookdown" ,r-bookdown)
12759 ("r-ggplot2" ,r-ggplot2)
12760 ("r-ggbio" ,r-ggbio)
12761 ("ghc-pandoc" ,ghc-pandoc)
12762 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12763 ("python-wrapper" ,python-wrapper)
12764 ("python-pyyaml" ,python-pyyaml)
12765 ("snakemake" ,snakemake)
12766 ("bismark" ,bismark)
12767 ("fastqc" ,fastqc)
12768 ("bowtie" ,bowtie)
12769 ("trim-galore" ,trim-galore)
12770 ("cutadapt" ,cutadapt)
12771 ("samtools" ,samtools)))
12772 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12773 (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
12774 (description "PiGx BSseq is a data processing pipeline for raw fastq read
12775 data of bisulfite experiments; it produces reports on aggregate methylation
12776 and coverage and can be used to produce information on differential
12777 methylation and segmentation.")
12778 (license license:gpl3+)))
12779
12780 (define-public pigx-scrnaseq
12781 (package
12782 (name "pigx-scrnaseq")
12783 (version "0.0.7")
12784 (source (origin
12785 (method url-fetch)
12786 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
12787 "releases/download/v" version
12788 "/pigx_scrnaseq-" version ".tar.gz"))
12789 (sha256
12790 (base32
12791 "131zarirv16w8653m0d66jgjnwqfsxqc0hix0rypssz4d83bl51j"))))
12792 (build-system gnu-build-system)
12793 (arguments
12794 `(#:configure-flags
12795 (list (string-append "PICARDJAR=" (assoc-ref %build-inputs "java-picard")
12796 "/share/java/picard.jar")
12797 (string-append "DROPSEQJAR=" (assoc-ref %build-inputs "dropseq-tools")
12798 "/share/java/dropseq.jar"))))
12799 (inputs
12800 `(("coreutils" ,coreutils)
12801 ("perl" ,perl)
12802 ("dropseq-tools" ,dropseq-tools)
12803 ("fastqc" ,fastqc)
12804 ("java-picard" ,java-picard-2.10.3) ; same as for dropseq
12805 ("java" ,icedtea-8)
12806 ("python-wrapper" ,python-wrapper)
12807 ("python-pyyaml" ,python-pyyaml)
12808 ("python-pandas" ,python-pandas)
12809 ("python-magic" ,python-magic)
12810 ("python-numpy" ,python-numpy)
12811 ("python-loompy" ,python-loompy)
12812 ("ghc-pandoc" ,ghc-pandoc)
12813 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12814 ("samtools" ,samtools)
12815 ("snakemake" ,snakemake)
12816 ("star" ,star)
12817 ("r-minimal" ,r-minimal)
12818 ("r-argparser" ,r-argparser)
12819 ("r-cowplot" ,r-cowplot)
12820 ("r-data-table" ,r-data-table)
12821 ("r-delayedarray" ,r-delayedarray)
12822 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
12823 ("r-dplyr" ,r-dplyr)
12824 ("r-dropbead" ,r-dropbead)
12825 ("r-dt" ,r-dt)
12826 ("r-genomicalignments" ,r-genomicalignments)
12827 ("r-genomicfiles" ,r-genomicfiles)
12828 ("r-genomicranges" ,r-genomicranges)
12829 ("r-ggplot2" ,r-ggplot2)
12830 ("r-hdf5array" ,r-hdf5array)
12831 ("r-pheatmap" ,r-pheatmap)
12832 ("r-rmarkdown" ,r-rmarkdown)
12833 ("r-rsamtools" ,r-rsamtools)
12834 ("r-rtracklayer" ,r-rtracklayer)
12835 ("r-rtsne" ,r-rtsne)
12836 ("r-scater" ,r-scater)
12837 ("r-scran" ,r-scran)
12838 ("r-singlecellexperiment" ,r-singlecellexperiment)
12839 ("r-stringr" ,r-stringr)
12840 ("r-yaml" ,r-yaml)))
12841 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12842 (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
12843 (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
12844 quality control for single cell RNA sequencing experiments. The inputs are
12845 read files from the sequencing experiment, and a configuration file which
12846 describes the experiment. It produces processed files for downstream analysis
12847 and interactive quality reports. The pipeline is designed to work with UMI
12848 based methods.")
12849 (license license:gpl3+)))
12850
12851 (define-public pigx
12852 (package
12853 (name "pigx")
12854 (version "0.0.3")
12855 (source (origin
12856 (method url-fetch)
12857 (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
12858 "releases/download/v" version
12859 "/pigx-" version ".tar.gz"))
12860 (sha256
12861 (base32
12862 "1i5njdy1clj5ncw45d16p7mwmqvb1ilikl9n797pxklc3f4s7mq7"))))
12863 (build-system gnu-build-system)
12864 (inputs
12865 `(("python" ,python)
12866 ("pigx-bsseq" ,pigx-bsseq)
12867 ("pigx-chipseq" ,pigx-chipseq)
12868 ("pigx-rnaseq" ,pigx-rnaseq)
12869 ("pigx-scrnaseq" ,pigx-scrnaseq)))
12870 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12871 (synopsis "Analysis pipelines for genomics")
12872 (description "PiGx is a collection of genomics pipelines. It includes the
12873 following pipelines:
12874
12875 @itemize
12876 @item PiGx BSseq for raw fastq read data of bisulfite experiments
12877 @item PiGx RNAseq for RNAseq samples
12878 @item PiGx scRNAseq for single cell dropseq analysis
12879 @item PiGx ChIPseq for reads from ChIPseq experiments
12880 @end itemize
12881
12882 All pipelines are easily configured with a simple sample sheet and a
12883 descriptive settings file. The result is a set of comprehensive, interactive
12884 HTML reports with interesting findings about your samples.")
12885 (license license:gpl3+)))
12886
12887 (define-public genrich
12888 (package
12889 (name "genrich")
12890 (version "0.5")
12891 (source (origin
12892 (method git-fetch)
12893 (uri (git-reference
12894 (url "https://github.com/jsh58/Genrich.git")
12895 (commit (string-append "v" version))))
12896 (sha256
12897 (base32
12898 "0x0q6z0208n3cxzqjla4rgjqpyqgwpmz27852lcvzkzaigymq4zp"))))
12899 (build-system gnu-build-system)
12900 (arguments
12901 `(#:tests? #f ; there are none
12902 #:phases
12903 (modify-phases %standard-phases
12904 (delete 'configure)
12905 (replace 'install
12906 (lambda* (#:key outputs #:allow-other-keys)
12907 (install-file "Genrich" (string-append (assoc-ref outputs "out") "/bin"))
12908 #t)))))
12909 (inputs
12910 `(("zlib" ,zlib)))
12911 (home-page "https://github.com/jsh58/Genrich")
12912 (synopsis "Detecting sites of genomic enrichment")
12913 (description "Genrich is a peak-caller for genomic enrichment
12914 assays (e.g. ChIP-seq, ATAC-seq). It analyzes alignment files generated
12915 following the assay and produces a file detailing peaks of significant
12916 enrichment.")
12917 (license license:expat)))
12918
12919 (define-public mantis
12920 (let ((commit "4ffd171632c2cb0056a86d709dfd2bf21bc69b84")
12921 (revision "1"))
12922 (package
12923 (name "mantis")
12924 (version (git-version "0" revision commit))
12925 (source (origin
12926 (method git-fetch)
12927 (uri (git-reference
12928 (url "https://github.com/splatlab/mantis.git")
12929 (commit commit)))
12930 (file-name (git-file-name name version))
12931 (sha256
12932 (base32
12933 "0iqbr0dhmlc8mzpirmm2s4pkzkwdgrcx50yx6cv3wlr2qi064p55"))))
12934 (build-system cmake-build-system)
12935 (arguments '(#:tests? #f)) ; there are none
12936 (inputs
12937 `(("sdsl-lite" ,sdsl-lite)
12938 ("openssl" ,openssl)
12939 ("zlib" ,zlib)))
12940 (home-page "https://github.com/splatlab/mantis")
12941 (synopsis "Large-scale sequence-search index data structure")
12942 (description "Mantis is a space-efficient data structure that can be
12943 used to index thousands of raw-read genomics experiments and facilitate
12944 large-scale sequence searches on those experiments. Mantis uses counting
12945 quotient filters instead of Bloom filters, enabling rapid index builds and
12946 queries, small indexes, and exact results, i.e., no false positives or
12947 negatives. Furthermore, Mantis is also a colored de Bruijn graph
12948 representation, so it supports fast graph traversal and other topological
12949 analyses in addition to large-scale sequence-level searches.")
12950 ;; uses __uint128_t and inline assembly
12951 (supported-systems '("x86_64-linux"))
12952 (license license:bsd-3))))
12953
12954 (define-public r-diversitree
12955 (package
12956 (name "r-diversitree")
12957 (version "0.9-11")
12958 (source
12959 (origin
12960 (method url-fetch)
12961 (uri (cran-uri "diversitree" version))
12962 (sha256
12963 (base32
12964 "1jqfjmmaigq581l4zxysmkhld0xv6izlbr1hihf9zplkix36majc"))))
12965 (build-system r-build-system)
12966 (native-inputs
12967 `(("gfortran" ,gfortran)))
12968 (inputs `(("fftw" ,fftw) ("gsl" ,gsl)))
12969 (propagated-inputs
12970 `(("r-ape" ,r-ape)
12971 ("r-desolve" ,r-desolve)
12972 ("r-rcpp" ,r-rcpp)
12973 ("r-subplex" ,r-subplex)))
12974 (home-page "https://www.zoology.ubc.ca/prog/diversitree")
12975 (synopsis "Comparative 'phylogenetic' analyses of diversification")
12976 (description "This package contains a number of comparative \"phylogenetic\"
12977 methods, mostly focusing on analysing diversification and character evolution.
12978 Contains implementations of \"BiSSE\" (Binary State Speciation and Extinction)
12979 and its unresolved tree extensions, \"MuSSE\" (Multiple State Speciation and
12980 Extinction), \"QuaSSE\", \"GeoSSE\", and \"BiSSE-ness\" Other included methods
12981 include Markov models of discrete and continuous trait evolution and constant
12982 rate speciation and extinction.")
12983 (license license:gpl2+)))
12984
12985 (define-public sjcount
12986 ;; There is no tag for version 3.2, nor is there a release archive.
12987 (let ((commit "292d3917cadb3f6834c81e509c30e61cd7ead6e5")
12988 (revision "1"))
12989 (package
12990 (name "sjcount")
12991 (version (git-version "3.2" revision commit))
12992 (source (origin
12993 (method git-fetch)
12994 (uri (git-reference
12995 (url "https://github.com/pervouchine/sjcount-full.git")
12996 (commit commit)))
12997 (file-name (string-append name "-" version "-checkout"))
12998 (sha256
12999 (base32
13000 "0gdgj35j249f04rqgq8ymcc1xg1vi9kzbajnjqpaq2wpbh8bl234"))))
13001 (build-system gnu-build-system)
13002 (arguments
13003 `(#:tests? #f ; requires a 1.4G test file
13004 #:make-flags
13005 (list (string-append "SAMTOOLS_DIR="
13006 (assoc-ref %build-inputs "samtools")
13007 "/lib/"))
13008 #:phases
13009 (modify-phases %standard-phases
13010 (replace 'configure
13011 (lambda* (#:key inputs #:allow-other-keys)
13012 (substitute* "makefile"
13013 (("-I \\$\\{SAMTOOLS_DIR\\}")
13014 (string-append "-I" (assoc-ref inputs "samtools")
13015 "/include/samtools"))
13016 (("-lz ") "-lz -lpthread "))
13017 #t))
13018 (replace 'install
13019 (lambda* (#:key outputs #:allow-other-keys)
13020 (for-each (lambda (tool)
13021 (install-file tool
13022 (string-append (assoc-ref outputs "out")
13023 "/bin")))
13024 '("j_count" "b_count" "sjcount"))
13025 #t)))))
13026 (inputs
13027 `(("samtools" ,samtools-0.1)
13028 ("zlib" ,zlib)))
13029 (home-page "https://github.com/pervouchine/sjcount-full/")
13030 (synopsis "Annotation-agnostic splice junction counting pipeline")
13031 (description "Sjcount is a utility for fast quantification of splice
13032 junctions in RNA-seq data. It is annotation-agnostic and offset-aware. This
13033 version does count multisplits.")
13034 (license license:gpl3+))))
13035
13036 (define-public minimap2
13037 (package
13038 (name "minimap2")
13039 (version "2.10")
13040 (source
13041 (origin
13042 (method url-fetch)
13043 (uri (string-append "https://github.com/lh3/minimap2/"
13044 "releases/download/v" version "/"
13045 "minimap2-" version ".tar.bz2"))
13046 (sha256
13047 (base32
13048 "080w9066irkbhbyr4nmf19pzkdd2s4v31hpzlajgq2y0drr6zcsj"))))
13049 (build-system gnu-build-system)
13050 (arguments
13051 `(#:tests? #f ; there are none
13052 #:make-flags
13053 (list "CC=gcc"
13054 (let ((system ,(or (%current-target-system)
13055 (%current-system))))
13056 (cond
13057 ((string-prefix? "x86_64" system)
13058 "all")
13059 ((or (string-prefix? "armhf" system)
13060 (string-prefix? "aarch64" system))
13061 "arm_neon=1")
13062 (_ "sse2only=1"))))
13063 #:phases
13064 (modify-phases %standard-phases
13065 (delete 'configure)
13066 (replace 'install
13067 (lambda* (#:key outputs #:allow-other-keys)
13068 (let* ((out (assoc-ref outputs "out"))
13069 (bin (string-append out "/bin"))
13070 (man (string-append out "/share/man/man1")))
13071 (install-file "minimap2" bin)
13072 (mkdir-p man)
13073 (install-file "minimap2.1" man))
13074 #t)))))
13075 (inputs
13076 `(("zlib" ,zlib)))
13077 (home-page "https://lh3.github.io/minimap2/")
13078 (synopsis "Pairwise aligner for genomic and spliced nucleotide sequences")
13079 (description "Minimap2 is a versatile sequence alignment program that
13080 aligns DNA or mRNA sequences against a large reference database. Typical use
13081 cases include:
13082
13083 @enumerate
13084 @item mapping PacBio or Oxford Nanopore genomic reads to the human genome;
13085 @item finding overlaps between long reads with error rate up to ~15%;
13086 @item splice-aware alignment of PacBio Iso-Seq or Nanopore cDNA or Direct RNA
13087 reads against a reference genome;
13088 @item aligning Illumina single- or paired-end reads;
13089 @item assembly-to-assembly alignment;
13090 @item full-genome alignment between two closely related species with
13091 divergence below ~15%.
13092 @end enumerate\n")
13093 (license license:expat)))
13094
13095 (define-public r-circus
13096 (package
13097 (name "r-circus")
13098 (version "0.1.5")
13099 (source
13100 (origin
13101 (method git-fetch)
13102 (uri (git-reference
13103 (url "https://github.com/BIMSBbioinfo/ciRcus.git")
13104 (commit (string-append "v" version))))
13105 (file-name (git-file-name name version))
13106 (sha256
13107 (base32
13108 "0jhjn3ilb057hbf6yzrihj13ifxxs32y7nkby8l3lkm28dg4p97h"))))
13109 (build-system r-build-system)
13110 (propagated-inputs
13111 `(("r-annotationdbi" ,r-annotationdbi)
13112 ("r-annotationhub" ,r-annotationhub)
13113 ("r-biomart" ,r-biomart)
13114 ("r-data-table" ,r-data-table)
13115 ("r-dbi" ,r-dbi)
13116 ("r-genomicfeatures" ,r-genomicfeatures)
13117 ("r-genomicranges" ,r-genomicranges)
13118 ("r-ggplot2" ,r-ggplot2)
13119 ("r-hash" ,r-hash)
13120 ("r-iranges" ,r-iranges)
13121 ("r-rcolorbrewer" ,r-rcolorbrewer)
13122 ("r-rmysql" ,r-rmysql)
13123 ("r-s4vectors" ,r-s4vectors)
13124 ("r-stringr" ,r-stringr)
13125 ("r-summarizedexperiment" ,r-summarizedexperiment)))
13126 (native-inputs
13127 `(("r-knitr" ,r-knitr)))
13128 (home-page "https://github.com/BIMSBbioinfo/ciRcus")
13129 (synopsis "Annotation, analysis and visualization of circRNA data")
13130 (description "Circus is an R package for annotation, analysis and
13131 visualization of circRNA data. Users can annotate their circRNA candidates
13132 with host genes, gene featrues they are spliced from, and discriminate between
13133 known and yet unknown splice junctions. Circular-to-linear ratios of circRNAs
13134 can be calculated, and a number of descriptive plots easily generated.")
13135 (license license:artistic2.0)))
13136
13137 (define-public r-loomr
13138 (let ((commit "df0144bd2bbceca6fadef9edc1bbc5ca672d4739")
13139 (revision "1"))
13140 (package
13141 (name "r-loomr")
13142 (version (git-version "0.2.0" revision commit))
13143 (source
13144 (origin
13145 (method git-fetch)
13146 (uri (git-reference
13147 (url "https://github.com/mojaveazure/loomR.git")
13148 (commit commit)))
13149 (file-name (git-file-name name version))
13150 (sha256
13151 (base32
13152 "1b1g4dlmfdyhn56bz1mkh9ymirri43wiz7rjhs7py3y7bdw1s3yr"))))
13153 (build-system r-build-system)
13154 (propagated-inputs
13155 `(("r-r6" ,r-r6)
13156 ("r-hdf5r" ,r-hdf5r)
13157 ("r-iterators" ,r-iterators)
13158 ("r-itertools" ,r-itertools)
13159 ("r-matrix" ,r-matrix)))
13160 (home-page "https://github.com/mojaveazure/loomR")
13161 (synopsis "R interface for loom files")
13162 (description "This package provides an R interface to access, create,
13163 and modify loom files. loomR aims to be completely compatible with loompy.")
13164 (license license:gpl3))))
13165
13166 (define-public gffread
13167 ;; We cannot use the tagged release because it is not in sync with gclib.
13168 ;; See https://github.com/gpertea/gffread/issues/26
13169 (let ((commit "ba7535fcb3cea55a6e5a491d916e93b454e87fd0")
13170 (revision "1"))
13171 (package
13172 (name "gffread")
13173 (version (git-version "0.9.12" revision commit))
13174 (source
13175 (origin
13176 (method git-fetch)
13177 (uri (git-reference
13178 (url "https://github.com/gpertea/gffread.git")
13179 (commit commit)))
13180 (file-name (git-file-name name version))
13181 (sha256
13182 (base32
13183 "1dl2nbcg96lxpd0drg48ssa8343nf7pw9s9mkrc4mjjmfwsin3ki"))))
13184 (build-system gnu-build-system)
13185 (arguments
13186 `(#:tests? #f ; no check target
13187 #:make-flags
13188 (list "GCLDIR=gclib")
13189 #:phases
13190 (modify-phases %standard-phases
13191 (delete 'configure)
13192 (add-after 'unpack 'copy-gclib-source
13193 (lambda* (#:key inputs #:allow-other-keys)
13194 (mkdir-p "gclib")
13195 (copy-recursively (assoc-ref inputs "gclib-source") "gclib")
13196 #t))
13197 ;; There is no install target
13198 (replace 'install
13199 (lambda* (#:key outputs #:allow-other-keys)
13200 (let* ((out (assoc-ref outputs "out"))
13201 (bin (string-append out "/bin")))
13202 (install-file "gffread" bin))
13203 #t)))))
13204 (native-inputs
13205 `(("gclib-source"
13206 ,(let ((version "0.10.3")
13207 (commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13208 (revision "1"))
13209 (origin
13210 (method git-fetch)
13211 (uri (git-reference
13212 (url "https://github.com/gpertea/gclib.git")
13213 (commit commit)))
13214 (file-name (git-file-name "gclib" version))
13215 (sha256
13216 (base32
13217 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13218 (home-page "https://github.com/gpertea/gffread/")
13219 (synopsis "Parse and convert GFF/GTF files")
13220 (description
13221 "This package provides a GFF/GTF file parsing utility providing format
13222 conversions, region filtering, FASTA sequence extraction and more.")
13223 ;; gffread is under Expat, but gclib is under Artistic 2.0
13224 (license (list license:expat
13225 license:artistic2.0)))))
13226
13227 (define-public find-circ
13228 ;; The last release was in 2015. The license was clarified in 2017, so we
13229 ;; take the latest commit.
13230 (let ((commit "8655dca54970fcf7e92e22fbf57e1188724dda7d")
13231 (revision "1"))
13232 (package
13233 (name "find-circ")
13234 (version (git-version "1.2" revision commit))
13235 (source
13236 (origin
13237 (method git-fetch)
13238 (uri (git-reference
13239 (url "https://github.com/marvin-jens/find_circ.git")
13240 (commit commit)))
13241 (file-name (git-file-name name version))
13242 (sha256
13243 (base32
13244 "0p77pbqbclqr4srms34y1b9b4njybfpjiknc11ki84f3p8skb3cg"))))
13245 (build-system gnu-build-system)
13246 (arguments
13247 `(#:tests? #f ; there are none
13248 #:phases
13249 ;; There is no actual build system.
13250 (modify-phases %standard-phases
13251 (delete 'configure)
13252 (delete 'build)
13253 (replace 'install
13254 (lambda* (#:key outputs #:allow-other-keys)
13255 (let* ((out (assoc-ref outputs "out"))
13256 (bin (string-append out "/bin"))
13257 (path (getenv "PYTHONPATH")))
13258 (for-each (lambda (script)
13259 (install-file script bin)
13260 (wrap-program (string-append bin "/" script)
13261 `("PYTHONPATH" ":" prefix (,path))))
13262 '("cmp_bed.py"
13263 "find_circ.py"
13264 "maxlength.py"
13265 "merge_bed.py"
13266 "unmapped2anchors.py")))
13267 #t)))))
13268 (inputs
13269 `(("python2" ,python-2)
13270 ("python2-pysam" ,python2-pysam)
13271 ("python2-numpy" ,python2-numpy)))
13272 (home-page "https://github.com/marvin-jens/find_circ")
13273 (synopsis "circRNA detection from RNA-seq reads")
13274 (description "This package provides tools to detect head-to-tail
13275 spliced (back-spliced) sequencing reads, indicative of circular RNA (circRNA)
13276 in RNA-seq data.")
13277 (license license:gpl3))))
13278
13279 (define-public python-scanpy
13280 (package
13281 (name "python-scanpy")
13282 (version "1.4")
13283 ;; Fetch from git because the pypi tarball does not include tests.
13284 (source
13285 (origin
13286 (method git-fetch)
13287 (uri (git-reference
13288 (url "https://github.com/theislab/scanpy.git")
13289 (commit version)))
13290 (file-name (git-file-name name version))
13291 (sha256
13292 (base32
13293 "0zn6x6c0cnm1a20i6isigwb51g3pr9zpjk8r1minjqnxi5yc9pm4"))))
13294 (build-system python-build-system)
13295 (arguments
13296 `(#:phases
13297 (modify-phases %standard-phases
13298 (replace 'check
13299 (lambda* (#:key inputs #:allow-other-keys)
13300 ;; These tests require Internet access.
13301 (delete-file-recursively "scanpy/tests/notebooks")
13302 (delete-file "scanpy/tests/test_clustering.py")
13303
13304 ;; TODO: I can't get the plotting tests to work, even with Xvfb.
13305 (delete-file "scanpy/tests/test_plotting.py")
13306 (delete-file "scanpy/tests/test_preprocessing.py")
13307 (delete-file "scanpy/tests/test_read_10x.py")
13308
13309 (setenv "PYTHONPATH"
13310 (string-append (getcwd) ":"
13311 (getenv "PYTHONPATH")))
13312 (invoke "pytest")
13313 #t)))))
13314 (propagated-inputs
13315 `(("python-anndata" ,python-anndata)
13316 ("python-h5py" ,python-h5py)
13317 ("python-igraph" ,python-igraph)
13318 ("python-joblib" ,python-joblib)
13319 ("python-louvain" ,python-louvain)
13320 ("python-matplotlib" ,python-matplotlib)
13321 ("python-natsort" ,python-natsort)
13322 ("python-networkx" ,python-networkx)
13323 ("python-numba" ,python-numba)
13324 ("python-pandas" ,python-pandas)
13325 ("python-scikit-learn" ,python-scikit-learn)
13326 ("python-scipy" ,python-scipy)
13327 ("python-seaborn" ,python-seaborn)
13328 ("python-statsmodels" ,python-statsmodels)
13329 ("python-tables" ,python-tables)))
13330 (native-inputs
13331 `(("python-pytest" ,python-pytest)))
13332 (home-page "https://github.com/theislab/scanpy")
13333 (synopsis "Single-Cell Analysis in Python.")
13334 (description "Scanpy is a scalable toolkit for analyzing single-cell gene
13335 expression data. It includes preprocessing, visualization, clustering,
13336 pseudotime and trajectory inference and differential expression testing. The
13337 Python-based implementation efficiently deals with datasets of more than one
13338 million cells.")
13339 (license license:bsd-3)))
13340
13341 (define-public python-bbknn
13342 (package
13343 (name "python-bbknn")
13344 (version "1.3.1")
13345 (source
13346 (origin
13347 (method url-fetch)
13348 (uri (pypi-uri "bbknn" version))
13349 (sha256
13350 (base32
13351 "1qgdganvj3lyxj84v7alm23b9vqhwpn8z0115qndpnpy90qxynwz"))))
13352 (build-system python-build-system)
13353 (propagated-inputs
13354 `(("python-annoy" ,python-annoy)
13355 ("python-cython" ,python-cython)
13356 ("python-faiss" ,python-faiss)
13357 ("python-numpy" ,python-numpy)
13358 ("python-scanpy" ,python-scanpy)))
13359 (home-page "https://github.com/Teichlab/bbknn")
13360 (synopsis "Batch balanced KNN")
13361 (description "BBKNN is a batch effect removal tool that can be directly
13362 used in the Scanpy workflow. It serves as an alternative to
13363 @code{scanpy.api.pp.neighbors()}, with both functions creating a neighbour
13364 graph for subsequent use in clustering, pseudotime and UMAP visualisation. If
13365 technical artifacts are present in the data, they will make it challenging to
13366 link corresponding cell types across different batches. BBKNN actively
13367 combats this effect by splitting your data into batches and finding a smaller
13368 number of neighbours for each cell within each of the groups. This helps
13369 create connections between analogous cells in different batches without
13370 altering the counts or PCA space.")
13371 (license license:expat)))
13372
13373 (define-public gffcompare
13374 (let ((commit "be56ef4349ea3966c12c6397f85e49e047361c41")
13375 (revision "1"))
13376 (package
13377 (name "gffcompare")
13378 (version (git-version "0.10.15" revision commit))
13379 (source
13380 (origin
13381 (method git-fetch)
13382 (uri (git-reference
13383 (url "https://github.com/gpertea/gffcompare/")
13384 (commit commit)))
13385 (file-name (git-file-name name version))
13386 (sha256
13387 (base32 "0cp5qpxdhw4mxpya5dld8wi3jk00zyklm6rcri426wydinrnfmkg"))))
13388 (build-system gnu-build-system)
13389 (arguments
13390 `(#:tests? #f ; no check target
13391 #:phases
13392 (modify-phases %standard-phases
13393 (delete 'configure)
13394 (add-before 'build 'copy-gclib-source
13395 (lambda* (#:key inputs #:allow-other-keys)
13396 (mkdir "../gclib")
13397 (copy-recursively
13398 (assoc-ref inputs "gclib-source") "../gclib")
13399 #t))
13400 (replace 'install
13401 (lambda* (#:key outputs #:allow-other-keys)
13402 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13403 (install-file "gffcompare" bin)
13404 #t))))))
13405 (native-inputs
13406 `(("gclib-source" ; see 'README.md' of gffcompare
13407 ,(let ((commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13408 (revision "1")
13409 (name "gclib")
13410 (version (git-version "0.10.3" revision commit)))
13411 (origin
13412 (method git-fetch)
13413 (uri (git-reference
13414 (url "https://github.com/gpertea/gclib/")
13415 (commit commit)))
13416 (file-name (git-file-name name version))
13417 (sha256
13418 (base32 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13419 (home-page "https://github.com/gpertea/gffcompare/")
13420 (synopsis "Tool for comparing or classifing transcripts of RNA-Seq")
13421 (description
13422 "@code{gffcompare} is a tool that can:
13423 @enumerate
13424 @item compare and evaluate the accuracy of RNA-Seq transcript assemblers
13425 (Cufflinks, Stringtie);
13426 @item collapse (merge) duplicate transcripts from multiple GTF/GFF3 files (e.g.
13427 resulted from assembly of different samples);
13428 @item classify transcripts from one or multiple GTF/GFF3 files as they relate to
13429 reference transcripts provided in a annotation file (also in GTF/GFF3 format).
13430 @end enumerate")
13431 (license
13432 (list
13433 license:expat ;license for gffcompare
13434 license:artistic2.0))))) ;license for gclib
13435
13436 (define-public python-intervaltree
13437 (package
13438 (name "python-intervaltree")
13439 (version "2.1.0")
13440 (source
13441 (origin
13442 (method url-fetch)
13443 (uri (pypi-uri "intervaltree" version))
13444 (sha256
13445 (base32
13446 "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc"))))
13447 (build-system python-build-system)
13448 ;; FIXME: error when collecting tests
13449 (arguments '(#:tests? #f))
13450 (propagated-inputs
13451 `(("python-sortedcontainers" ,python-sortedcontainers)))
13452 (native-inputs
13453 `(("python-pytest" ,python-pytest)))
13454 (home-page "https://github.com/chaimleib/intervaltree")
13455 (synopsis "Editable interval tree data structure")
13456 (description
13457 "This package provides a mutable, self-balancing interval tree
13458 implementation for Python. Queries may be by point, by range overlap, or by
13459 range envelopment. This library was designed to allow tagging text and time
13460 intervals, where the intervals include the lower bound but not the upper
13461 bound.")
13462 (license license:asl2.0)))
13463
13464 (define-public python-pypairix
13465 (package
13466 (name "python-pypairix")
13467 (version "0.3.6")
13468 (source
13469 (origin
13470 (method url-fetch)
13471 (uri (pypi-uri "pypairix" version))
13472 (sha256
13473 (base32
13474 "0zs92b74s5v4xy2h16s15f3z6l4nnbw8x8zyif7xx5xpafjn0xss"))))
13475 (build-system python-build-system)
13476 ;; FIXME: the tests fail because test.support cannot be loaded:
13477 ;; ImportError: cannot import name 'support'
13478 (arguments '(#:tests? #f))
13479 (inputs
13480 `(("zlib" ,zlib)))
13481 (home-page "https://github.com/4dn-dcic/pairix")
13482 (synopsis "Support for querying pairix-indexed bgzipped text files")
13483 (description
13484 "Pypairix is a Python module for fast querying on a pairix-indexed
13485 bgzipped text file that contains a pair of genomic coordinates per line.")
13486 (license license:expat)))
13487
13488 (define-public python-pyfaidx
13489 (package
13490 (name "python-pyfaidx")
13491 (version "0.5.4.2")
13492 (source
13493 (origin
13494 (method url-fetch)
13495 (uri (pypi-uri "pyfaidx" version))
13496 (sha256
13497 (base32
13498 "0y5zyjksj1rdglj601xd2bbni5abhdh622y3ck76chyzxz9z4rx8"))))
13499 (build-system python-build-system)
13500 (propagated-inputs
13501 `(("python-setuptools" ,python-setuptools)
13502 ("python-six" ,python-six)))
13503 (home-page "http://mattshirley.com")
13504 (synopsis "Random access to fasta subsequences")
13505 (description
13506 "This package provides procedures for efficient pythonic random access to
13507 fasta subsequences.")
13508 (license license:bsd-3)))
13509
13510 (define-public python-cooler
13511 (package
13512 (name "python-cooler")
13513 (version "0.7.11")
13514 (source
13515 (origin
13516 (method url-fetch)
13517 (uri (pypi-uri "cooler" version))
13518 (sha256
13519 (base32
13520 "08k5nxnxa6qsbk15z5z0q01n28042k87wi4905hh95rzqib15mhx"))))
13521 (build-system python-build-system)
13522 (propagated-inputs
13523 `(("python-biopython" ,python-biopython)
13524 ("python-click" ,python-click)
13525 ("python-cytoolz" ,python-cytoolz)
13526 ("python-dask" ,python-dask)
13527 ("python-h5py" ,python-h5py)
13528 ("python-multiprocess" ,python-multiprocess)
13529 ("python-pandas" ,python-pandas)
13530 ("python-pyfaidx" ,python-pyfaidx)
13531 ("python-pypairix" ,python-pypairix)
13532 ("python-pysam" ,python-pysam)
13533 ("python-scipy" ,python-scipy)))
13534 (native-inputs
13535 `(("python-mock" ,python-mock)
13536 ("python-nose" ,python-nose)
13537 ("python-numpydoc" ,python-numpydoc)
13538 ("python-sphinx" ,python-sphinx)))
13539 (home-page "https://github.com/mirnylab/cooler")
13540 (synopsis "Sparse binary format for genomic interaction matrices")
13541 (description
13542 "Cooler is a support library for a sparse, compressed, binary persistent
13543 storage format, called @code{cool}, used to store genomic interaction data,
13544 such as Hi-C contact matrices.")
13545 (license license:bsd-3)))
13546
13547 (define-public python-hicexplorer
13548 (package
13549 (name "python-hicexplorer")
13550 (version "2.1.4")
13551 (source
13552 (origin
13553 ;; The latest version is not available on Pypi.
13554 (method git-fetch)
13555 (uri (git-reference
13556 (url "https://github.com/deeptools/HiCExplorer.git")
13557 (commit version)))
13558 (file-name (git-file-name name version))
13559 (sha256
13560 (base32
13561 "0q5gpbzmrkvygqgw524q36b4nrivcmyi5v194vsx0qw7b3gcmq08"))))
13562 (build-system python-build-system)
13563 (arguments
13564 `(#:phases
13565 (modify-phases %standard-phases
13566 (add-after 'unpack 'loosen-up-requirements
13567 (lambda _
13568 (substitute* "setup.py"
13569 (("==") ">="))
13570 #t)))))
13571 (propagated-inputs
13572 `(("python-biopython" ,python-biopython)
13573 ("python-configparser" ,python-configparser)
13574 ("python-cooler" ,python-cooler)
13575 ("python-future" ,python-future)
13576 ("python-intervaltree" ,python-intervaltree)
13577 ("python-jinja2" ,python-jinja2)
13578 ("python-matplotlib" ,python-matplotlib)
13579 ("python-numpy" ,python-numpy)
13580 ("python-pandas" ,python-pandas)
13581 ("python-pybigwig" ,python-pybigwig)
13582 ("python-pysam" ,python-pysam)
13583 ("python-scipy" ,python-scipy)
13584 ("python-six" ,python-six)
13585 ("python-tables" ,python-tables)
13586 ("python-unidecode" ,python-unidecode)))
13587 (home-page "http://hicexplorer.readthedocs.io")
13588 (synopsis "Process, analyze and visualize Hi-C data")
13589 (description
13590 "HiCExplorer is a powerful and easy to use set of tools to process,
13591 normalize and visualize Hi-C data. HiCExplorer facilitates the creation of
13592 contact matrices, correction of contacts, TAD detection, A/B compartments,
13593 merging, reordering or chromosomes, conversion from different formats
13594 including cooler and detection of long-range contacts. Moreover, it allows
13595 the visualization of multiple contact matrices along with other types of data
13596 like genes, compartments, ChIP-seq coverage tracks (and in general any type of
13597 genomic scores), long range contacts and the visualization of viewpoints.")
13598 (license license:gpl3)))
13599
13600 (define-public python-pygenometracks
13601 (package
13602 (name "python-pygenometracks")
13603 (version "2.0")
13604 (source
13605 (origin
13606 (method url-fetch)
13607 (uri (pypi-uri "pyGenomeTracks" version))
13608 (sha256
13609 (base32
13610 "1fws6bqsyy9kj3qiabhkqx4wd4i775gsxnhszqd3zg7w67sc1ic5"))))
13611 (build-system python-build-system)
13612 (propagated-inputs
13613 `(("python-configparser" ,python-configparser)
13614 ("python-future" ,python-future)
13615 ("python-hicexplorer" ,python-hicexplorer)
13616 ("python-intervaltree" ,python-intervaltree)
13617 ("python-matplotlib" ,python-matplotlib)
13618 ("python-numpy" ,python-numpy)
13619 ("python-pybigwig" ,python-pybigwig)))
13620 (native-inputs
13621 `(("python-pytest" ,python-pytest)))
13622 (home-page "https://pygenometracks.readthedocs.io")
13623 (synopsis "Program and library to plot beautiful genome browser tracks")
13624 (description
13625 "This package aims to produce high-quality genome browser tracks that
13626 are highly customizable. Currently, it is possible to plot: bigwig, bed (many
13627 options), bedgraph, links (represented as arcs), and Hi-C matrices.
13628 pyGenomeTracks can make plots with or without Hi-C data.")
13629 (license license:gpl3+)))
13630
13631 (define-public python-hic2cool
13632 (package
13633 (name "python-hic2cool")
13634 (version "0.4.2")
13635 (source
13636 (origin
13637 (method url-fetch)
13638 (uri (pypi-uri "hic2cool" version))
13639 (sha256
13640 (base32
13641 "0xy6mhfns2lzib1kcr6419jjp6pmh0qx8z8na55lmiwn0ds8q9cl"))))
13642 (build-system python-build-system)
13643 (arguments '(#:tests? #f)) ; no tests included
13644 (propagated-inputs
13645 `(("python-cooler" ,python-cooler)))
13646 (home-page "https://github.com/4dn-dcic/hic2cool")
13647 (synopsis "Converter for .hic and .cool files")
13648 (description
13649 "This package provides a converter between @code{.hic} files (from
13650 juicer) and single-resolution or multi-resolution @code{.cool} files (for
13651 cooler). Both @code{hic} and @code{cool} files describe Hi-C contact
13652 matrices.")
13653 (license license:expat)))
13654
13655 (define-public r-pore
13656 (package
13657 (name "r-pore")
13658 (version "0.24")
13659 (source
13660 (origin
13661 (method url-fetch)
13662 (uri
13663 (string-append "mirror://sourceforge/rpore/" version
13664 "/poRe_" version ".tar.gz"))
13665 (sha256
13666 (base32 "0pih9nljbv8g4x8rkk29i7aqq681b782r5s5ynp4nw9yzqnmmksv"))))
13667 (properties `((upstream-name . "poRe")))
13668 (build-system r-build-system)
13669 (propagated-inputs
13670 `(("r-bit64" ,r-bit64)
13671 ("r-data-table" ,r-data-table)
13672 ("r-rhdf5" ,r-rhdf5)
13673 ("r-shiny" ,r-shiny)
13674 ("r-svdialogs" ,r-svdialogs)))
13675 (home-page "https://sourceforge.net/projects/rpore/")
13676 (synopsis "Visualize Nanopore sequencing data")
13677 (description
13678 "This package provides graphical user interfaces to organize and visualize Nanopore
13679 sequencing data.")
13680 ;; This is free software but the license variant is unclear:
13681 ;; <https://github.com/mw55309/poRe_docs/issues/10>.
13682 (license license:bsd-3)))
13683
13684 (define-public r-xbioc
13685 (let ((revision "1")
13686 (commit "f798c187e376fd1ba27abd559f47bbae7e3e466b"))
13687 (package
13688 (name "r-xbioc")
13689 (version (git-version "0.1.15" revision commit))
13690 (source (origin
13691 (method git-fetch)
13692 (uri (git-reference
13693 (url "https://github.com/renozao/xbioc.git")
13694 (commit commit)))
13695 (file-name (git-file-name name version))
13696 (sha256
13697 (base32
13698 "03hffh2f6z71y6l6dqpa5cql3hdaw7zigdi8sm2dzgx379k9rgrr"))))
13699 (build-system r-build-system)
13700 (propagated-inputs
13701 `(("r-annotationdbi" ,r-annotationdbi)
13702 ("r-assertthat" ,r-assertthat)
13703 ("r-biobase" ,r-biobase)
13704 ("r-biocinstaller" ,r-biocinstaller)
13705 ("r-digest" ,r-digest)
13706 ("r-pkgmaker" ,r-pkgmaker)
13707 ("r-plyr" ,r-plyr)
13708 ("r-reshape2" ,r-reshape2)
13709 ("r-stringr" ,r-stringr)))
13710 (home-page "https://github.com/renozao/xbioc/")
13711 (synopsis "Extra base functions for Bioconductor")
13712 (description "This package provides extra utility functions to perform
13713 common tasks in the analysis of omics data, leveraging and enhancing features
13714 provided by Bioconductor packages.")
13715 (license license:gpl3+))))
13716
13717 (define-public r-cssam
13718 (let ((revision "1")
13719 (commit "9ec58c982fa551af0d80b1a266890d92954833f2"))
13720 (package
13721 (name "r-cssam")
13722 (version (git-version "1.4" revision commit))
13723 (source (origin
13724 (method git-fetch)
13725 (uri (git-reference
13726 (url "https://github.com/shenorrLab/csSAM.git")
13727 (commit commit)))
13728 (file-name (git-file-name name version))
13729 (sha256
13730 (base32
13731 "128syf9v39gk0z3ip000qpsjbg6l1siyq6c8b0hz41dzg5achyb3"))))
13732 (build-system r-build-system)
13733 (propagated-inputs
13734 `(("r-formula" ,r-formula)
13735 ("r-ggplot2" ,r-ggplot2)
13736 ("r-pkgmaker" ,r-pkgmaker)
13737 ("r-plyr" ,r-plyr)
13738 ("r-rngtools" ,r-rngtools)
13739 ("r-scales" ,r-scales)))
13740 (home-page "https://github.com/shenorrLab/csSAM/")
13741 (synopsis "Cell type-specific statistical analysis of microarray")
13742 (description "This package implements the method csSAM that computes
13743 cell-specific differential expression from measured cell proportions using
13744 SAM.")
13745 ;; Any version
13746 (license license:lgpl2.1+))))
13747
13748 (define-public r-bseqsc
13749 (let ((revision "1")
13750 (commit "fef3f3e38dcf3df37103348b5780937982b43b98"))
13751 (package
13752 (name "r-bseqsc")
13753 (version (git-version "1.0" revision commit))
13754 (source (origin
13755 (method git-fetch)
13756 (uri (git-reference
13757 (url "https://github.com/shenorrLab/bseqsc.git")
13758 (commit commit)))
13759 (file-name (git-file-name name version))
13760 (sha256
13761 (base32
13762 "1prw13wa20f7wlc3gkkls66n1kxz8d28qrb8icfqdwdnnv8w5qg8"))))
13763 (build-system r-build-system)
13764 (propagated-inputs
13765 `(("r-abind" ,r-abind)
13766 ("r-annotationdbi" ,r-annotationdbi)
13767 ("r-biobase" ,r-biobase)
13768 ("r-cssam" ,r-cssam)
13769 ("r-dplyr" ,r-dplyr)
13770 ("r-e1071" ,r-e1071)
13771 ("r-edger" ,r-edger)
13772 ("r-ggplot2" ,r-ggplot2)
13773 ("r-nmf" ,r-nmf)
13774 ("r-openxlsx" ,r-openxlsx)
13775 ("r-pkgmaker" ,r-pkgmaker)
13776 ("r-plyr" ,r-plyr)
13777 ("r-preprocesscore" ,r-preprocesscore)
13778 ("r-rngtools" ,r-rngtools)
13779 ("r-scales" ,r-scales)
13780 ("r-stringr" ,r-stringr)
13781 ("r-xbioc" ,r-xbioc)))
13782 (home-page "https://github.com/shenorrLab/bseqsc")
13783 (synopsis "Deconvolution of bulk sequencing experiments using single cell data")
13784 (description "BSeq-sc is a bioinformatics analysis pipeline that
13785 leverages single-cell sequencing data to estimate cell type proportion and
13786 cell type-specific gene expression differences from RNA-seq data from bulk
13787 tissue samples. This is a companion package to the publication \"A
13788 single-cell transcriptomic map of the human and mouse pancreas reveals inter-
13789 and intra-cell population structure.\" Baron et al. Cell Systems (2016)
13790 @url{https://www.ncbi.nlm.nih.gov/pubmed/27667365}.")
13791 (license license:gpl2+))))
13792
13793 (define-public porechop
13794 ;; The recommended way to install is to clone the git repository
13795 ;; https://github.com/rrwick/Porechop#installation
13796 (let ((commit "289d5dca4a5fc327f97b3f8cecb68ecaf1014861")
13797 (revision "1"))
13798 (package
13799 (name "porechop")
13800 (version (git-version "0.2.3" revision commit))
13801 (source
13802 (origin
13803 (method git-fetch)
13804 (uri (git-reference
13805 (url "https://github.com/rrwick/Porechop.git")
13806 (commit commit)))
13807 (file-name (git-file-name name version))
13808 (sha256
13809 (base32 "05ps43gig0d3ia9x5lj84lb00hbsl6ba9n7y7jz927npxbr2ym23"))))
13810 (build-system python-build-system)
13811 (home-page "https://github.com/rrwick/porechop")
13812 (synopsis "Finding, trimming or splitting adapters, in Oxford Nanopore reads")
13813 (description
13814 "The porechop package is a tool for finding and removing adapters from Oxford
13815 Nanopore reads. Adapters on the ends of reads are trimmed off, and when a read
13816 has an adapter in its middle, it is treated as chimeric and chopped into
13817 separate reads. Porechop performs thorough alignments to effectively find
13818 adapters, even at low sequence identity. Porechop also supports demultiplexing
13819 of Nanopore reads that were barcoded with the Native Barcoding Kit, PCR
13820 Barcoding Kit or Rapid Barcoding Kit.")
13821 (license license:gpl3+))))
13822
13823 (define-public poretools
13824 ;; The latest release was in 2016 and the latest commit is from 2017
13825 ;; the recommended way to install is to clone the git repository
13826 ;; https://poretools.readthedocs.io/en/latest/content/installation.html
13827 (let ((commit "e426b1f09e86ac259a00c261c79df91510777407")
13828 (revision "1"))
13829 (package
13830 (name "poretools")
13831 (version (git-version "0.6.0" revision commit))
13832 (source
13833 (origin
13834 (method git-fetch)
13835 (uri (git-reference
13836 (url "https://github.com/arq5x/poretools.git")
13837 (commit commit)))
13838 (file-name (git-file-name name version))
13839 (sha256
13840 (base32 "0bglj833wxpp3cq430p1d3xp085ls221js2y90w7ir2x5ay8l7am"))))
13841 (build-system python-build-system)
13842 ;; requires python >=2.7, <3.0, and the same for python dependencies
13843 (arguments `(#:python ,python-2))
13844 (inputs
13845 `(("hdf5" ,hdf5)))
13846 (propagated-inputs
13847 `(("python-dateutil" ,python2-dateutil)
13848 ("python-h5py" ,python2-h5py)
13849 ("python-matplotlib" ,python2-matplotlib)
13850 ("python-pandas" ,python2-pandas)
13851 ("python-seaborn" ,python2-seaborn)))
13852 (home-page "https://poretools.readthedocs.io")
13853 (synopsis "Toolkit for working with nanopore sequencing data")
13854 (description
13855 "The MinION from Oxford Nanopore Technologies is a nanopore sequencer.
13856 This @code{poretools} package is a flexible toolkit for exploring datasets
13857 generated by nanopore sequencing devices for the purposes of quality control and
13858 downstream analysis. Poretools operates directly on the native FAST5, a variant
13859 of the Hierarchical Data Format (HDF5) standard.")
13860 (license license:expat))))
13861
13862 (define-public r-absfiltergsea
13863 (package
13864 (name "r-absfiltergsea")
13865 (version "1.5.1")
13866 (source
13867 (origin
13868 (method url-fetch)
13869 (uri (cran-uri "AbsFilterGSEA" version))
13870 (sha256
13871 (base32 "15srxkxsvn38kd5frdrwfdf0ad8gskrd0h01wmdf9hglq8fjrp7w"))))
13872 (properties `((upstream-name . "AbsFilterGSEA")))
13873 (build-system r-build-system)
13874 (propagated-inputs
13875 `(("r-biobase" ,r-biobase)
13876 ("r-deseq" ,r-deseq)
13877 ("r-limma" ,r-limma)
13878 ("r-rcpp" ,r-rcpp)
13879 ("r-rcpparmadillo" ,r-rcpparmadillo)))
13880 (home-page "https://cran.r-project.org/web/packages/AbsFilterGSEA/")
13881 (synopsis "Improved false positive control of gene-permuting with absolute filtering")
13882 (description
13883 "This package provides a function that performs gene-permuting of a gene-set
13884 enrichment analysis (GSEA) calculation with or without the absolute filtering.
13885 Without filtering, users can perform (original) two-tailed or one-tailed
13886 absolute GSEA.")
13887 (license license:gpl2)))
13888
13889 (define-public jamm
13890 (package
13891 (name "jamm")
13892 (version "1.0.7.5")
13893 (source
13894 (origin
13895 (method git-fetch)
13896 (uri (git-reference
13897 (url "https://github.com/mahmoudibrahim/JAMM.git")
13898 (commit (string-append "JAMMv" version))))
13899 (file-name (git-file-name name version))
13900 (sha256
13901 (base32
13902 "0ls889jcma1ch9h21jjhnkadgszgqj41842hhcjh6cg88f85qf3i"))))
13903 (build-system gnu-build-system)
13904 (arguments
13905 `(#:tests? #f ; there are none
13906 #:phases
13907 (modify-phases %standard-phases
13908 (delete 'configure)
13909 (delete 'build)
13910 (replace 'install
13911 (lambda* (#:key inputs outputs #:allow-other-keys)
13912 (let* ((out (assoc-ref outputs "out"))
13913 (libexec (string-append out "/libexec/jamm"))
13914 (bin (string-append out "/bin")))
13915 (substitute* '("JAMM.sh"
13916 "SignalGenerator.sh")
13917 (("^sPath=.*")
13918 (string-append "sPath=\"" libexec "\"\n")))
13919 (for-each (lambda (file)
13920 (install-file file libexec))
13921 (list "bincalculator.r"
13922 "peakfinder.r"
13923 "peakhelper.r"
13924 "signalmaker.r"
13925 "xcorr.r"
13926 "xcorrhelper.r"
13927 ;; Perl scripts
13928 "peakfilter.pl"
13929 "readshifter.pl"))
13930
13931 (for-each
13932 (lambda (script)
13933 (chmod script #o555)
13934 (install-file script bin)
13935 (wrap-program (string-append bin "/" script)
13936 `("PATH" ":" prefix
13937 (,(string-append (assoc-ref inputs "coreutils") "/bin")
13938 ,(string-append (assoc-ref inputs "gawk") "/bin")
13939 ,(string-append (assoc-ref inputs "perl") "/bin")
13940 ,(string-append (assoc-ref inputs "r-minimal") "/bin")))
13941 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))
13942 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
13943 (list "JAMM.sh" "SignalGenerator.sh")))
13944 #t)))))
13945 (inputs
13946 `(("bash" ,bash)
13947 ("coreutils" ,coreutils)
13948 ("gawk" ,gawk)
13949 ("perl" ,perl)
13950 ("r-minimal" ,r-minimal)
13951 ;;("r-parallel" ,r-parallel)
13952 ("r-signal" ,r-signal)
13953 ("r-mclust" ,r-mclust)))
13954 (home-page "https://github.com/mahmoudibrahim/JAMM")
13955 (synopsis "Peak finder for NGS datasets")
13956 (description
13957 "JAMM is a peak finder for next generation sequencing datasets (ChIP-Seq,
13958 ATAC-Seq, DNase-Seq, etc.) that can integrate replicates and assign peak
13959 boundaries accurately. JAMM is applicable to both broad and narrow
13960 datasets.")
13961 (license license:gpl3+)))
13962
13963 (define-public ngless
13964 (package
13965 (name "ngless")
13966 (version "0.9.1")
13967 (source
13968 (origin
13969 (method git-fetch)
13970 (uri (git-reference
13971 (url "https://gitlab.com/ngless/ngless.git")
13972 (commit (string-append "v" version))))
13973 (file-name (git-file-name name version))
13974 (sha256
13975 (base32
13976 "0mc2gi7h4lx74zylvyp76mvc0w6706j858ii9vlgzqsw6acpr117"))))
13977 (build-system haskell-build-system)
13978 (arguments
13979 `(#:haddock? #f ; The haddock phase fails with: NGLess/CmdArgs.hs:20:1:
13980 ; error: parse error on input import
13981 ; import Options.Applicative
13982 #:phases
13983 (modify-phases %standard-phases
13984 (add-after 'unpack 'create-cabal-file
13985 (lambda _ (invoke "hpack") #t))
13986 ;; These tools are expected to be installed alongside ngless.
13987 (add-after 'install 'link-tools
13988 (lambda* (#:key inputs outputs #:allow-other-keys)
13989 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
13990 (symlink (string-append (assoc-ref inputs "prodigal")
13991 "/bin/prodigal")
13992 (string-append bin "ngless-" ,version "-prodigal"))
13993 (symlink (string-append (assoc-ref inputs "minimap2")
13994 "/bin/minimap2")
13995 (string-append bin "ngless-" ,version "-minimap2"))
13996 (symlink (string-append (assoc-ref inputs "samtools")
13997 "/bin/samtools")
13998 (string-append bin "ngless-" ,version "-samtools"))
13999 (symlink (string-append (assoc-ref inputs "bwa")
14000 "/bin/bwa")
14001 (string-append bin "ngless-" ,version "-bwa"))
14002 #t))))))
14003 (inputs
14004 `(("prodigal" ,prodigal)
14005 ("bwa" ,bwa)
14006 ("samtools" ,samtools)
14007 ("minimap2" ,minimap2)
14008 ("ghc-aeson" ,ghc-aeson)
14009 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
14010 ("ghc-async" ,ghc-async)
14011 ("ghc-atomic-write" ,ghc-atomic-write)
14012 ("ghc-bytestring-lexing" ,ghc-bytestring-lexing)
14013 ("ghc-chart" ,ghc-chart)
14014 ("ghc-chart-cairo" ,ghc-chart-cairo)
14015 ("ghc-conduit" ,ghc-conduit)
14016 ("ghc-conduit-algorithms" ,ghc-conduit-algorithms)
14017 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
14018 ("ghc-conduit-extra" ,ghc-conduit-extra)
14019 ("ghc-configurator" ,ghc-configurator)
14020 ("ghc-convertible" ,ghc-convertible)
14021 ("ghc-data-default" ,ghc-data-default)
14022 ("ghc-double-conversion" ,ghc-double-conversion)
14023 ("ghc-edit-distance" ,ghc-edit-distance)
14024 ("ghc-either" ,ghc-either)
14025 ("ghc-errors" ,ghc-errors)
14026 ("ghc-extra" ,ghc-extra)
14027 ("ghc-filemanip" ,ghc-filemanip)
14028 ("ghc-file-embed" ,ghc-file-embed)
14029 ("ghc-gitrev" ,ghc-gitrev)
14030 ("ghc-hashtables" ,ghc-hashtables)
14031 ("ghc-http-conduit" ,ghc-http-conduit)
14032 ("ghc-inline-c" ,ghc-inline-c)
14033 ("ghc-inline-c-cpp" ,ghc-inline-c-cpp)
14034 ("ghc-intervalmap" ,ghc-intervalmap)
14035 ("ghc-missingh" ,ghc-missingh)
14036 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
14037 ("ghc-parsec" ,ghc-parsec)
14038 ("ghc-regex" ,ghc-regex)
14039 ("ghc-safe" ,ghc-safe)
14040 ("ghc-safeio" ,ghc-safeio)
14041 ("ghc-strict" ,ghc-strict)
14042 ("ghc-tar" ,ghc-tar)
14043 ("ghc-text" ,ghc-text)
14044 ("ghc-unliftio" ,ghc-unliftio)
14045 ("ghc-unliftio-core" ,ghc-unliftio-core)
14046 ("ghc-vector" ,ghc-vector)
14047 ("ghc-yaml" ,ghc-yaml)
14048 ("ghc-zlib" ,ghc-zlib)))
14049 (propagated-inputs
14050 `(("r-r6" ,r-r6)
14051 ("r-hdf5r" ,r-hdf5r)
14052 ("r-iterators" ,r-iterators)
14053 ("r-itertools" ,r-itertools)
14054 ("r-matrix" ,r-matrix)))
14055 (native-inputs
14056 `(("ghc-hpack" ,ghc-hpack)
14057 ("ghc-quickcheck" ,ghc-quickcheck)
14058 ("ghc-test-framework" ,ghc-test-framework)
14059 ("ghc-test-framework-hunit",ghc-test-framework-hunit)
14060 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
14061 ("ghc-test-framework-th" ,ghc-test-framework-th)))
14062 (home-page "https://gitlab.com/ngless/ngless")
14063 (synopsis "DSL for processing next-generation sequencing data")
14064 (description "Ngless is a domain-specific language for
14065 @dfn{next-generation sequencing} (NGS) data processing.")
14066 (license license:expat)))
14067
14068 (define-public filtlong
14069 ;; The recommended way to install is to clone the git repository
14070 ;; https://github.com/rrwick/Filtlong#installation
14071 ;; and the lastest release is more than nine months old
14072 (let ((commit "d1bb46dfe8bc7efe6257b5ce222c04bfe8aedaab")
14073 (revision "1"))
14074 (package
14075 (name "filtlong")
14076 (version (git-version "0.2.0" revision commit))
14077 (source
14078 (origin
14079 (method git-fetch)
14080 (uri (git-reference
14081 (url "https://github.com/rrwick/Filtlong.git")
14082 (commit commit)))
14083 (file-name (git-file-name name version))
14084 (sha256
14085 (base32 "1xr92r820x8qlkcr3b57iw223yq8vjgyi42jr79w2xgw47qzr575"))))
14086 (build-system gnu-build-system)
14087 (arguments
14088 `(#:tests? #f ; no check target
14089 #:phases
14090 (modify-phases %standard-phases
14091 (delete 'configure)
14092 (replace 'install
14093 (lambda* (#:key outputs #:allow-other-keys)
14094 (let* ((out (assoc-ref outputs "out"))
14095 (bin (string-append out "/bin"))
14096 (scripts (string-append out "/share/filtlong/scripts")))
14097 (install-file "bin/filtlong" bin)
14098 (install-file "scripts/histogram.py" scripts)
14099 (install-file "scripts/read_info_histograms.sh" scripts))
14100 #t))
14101 (add-after 'install 'wrap-program
14102 (lambda* (#:key inputs outputs #:allow-other-keys)
14103 (let* ((out (assoc-ref outputs "out"))
14104 (path (getenv "PYTHONPATH")))
14105 (wrap-program (string-append out
14106 "/share/filtlong/scripts/histogram.py")
14107 `("PYTHONPATH" ":" prefix (,path))))
14108 #t))
14109 (add-before 'check 'patch-tests
14110 (lambda _
14111 (substitute* "scripts/read_info_histograms.sh"
14112 (("awk") (which "gawk")))
14113 #t)))))
14114 (inputs
14115 `(("gawk" ,gawk) ;for read_info_histograms.sh
14116 ("python" ,python-2) ;required for histogram.py
14117 ("zlib" ,zlib)))
14118 (home-page "https://github.com/rrwick/Filtlong/")
14119 (synopsis "Tool for quality filtering of Nanopore and PacBio data")
14120 (description
14121 "The Filtlong package is a tool for filtering long reads by quality.
14122 It can take a set of long reads and produce a smaller, better subset. It uses
14123 both read length (longer is better) and read identity (higher is better) when
14124 choosing which reads pass the filter.")
14125 (license (list license:gpl3 ;filtlong
14126 license:asl2.0))))) ;histogram.py
14127
14128 (define-public nanopolish
14129 ;; The recommended way to install is to clone the git repository
14130 ;; <https://github.com/jts/nanopolish#installing-a-particular-release>.
14131 ;; Also, the differences between release and current version seem to be
14132 ;; significant.
14133 (let ((commit "50e8b5cc62f9b46f5445f5c5e8c5ab7263ea6d9d")
14134 (revision "1"))
14135 (package
14136 (name "nanopolish")
14137 (version (git-version "0.10.2" revision commit))
14138 (source
14139 (origin
14140 (method git-fetch)
14141 (uri (git-reference
14142 (url "https://github.com/jts/nanopolish.git")
14143 (commit commit)
14144 (recursive? #t)))
14145 (file-name (git-file-name name version))
14146 (sha256
14147 (base32 "09j5gz57yr9i34a27vbl72i4g8syv2zzgmsfyjq02yshmnrvkjs6"))
14148 (modules '((guix build utils)))
14149 (snippet
14150 '(begin
14151 (delete-file-recursively "htslib")
14152 #t))))
14153 (build-system gnu-build-system)
14154 (arguments
14155 `(#:make-flags
14156 `("HDF5=noinstall" "EIGEN=noinstall" "HTS=noinstall" "CC=gcc")
14157 #:tests? #f ; no check target
14158 #:phases
14159 (modify-phases %standard-phases
14160 (add-after 'unpack 'find-eigen
14161 (lambda* (#:key inputs #:allow-other-keys)
14162 (setenv "CPATH"
14163 (string-append (assoc-ref inputs "eigen")
14164 "/include/eigen3"))
14165 #t))
14166 (delete 'configure)
14167 (replace 'install
14168 (lambda* (#:key outputs #:allow-other-keys)
14169 (let* ((out (assoc-ref outputs "out"))
14170 (bin (string-append out "/bin"))
14171 (scripts (string-append out "/share/nanopolish/scripts")))
14172
14173 (install-file "nanopolish" bin)
14174 (for-each (lambda (file) (install-file file scripts))
14175 (find-files "scripts" ".*"))
14176 #t)))
14177 (add-after 'install 'wrap-programs
14178 (lambda* (#:key outputs #:allow-other-keys)
14179 (for-each (lambda (file)
14180 (wrap-program file `("PYTHONPATH" ":" prefix (,path))))
14181 (find-files "/share/nanopolish/scripts" "\\.py"))
14182 (for-each (lambda (file)
14183 (wrap-program file `("PERL5LIB" ":" prefix (,path))))
14184 (find-files "/share/nanopolish/scripts" "\\.pl"))
14185 #t)))))
14186 (inputs
14187 `(("eigen" ,eigen)
14188 ("hdf5" ,hdf5)
14189 ("htslib" ,htslib)
14190 ("perl" ,perl)
14191 ("python" ,python-wrapper)
14192 ("python-biopython" ,python-biopython)
14193 ("python-numpy" ,python-numpy)
14194 ("python-pysam" ,python-pysam)
14195 ("python-scikit-learn" , python-scikit-learn)
14196 ("python-scipy" ,python-scipy)
14197 ("zlib" ,zlib)))
14198 (home-page "https://github.com/jts/nanopolish")
14199 (synopsis "Signal-level analysis of Oxford Nanopore sequencing data")
14200 (description
14201 "This package analyses the Oxford Nanopore sequencing data at signal-level.
14202 Nanopolish can calculate an improved consensus sequence for a draft genome
14203 assembly, detect base modifications, call SNPs (Single nucleotide
14204 polymorphisms) and indels with respect to a reference genome and more.")
14205 (license license:expat))))
14206
14207 (define-public cnvkit
14208 (package
14209 (name "cnvkit")
14210 (version "0.9.5")
14211 (source
14212 (origin
14213 (method git-fetch)
14214 (uri (git-reference
14215 (url "https://github.com/etal/cnvkit.git")
14216 (commit (string-append "v" version))))
14217 (file-name (git-file-name name version))
14218 (sha256
14219 (base32 "0g2f78k68yglmj4fsfmgs8idqv3di9aj53fg0ld0hqljg8chhh82"))))
14220 (build-system python-build-system)
14221 (propagated-inputs
14222 `(("python-biopython" ,python-biopython)
14223 ("python-future" ,python-future)
14224 ("python-matplotlib" ,python-matplotlib)
14225 ("python-numpy" ,python-numpy)
14226 ("python-reportlab" ,python-reportlab)
14227 ("python-pandas" ,python-pandas)
14228 ("python-pysam" ,python-pysam)
14229 ("python-pyfaidx" ,python-pyfaidx)
14230 ("python-scipy" ,python-scipy)
14231 ;; R packages
14232 ("r-dnacopy" ,r-dnacopy)))
14233 (home-page "https://cnvkit.readthedocs.org/")
14234 (synopsis "Copy number variant detection from targeted DNA sequencing")
14235 (description
14236 "CNVkit is a Python library and command-line software toolkit to infer
14237 and visualize copy number from high-throughput DNA sequencing data. It is
14238 designed for use with hybrid capture, including both whole-exome and custom
14239 target panels, and short-read sequencing platforms such as Illumina and Ion
14240 Torrent.")
14241 (license license:asl2.0)))
14242
14243 (define-public python-pyfit-sne
14244 (package
14245 (name "python-pyfit-sne")
14246 (version "1.0.1")
14247 (source
14248 (origin
14249 (method git-fetch)
14250 (uri (git-reference
14251 (url "https://github.com/KlugerLab/pyFIt-SNE.git")
14252 (commit version)))
14253 (file-name (git-file-name name version))
14254 (sha256
14255 (base32 "13wh3qkzs56azmmgnxib6xfr29g7xh09sxylzjpni5j0pp0rc5qw"))))
14256 (build-system python-build-system)
14257 (propagated-inputs
14258 `(("python-numpy" ,python-numpy)))
14259 (inputs
14260 `(("fftw" ,fftw)))
14261 (native-inputs
14262 `(("python-cython" ,python-cython)))
14263 (home-page "https://github.com/KlugerLab/pyFIt-SNE")
14264 (synopsis "FFT-accelerated Interpolation-based t-SNE")
14265 (description
14266 "t-Stochastic Neighborhood Embedding (t-SNE) is a highly successful
14267 method for dimensionality reduction and visualization of high dimensional
14268 datasets. A popular implementation of t-SNE uses the Barnes-Hut algorithm to
14269 approximate the gradient at each iteration of gradient descent. This package
14270 is a Cython wrapper for FIt-SNE.")
14271 (license license:bsd-4)))
14272
14273 (define-public bbmap
14274 (package
14275 (name "bbmap")
14276 (version "35.82")
14277 (source (origin
14278 (method url-fetch)
14279 (uri (string-append
14280 "mirror://sourceforge/bbmap/BBMap_" version ".tar.gz"))
14281 (sha256
14282 (base32
14283 "1q4rfhxcb6z3gm8zg2davjz98w22lkf4hm9ikxz9kdl93pil3wkd"))))
14284 (build-system ant-build-system)
14285 (arguments
14286 `(#:build-target "dist"
14287 #:tests? #f ; there are none
14288 #:make-flags
14289 (list (string-append "-Dmpijar="
14290 (assoc-ref %build-inputs "java-openmpi")
14291 "/lib/mpi.jar"))
14292 #:modules ((guix build ant-build-system)
14293 (guix build utils)
14294 (guix build java-utils))
14295 #:phases
14296 (modify-phases %standard-phases
14297 (add-after 'build 'build-jni-library
14298 (lambda _
14299 (with-directory-excursion "jni"
14300 (invoke "make" "-f" "makefile.linux"))))
14301 ;; There is no install target
14302 (replace 'install (install-jars "dist"))
14303 (add-after 'install 'install-scripts-and-documentation
14304 (lambda* (#:key outputs #:allow-other-keys)
14305 (substitute* "calcmem.sh"
14306 (("\\| awk ") (string-append "| " (which "awk") " ")))
14307 (let* ((scripts (find-files "." "\\.sh$"))
14308 (out (assoc-ref outputs "out"))
14309 (bin (string-append out "/bin"))
14310 (doc (string-append out "/share/doc/bbmap"))
14311 (jni (string-append out "/lib/jni")))
14312 (substitute* scripts
14313 (("\\$DIR\"\"docs") doc)
14314 (("^CP=.*")
14315 (string-append "CP=" out "/share/java/BBTools.jar\n"))
14316 (("^NATIVELIBDIR.*")
14317 (string-append "NATIVELIBDIR=" jni "\n"))
14318 (("CMD=\"java")
14319 (string-append "CMD=\"" (which "java"))))
14320 (for-each (lambda (script) (install-file script bin)) scripts)
14321
14322 ;; Install JNI library
14323 (install-file "jni/libbbtoolsjni.so" jni)
14324
14325 ;; Install documentation
14326 (install-file "docs/readme.txt" doc)
14327 (copy-recursively "docs/guides" doc))
14328 #t)))
14329 #:jdk ,openjdk11))
14330 (inputs
14331 `(("gawk" ,gawk)
14332 ("java-eclipse-jdt-core" ,java-eclipse-jdt-core)
14333 ("java-eclipse-jdt-compiler-apt" ,java-eclipse-jdt-compiler-apt)
14334 ("java-openmpi" ,java-openmpi)))
14335 (home-page "http://sourceforge.net/projects/bbmap/")
14336 (synopsis "Aligner and other tools for short sequencing reads")
14337 (description
14338 "This package provides bioinformatic tools to align, deduplicate,
14339 reformat, filter and normalize DNA and RNA-seq data. It includes the
14340 following tools: BBMap, a short read aligner for DNA and RNA-seq data; BBNorm,
14341 a kmer-based error-correction and normalization tool; Dedupe, a tool to
14342 simplify assemblies by removing duplicate or contained subsequences that share
14343 a target percent identity; Reformat, to convert reads between
14344 fasta/fastq/scarf/fasta+qual/sam, interleaved/paired, and ASCII-33/64, at over
14345 500 MB/s; and BBDuk, a tool to filter, trim, or mask reads with kmer matches
14346 to an artifact/contaminant file.")
14347 (license license:bsd-3)))
14348
14349 (define-public velvet
14350 (package
14351 (name "velvet")
14352 (version "1.2.10")
14353 (source (origin
14354 (method url-fetch)
14355 (uri (string-append "https://www.ebi.ac.uk/~zerbino/velvet/"
14356 "velvet_" version ".tgz"))
14357 (sha256
14358 (base32
14359 "0h3njwy66p6bx14r3ar1byb0ccaxmxka4c65rn4iybyiqa4d8kc8"))
14360 ;; Delete bundled libraries
14361 (modules '((guix build utils)))
14362 (snippet
14363 '(begin
14364 (delete-file "Manual.pdf")
14365 (delete-file-recursively "third-party")
14366 #t))))
14367 (build-system gnu-build-system)
14368 (arguments
14369 `(#:make-flags '("OPENMP=t")
14370 #:test-target "test"
14371 #:phases
14372 (modify-phases %standard-phases
14373 (delete 'configure)
14374 (add-after 'unpack 'fix-zlib-include
14375 (lambda _
14376 (substitute* "src/binarySequences.c"
14377 (("../third-party/zlib-1.2.3/zlib.h") "zlib.h"))
14378 #t))
14379 (replace 'install
14380 (lambda* (#:key outputs #:allow-other-keys)
14381 (let* ((out (assoc-ref outputs "out"))
14382 (bin (string-append out "/bin"))
14383 (doc (string-append out "/share/doc/velvet")))
14384 (mkdir-p bin)
14385 (mkdir-p doc)
14386 (install-file "velveth" bin)
14387 (install-file "velvetg" bin)
14388 (install-file "Manual.pdf" doc)
14389 (install-file "Columbus_manual.pdf" doc)
14390 #t))))))
14391 (inputs
14392 `(("openmpi" ,openmpi)
14393 ("zlib" ,zlib)))
14394 (native-inputs
14395 `(("texlive" ,(texlive-union (list texlive-latex-graphics
14396 texlive-latex-hyperref)))))
14397 (home-page "https://www.ebi.ac.uk/~zerbino/velvet/")
14398 (synopsis "Nucleic acid sequence assembler for very short reads")
14399 (description
14400 "Velvet is a de novo genomic assembler specially designed for short read
14401 sequencing technologies, such as Solexa or 454. Velvet currently takes in
14402 short read sequences, removes errors then produces high quality unique
14403 contigs. It then uses paired read information, if available, to retrieve the
14404 repeated areas between contigs.")
14405 (license license:gpl2+)))
14406
14407 (define-public python-velocyto
14408 (package
14409 (name "python-velocyto")
14410 (version "0.17.17")
14411 (source
14412 (origin
14413 (method url-fetch)
14414 (uri (pypi-uri "velocyto" version))
14415 (sha256
14416 (base32
14417 "0fgygyzqgrq32dv6a00biq1p1cwi6kbl5iqblxq1kklj6b2mzmhs"))))
14418 (build-system python-build-system)
14419 (propagated-inputs
14420 `(("python-click" ,python-click)
14421 ("python-cython" ,python-cython)
14422 ("python-h5py" ,python-h5py)
14423 ("python-loompy" ,python-loompy)
14424 ("python-matplotlib" ,python-matplotlib)
14425 ("python-numba" ,python-numba)
14426 ("python-numpy" ,python-numpy)
14427 ("python-pandas" ,python-pandas)
14428 ("python-pysam" ,python-pysam)
14429 ("python-scikit-learn" ,python-scikit-learn)
14430 ("python-scipy" ,python-scipy)))
14431 (home-page "https://github.com/velocyto-team/velocyto.py")
14432 (synopsis "RNA velocity analysis for single cell RNA-seq data")
14433 (description
14434 "Velocyto is a library for the analysis of RNA velocity. Velocyto
14435 includes a command line tool and an analysis pipeline.")
14436 (license license:bsd-2)))
14437
14438 (define-public arriba
14439 (package
14440 (name "arriba")
14441 (version "1.0.1")
14442 (source
14443 (origin
14444 (method url-fetch)
14445 (uri (string-append "https://github.com/suhrig/arriba/releases/"
14446 "download/v" version "/arriba_v" version ".tar.gz"))
14447 (sha256
14448 (base32
14449 "0jx9656ry766vb8z08m1c3im87b0c82qpnjby9wz4kcz8vn87dx2"))))
14450 (build-system gnu-build-system)
14451 (arguments
14452 `(#:tests? #f ; there are none
14453 #:phases
14454 (modify-phases %standard-phases
14455 (replace 'configure
14456 (lambda* (#:key inputs #:allow-other-keys)
14457 (let ((htslib (assoc-ref inputs "htslib")))
14458 (substitute* "Makefile"
14459 (("-I\\$\\(HTSLIB\\)/htslib")
14460 (string-append "-I" htslib "/include/htslib"))
14461 ((" \\$\\(HTSLIB\\)/libhts.a")
14462 (string-append " " htslib "/lib/libhts.so"))))
14463 (substitute* "run_arriba.sh"
14464 (("^STAR ") (string-append (which "STAR") " "))
14465 (("samtools --version-only")
14466 (string-append (which "samtools") " --version-only"))
14467 (("samtools index")
14468 (string-append (which "samtools") " index"))
14469 (("samtools sort")
14470 (string-append (which "samtools") " sort")))
14471 #t))
14472 (replace 'install
14473 (lambda* (#:key outputs #:allow-other-keys)
14474 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14475 (install-file "arriba" bin)
14476 (install-file "run_arriba.sh" bin)
14477 (install-file "draw_fusions.R" bin)
14478 (wrap-program (string-append bin "/draw_fusions.R")
14479 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14480 #t)))))
14481 (inputs
14482 `(("htslib" ,htslib)
14483 ("r-minimal" ,r-minimal)
14484 ("r-circlize" ,r-circlize)
14485 ("r-genomicalignments" ,r-genomicalignments)
14486 ("r-genomicranges" ,r-genomicranges)
14487 ("samtools" ,samtools)
14488 ("star" ,star)
14489 ("zlib" ,zlib)))
14490 (home-page "https://github.com/suhrig/arriba")
14491 (synopsis "Gene fusion detection from RNA-Seq data ")
14492 (description
14493 "Arriba is a command-line tool for the detection of gene fusions from
14494 RNA-Seq data. It was developed for the use in a clinical research setting.
14495 Therefore, short runtimes and high sensitivity were important design criteria.
14496 It is based on the fast STAR aligner and the post-alignment runtime is
14497 typically just around two minutes. In contrast to many other fusion detection
14498 tools which build on STAR, Arriba does not require to reduce the
14499 @code{alignIntronMax} parameter of STAR to detect small deletions.")
14500 ;; All code is under the Expat license with the exception of
14501 ;; "draw_fusions.R", which is under GPLv3.
14502 (license (list license:expat license:gpl3))))
14503
14504 (define-public adapterremoval
14505 (package
14506 (name "adapterremoval")
14507 (version "2.3.0")
14508 (source
14509 (origin
14510 (method git-fetch)
14511 (uri (git-reference
14512 (url "https://github.com/MikkelSchubert/adapterremoval.git")
14513 (commit (string-append "v" version))))
14514 (file-name (git-file-name name version))
14515 (sha256
14516 (base32
14517 "1nf3ki5pfzalhrx2fr1y6pfqfi133yj2m7q4fj9irf5fb94bapwr"))))
14518 (build-system gnu-build-system)
14519 (arguments
14520 `(#:make-flags (list "COLOR_BUILD=no"
14521 (string-append "PREFIX="
14522 (assoc-ref %outputs "out")))
14523 #:test-target "test"
14524 #:phases
14525 (modify-phases %standard-phases
14526 (delete 'configure))))
14527 (inputs
14528 `(("zlib" ,zlib)))
14529 (home-page "https://adapterremoval.readthedocs.io/")
14530 (synopsis "Rapid sequence adapter trimming, identification, and read merging")
14531 (description
14532 "This program searches for and removes remnant adapter sequences from
14533 @dfn{High-Throughput Sequencing} (HTS) data and (optionally) trims low quality
14534 bases from the 3' end of reads following adapter removal. AdapterRemoval can
14535 analyze both single end and paired end data, and can be used to merge
14536 overlapping paired-ended reads into (longer) consensus sequences.
14537 Additionally, the AdapterRemoval may be used to recover a consensus adapter
14538 sequence for paired-ended data, for which this information is not available.")
14539 (license license:gpl3+)))