gnu: r-shortread: Update to 1.42.0.
[jackhill/guix/guix.git] / gnu / packages / bioinformatics.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 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.66.0")
6657 (source
6658 (origin
6659 (method url-fetch)
6660 (uri (bioconductor-uri "genefilter" version))
6661 (sha256
6662 (base32
6663 "1jq7lam4dnbvz55lx93kcl9afl8xfjd6xs374d35m21bkay418kj"))))
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.24.0")
6684 (source
6685 (origin
6686 (method url-fetch)
6687 (uri (bioconductor-uri "DESeq2" version))
6688 (sha256
6689 (base32
6690 "0fkk326addm2cw688gnmdzsmri5qx8j6ldnr4xin6kjnwicqhlqd"))))
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.30.0")
6721 (source
6722 (origin
6723 (method url-fetch)
6724 (uri (bioconductor-uri "DEXSeq" version))
6725 (sha256
6726 (base32
6727 "1b2s0vwm97g0wgm4ms0f4pqkqiqmxscnhg700aybl5vx0m2fa8xm"))))
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.26.0")
6764 (source
6765 (origin
6766 (method url-fetch)
6767 (uri (bioconductor-uri "AnnotationForge" version))
6768 (sha256
6769 (base32
6770 "0m4w8n2711wr28znv646cfc7m5jqlr8friz334zdyjmhg7m2xkb7"))))
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.60.0")
6794 (source
6795 (origin
6796 (method url-fetch)
6797 (uri (bioconductor-uri "RBGL" version))
6798 (sha256
6799 (base32
6800 "06brn9hl6lybx6hdfp1sycwj6wn1bjfi8xyhpy0v122v1z8d5mbz"))))
6801 (properties `((upstream-name . "RBGL")))
6802 (build-system r-build-system)
6803 (propagated-inputs
6804 `(("r-bh" ,r-bh)
6805 ("r-graph" ,r-graph)))
6806 (home-page "https://www.bioconductor.org/packages/RBGL")
6807 (synopsis "Interface to the Boost graph library")
6808 (description
6809 "This package provides a fairly extensive and comprehensive interface to
6810 the graph algorithms contained in the Boost library.")
6811 (license license:artistic2.0)))
6812
6813 (define-public r-gseabase
6814 (package
6815 (name "r-gseabase")
6816 (version "1.46.0")
6817 (source
6818 (origin
6819 (method url-fetch)
6820 (uri (bioconductor-uri "GSEABase" version))
6821 (sha256
6822 (base32
6823 "0vh53xk2prjbdkbr3hwfiflx1gh7ilrqs3j1p3lyd6syy3rn9n83"))))
6824 (properties `((upstream-name . "GSEABase")))
6825 (build-system r-build-system)
6826 (propagated-inputs
6827 `(("r-annotate" ,r-annotate)
6828 ("r-annotationdbi" ,r-annotationdbi)
6829 ("r-biobase" ,r-biobase)
6830 ("r-biocgenerics" ,r-biocgenerics)
6831 ("r-graph" ,r-graph)
6832 ("r-xml" ,r-xml)))
6833 (home-page "https://bioconductor.org/packages/GSEABase")
6834 (synopsis "Gene set enrichment data structures and methods")
6835 (description
6836 "This package provides classes and methods to support @dfn{Gene Set
6837 Enrichment Analysis} (GSEA).")
6838 (license license:artistic2.0)))
6839
6840 (define-public r-category
6841 (package
6842 (name "r-category")
6843 (version "2.50.0")
6844 (source
6845 (origin
6846 (method url-fetch)
6847 (uri (bioconductor-uri "Category" version))
6848 (sha256
6849 (base32
6850 "1n36xfnwn2np5f0lix9abvv9w6jb25jqz3xzvqzklz9s1af4k6x4"))))
6851 (properties `((upstream-name . "Category")))
6852 (build-system r-build-system)
6853 (propagated-inputs
6854 `(("r-annotate" ,r-annotate)
6855 ("r-annotationdbi" ,r-annotationdbi)
6856 ("r-biobase" ,r-biobase)
6857 ("r-biocgenerics" ,r-biocgenerics)
6858 ("r-genefilter" ,r-genefilter)
6859 ("r-graph" ,r-graph)
6860 ("r-gseabase" ,r-gseabase)
6861 ("r-matrix" ,r-matrix)
6862 ("r-rbgl" ,r-rbgl)
6863 ("r-dbi" ,r-dbi)))
6864 (home-page "https://bioconductor.org/packages/Category")
6865 (synopsis "Category analysis")
6866 (description
6867 "This package provides a collection of tools for performing category
6868 analysis.")
6869 (license license:artistic2.0)))
6870
6871 (define-public r-gostats
6872 (package
6873 (name "r-gostats")
6874 (version "2.50.0")
6875 (source
6876 (origin
6877 (method url-fetch)
6878 (uri (bioconductor-uri "GOstats" version))
6879 (sha256
6880 (base32
6881 "1a95i6awm2a8xv42fg2z3n29fg9z29i45kd80hxf6mvqqgzj80xp"))))
6882 (properties `((upstream-name . "GOstats")))
6883 (build-system r-build-system)
6884 (propagated-inputs
6885 `(("r-annotate" ,r-annotate)
6886 ("r-annotationdbi" ,r-annotationdbi)
6887 ("r-annotationforge" ,r-annotationforge)
6888 ("r-biobase" ,r-biobase)
6889 ("r-category" ,r-category)
6890 ("r-go-db" ,r-go-db)
6891 ("r-graph" ,r-graph)
6892 ("r-rgraphviz" ,r-rgraphviz)
6893 ("r-rbgl" ,r-rbgl)))
6894 (home-page "https://bioconductor.org/packages/GOstats")
6895 (synopsis "Tools for manipulating GO and microarrays")
6896 (description
6897 "This package provides a set of tools for interacting with GO and
6898 microarray data. A variety of basic manipulation tools for graphs, hypothesis
6899 testing and other simple calculations.")
6900 (license license:artistic2.0)))
6901
6902 (define-public r-shortread
6903 (package
6904 (name "r-shortread")
6905 (version "1.42.0")
6906 (source
6907 (origin
6908 (method url-fetch)
6909 (uri (bioconductor-uri "ShortRead" version))
6910 (sha256
6911 (base32
6912 "1irqzdgsavjqsq0vva4966qh8qgn7xn9382dmhahm1hxb94qmi59"))))
6913 (properties `((upstream-name . "ShortRead")))
6914 (build-system r-build-system)
6915 (inputs
6916 `(("zlib" ,zlib)))
6917 (propagated-inputs
6918 `(("r-biobase" ,r-biobase)
6919 ("r-biocgenerics" ,r-biocgenerics)
6920 ("r-biocparallel" ,r-biocparallel)
6921 ("r-biostrings" ,r-biostrings)
6922 ("r-genomeinfodb" ,r-genomeinfodb)
6923 ("r-genomicalignments" ,r-genomicalignments)
6924 ("r-genomicranges" ,r-genomicranges)
6925 ("r-hwriter" ,r-hwriter)
6926 ("r-iranges" ,r-iranges)
6927 ("r-lattice" ,r-lattice)
6928 ("r-latticeextra" ,r-latticeextra)
6929 ("r-rsamtools" ,r-rsamtools)
6930 ("r-s4vectors" ,r-s4vectors)
6931 ("r-xvector" ,r-xvector)
6932 ("r-zlibbioc" ,r-zlibbioc)))
6933 (home-page "https://bioconductor.org/packages/ShortRead")
6934 (synopsis "FASTQ input and manipulation tools")
6935 (description
6936 "This package implements sampling, iteration, and input of FASTQ files.
6937 It includes functions for filtering and trimming reads, and for generating a
6938 quality assessment report. Data are represented as
6939 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
6940 purposes. The package also contains legacy support for early single-end,
6941 ungapped alignment formats.")
6942 (license license:artistic2.0)))
6943
6944 (define-public r-systempiper
6945 (package
6946 (name "r-systempiper")
6947 (version "1.16.1")
6948 (source
6949 (origin
6950 (method url-fetch)
6951 (uri (bioconductor-uri "systemPipeR" version))
6952 (sha256
6953 (base32
6954 "0qzydz87rld2nhwzbfgrw5jfgh8maa9y54mjx9c4285m11qj2shq"))))
6955 (properties `((upstream-name . "systemPipeR")))
6956 (build-system r-build-system)
6957 (propagated-inputs
6958 `(("r-annotate" ,r-annotate)
6959 ("r-batchjobs" ,r-batchjobs)
6960 ("r-biocgenerics" ,r-biocgenerics)
6961 ("r-biostrings" ,r-biostrings)
6962 ("r-deseq2" ,r-deseq2)
6963 ("r-edger" ,r-edger)
6964 ("r-genomicfeatures" ,r-genomicfeatures)
6965 ("r-genomicranges" ,r-genomicranges)
6966 ("r-ggplot2" ,r-ggplot2)
6967 ("r-go-db" ,r-go-db)
6968 ("r-gostats" ,r-gostats)
6969 ("r-limma" ,r-limma)
6970 ("r-pheatmap" ,r-pheatmap)
6971 ("r-rjson" ,r-rjson)
6972 ("r-rsamtools" ,r-rsamtools)
6973 ("r-shortread" ,r-shortread)
6974 ("r-summarizedexperiment" ,r-summarizedexperiment)
6975 ("r-variantannotation" ,r-variantannotation)))
6976 (home-page "https://github.com/tgirke/systemPipeR")
6977 (synopsis "Next generation sequencing workflow and reporting environment")
6978 (description
6979 "This R package provides tools for building and running automated
6980 end-to-end analysis workflows for a wide range of @dfn{next generation
6981 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
6982 Important features include a uniform workflow interface across different NGS
6983 applications, automated report generation, and support for running both R and
6984 command-line software, such as NGS aligners or peak/variant callers, on local
6985 computers or compute clusters. Efficient handling of complex sample sets and
6986 experimental designs is facilitated by a consistently implemented sample
6987 annotation infrastructure.")
6988 (license license:artistic2.0)))
6989
6990 (define-public r-grohmm
6991 (package
6992 (name "r-grohmm")
6993 (version "1.16.0")
6994 (source
6995 (origin
6996 (method url-fetch)
6997 (uri (bioconductor-uri "groHMM" version))
6998 (sha256
6999 (base32
7000 "1ph92fv44b90v7mk4b1mjvv0dlrhl8ba01klxbnd0vs4qn9zxplh"))))
7001 (properties `((upstream-name . "groHMM")))
7002 (build-system r-build-system)
7003 (propagated-inputs
7004 `(("r-genomeinfodb" ,r-genomeinfodb)
7005 ("r-genomicalignments" ,r-genomicalignments)
7006 ("r-genomicranges" ,r-genomicranges)
7007 ("r-iranges" ,r-iranges)
7008 ("r-mass" ,r-mass)
7009 ("r-rtracklayer" ,r-rtracklayer)
7010 ("r-s4vectors" ,r-s4vectors)))
7011 (home-page "https://github.com/Kraus-Lab/groHMM")
7012 (synopsis "GRO-seq analysis pipeline")
7013 (description
7014 "This package provides a pipeline for the analysis of GRO-seq data.")
7015 (license license:gpl3+)))
7016
7017 (define-public vsearch
7018 (package
7019 (name "vsearch")
7020 (version "2.9.1")
7021 (source
7022 (origin
7023 (method git-fetch)
7024 (uri (git-reference
7025 (url "https://github.com/torognes/vsearch.git")
7026 (commit (string-append "v" version))))
7027 (file-name (git-file-name name version))
7028 (sha256
7029 (base32
7030 "0vhrpjfdf75ba04b24xknp41790cvcgwl0vgpy7qbzj5xh2521ss"))
7031 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
7032 (snippet
7033 '(begin
7034 ;; Remove bundled cityhash sources. The vsearch source is adjusted
7035 ;; for this in the patch.
7036 (delete-file "src/city.h")
7037 (delete-file "src/citycrc.h")
7038 (delete-file "src/city.cc")
7039 #t))))
7040 (build-system gnu-build-system)
7041 (inputs
7042 `(("zlib" ,zlib)
7043 ("bzip2" ,bzip2)
7044 ("cityhash" ,cityhash)))
7045 (native-inputs
7046 `(("autoconf" ,autoconf)
7047 ("automake" ,automake)))
7048 (synopsis "Sequence search tools for metagenomics")
7049 (description
7050 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
7051 dereplication, pairwise alignment, shuffling, subsampling, sorting and
7052 masking. The tool takes advantage of parallelism in the form of SIMD
7053 vectorization as well as multiple threads to perform accurate alignments at
7054 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
7055 Needleman-Wunsch).")
7056 (home-page "https://github.com/torognes/vsearch")
7057 ;; vsearch uses non-portable SSE intrinsics so building fails on other
7058 ;; platforms.
7059 (supported-systems '("x86_64-linux"))
7060 ;; Dual licensed; also includes public domain source.
7061 (license (list license:gpl3 license:bsd-2))))
7062
7063 (define-public pardre
7064 (package
7065 (name "pardre")
7066 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
7067 (version "1.1.5-1")
7068 (source
7069 (origin
7070 (method url-fetch)
7071 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
7072 "1.1.5" ".tar.gz"))
7073 (sha256
7074 (base32
7075 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
7076 (build-system gnu-build-system)
7077 (arguments
7078 `(#:tests? #f ; no tests included
7079 #:phases
7080 (modify-phases %standard-phases
7081 (delete 'configure)
7082 (replace 'install
7083 (lambda* (#:key outputs #:allow-other-keys)
7084 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
7085 (install-file "ParDRe" bin)
7086 #t))))))
7087 (inputs
7088 `(("openmpi" ,openmpi)
7089 ("zlib" ,zlib)))
7090 (synopsis "Parallel tool to remove duplicate DNA reads")
7091 (description
7092 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
7093 Duplicate reads can be seen as identical or nearly identical sequences with
7094 some mismatches. This tool lets users avoid the analysis of unnecessary
7095 reads, reducing the time of subsequent procedures with the
7096 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
7097 in order to exploit the parallel capabilities of multicore clusters. It is
7098 faster than multithreaded counterparts (end of 2015) for the same number of
7099 cores and, thanks to the message-passing technology, it can be executed on
7100 clusters.")
7101 (home-page "https://sourceforge.net/projects/pardre/")
7102 (license license:gpl3+)))
7103
7104 (define-public ruby-bio-kseq
7105 (package
7106 (name "ruby-bio-kseq")
7107 (version "0.0.2")
7108 (source
7109 (origin
7110 (method url-fetch)
7111 (uri (rubygems-uri "bio-kseq" version))
7112 (sha256
7113 (base32
7114 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
7115 (build-system ruby-build-system)
7116 (arguments
7117 `(#:test-target "spec"))
7118 (native-inputs
7119 `(("bundler" ,bundler)
7120 ("ruby-rspec" ,ruby-rspec)
7121 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7122 (inputs
7123 `(("zlib" ,zlib)))
7124 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
7125 (description
7126 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
7127 FASTQ parsing code. It provides a fast iterator over sequences and their
7128 quality scores.")
7129 (home-page "https://github.com/gusevfe/bio-kseq")
7130 (license license:expat)))
7131
7132 (define-public bio-locus
7133 (package
7134 (name "bio-locus")
7135 (version "0.0.7")
7136 (source
7137 (origin
7138 (method url-fetch)
7139 (uri (rubygems-uri "bio-locus" version))
7140 (sha256
7141 (base32
7142 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
7143 (build-system ruby-build-system)
7144 (native-inputs
7145 `(("ruby-rspec" ,ruby-rspec)))
7146 (synopsis "Tool for fast querying of genome locations")
7147 (description
7148 "Bio-locus is a tabix-like tool for fast querying of genome
7149 locations. Many file formats in bioinformatics contain records that
7150 start with a chromosome name and a position for a SNP, or a start-end
7151 position for indels. Bio-locus allows users to store this chr+pos or
7152 chr+pos+alt information in a database.")
7153 (home-page "https://github.com/pjotrp/bio-locus")
7154 (license license:expat)))
7155
7156 (define-public bio-blastxmlparser
7157 (package
7158 (name "bio-blastxmlparser")
7159 (version "2.0.4")
7160 (source (origin
7161 (method url-fetch)
7162 (uri (rubygems-uri "bio-blastxmlparser" version))
7163 (sha256
7164 (base32
7165 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
7166 (build-system ruby-build-system)
7167 (propagated-inputs
7168 `(("ruby-bio-logger" ,ruby-bio-logger)
7169 ("ruby-nokogiri" ,ruby-nokogiri)))
7170 (inputs
7171 `(("ruby-rspec" ,ruby-rspec)))
7172 (synopsis "Fast big data BLAST XML parser and library")
7173 (description
7174 "Very fast parallel big-data BLAST XML file parser which can be used as
7175 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
7176 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
7177 (home-page "https://github.com/pjotrp/blastxmlparser")
7178 (license license:expat)))
7179
7180 (define-public bioruby
7181 (package
7182 (name "bioruby")
7183 (version "1.5.2")
7184 (source
7185 (origin
7186 (method url-fetch)
7187 (uri (rubygems-uri "bio" version))
7188 (sha256
7189 (base32
7190 "1d56amdsjv1mag7m6gv2w0xij8hqx1v5xbdjsix8sp3yp36m7938"))))
7191 (build-system ruby-build-system)
7192 (propagated-inputs
7193 `(("ruby-libxml" ,ruby-libxml)))
7194 (native-inputs
7195 `(("which" ,which))) ; required for test phase
7196 (arguments
7197 `(#:phases
7198 (modify-phases %standard-phases
7199 (add-before 'build 'patch-test-command
7200 (lambda _
7201 (substitute* '("test/functional/bio/test_command.rb")
7202 (("/bin/sh") (which "sh")))
7203 (substitute* '("test/functional/bio/test_command.rb")
7204 (("/bin/ls") (which "ls")))
7205 (substitute* '("test/functional/bio/test_command.rb")
7206 (("which") (which "which")))
7207 (substitute* '("test/functional/bio/test_command.rb",
7208 "test/data/command/echoarg2.sh")
7209 (("/bin/echo") (which "echo")))
7210 #t)))))
7211 (synopsis "Ruby library, shell and utilities for bioinformatics")
7212 (description "BioRuby comes with a comprehensive set of Ruby development
7213 tools and libraries for bioinformatics and molecular biology. BioRuby has
7214 components for sequence analysis, pathway analysis, protein modelling and
7215 phylogenetic analysis; it supports many widely used data formats and provides
7216 easy access to databases, external programs and public web services, including
7217 BLAST, KEGG, GenBank, MEDLINE and GO.")
7218 (home-page "http://bioruby.org/")
7219 ;; Code is released under Ruby license, except for setup
7220 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
7221 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
7222
7223 (define-public r-biocinstaller
7224 (package
7225 (name "r-biocinstaller")
7226 (version "1.32.1")
7227 (source (origin
7228 (method url-fetch)
7229 (uri (bioconductor-uri "BiocInstaller" version))
7230 (sha256
7231 (base32
7232 "1s1f9qhyf3mc73ir25x2zlgi9hf45a37lg4z8fbva4i21hqisgsl"))))
7233 (properties
7234 `((upstream-name . "BiocInstaller")))
7235 (build-system r-build-system)
7236 (home-page "https://bioconductor.org/packages/BiocInstaller")
7237 (synopsis "Install Bioconductor packages")
7238 (description "This package is used to install and update R packages from
7239 Bioconductor, CRAN, and Github.")
7240 (license license:artistic2.0)))
7241
7242 (define-public r-biocviews
7243 (package
7244 (name "r-biocviews")
7245 (version "1.50.10")
7246 (source (origin
7247 (method url-fetch)
7248 (uri (bioconductor-uri "biocViews" version))
7249 (sha256
7250 (base32
7251 "06ms82pyc5rxbd9crfvqjxcwpafv0c627i83v80d12925mrc51h8"))))
7252 (properties
7253 `((upstream-name . "biocViews")))
7254 (build-system r-build-system)
7255 (propagated-inputs
7256 `(("r-biobase" ,r-biobase)
7257 ("r-graph" ,r-graph)
7258 ("r-rbgl" ,r-rbgl)
7259 ("r-rcurl" ,r-rcurl)
7260 ("r-xml" ,r-xml)
7261 ("r-runit" ,r-runit)))
7262 (home-page "https://bioconductor.org/packages/biocViews")
7263 (synopsis "Bioconductor package categorization helper")
7264 (description "The purpose of biocViews is to create HTML pages that
7265 categorize packages in a Bioconductor package repository according to keywords,
7266 also known as views, in a controlled vocabulary.")
7267 (license license:artistic2.0)))
7268
7269 (define-public r-biocstyle
7270 (package
7271 (name "r-biocstyle")
7272 (version "2.10.0")
7273 (source (origin
7274 (method url-fetch)
7275 (uri (bioconductor-uri "BiocStyle" version))
7276 (sha256
7277 (base32
7278 "01lm8xljilj666fcl3wnw82dxkcxnlr294lddr553rm8xr5nwg31"))))
7279 (properties
7280 `((upstream-name . "BiocStyle")))
7281 (build-system r-build-system)
7282 (propagated-inputs
7283 `(("r-biocmanager" ,r-biocmanager)
7284 ("r-bookdown" ,r-bookdown)
7285 ("r-knitr" ,r-knitr)
7286 ("r-rmarkdown" ,r-rmarkdown)
7287 ("r-yaml" ,r-yaml)))
7288 (home-page "https://bioconductor.org/packages/BiocStyle")
7289 (synopsis "Bioconductor formatting styles")
7290 (description "This package provides standard formatting styles for
7291 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
7292 functionality.")
7293 (license license:artistic2.0)))
7294
7295 (define-public r-bioccheck
7296 (package
7297 (name "r-bioccheck")
7298 (version "1.18.0")
7299 (source (origin
7300 (method url-fetch)
7301 (uri (bioconductor-uri "BiocCheck" version))
7302 (sha256
7303 (base32
7304 "0zamvs5jar38293ff27imvwy0ra25y64ls9z8w3q1y4jcp8p8pg7"))))
7305 (properties
7306 `((upstream-name . "BiocCheck")))
7307 (build-system r-build-system)
7308 (arguments
7309 '(#:phases
7310 (modify-phases %standard-phases
7311 ;; This package can be used by calling BiocCheck(<package>) from
7312 ;; within R, or by running R CMD BiocCheck <package>. This phase
7313 ;; makes sure the latter works. For this to work, the BiocCheck
7314 ;; script must be somewhere on the PATH (not the R bin directory).
7315 (add-after 'install 'install-bioccheck-subcommand
7316 (lambda* (#:key outputs #:allow-other-keys)
7317 (let* ((out (assoc-ref outputs "out"))
7318 (dest-dir (string-append out "/bin"))
7319 (script-dir
7320 (string-append out "/site-library/BiocCheck/script/")))
7321 (mkdir-p dest-dir)
7322 (symlink (string-append script-dir "/checkBadDeps.R")
7323 (string-append dest-dir "/checkBadDeps.R"))
7324 (symlink (string-append script-dir "/BiocCheck")
7325 (string-append dest-dir "/BiocCheck")))
7326 #t)))))
7327 (propagated-inputs
7328 `(("r-codetools" ,r-codetools)
7329 ("r-graph" ,r-graph)
7330 ("r-httr" ,r-httr)
7331 ("r-knitr" ,r-knitr)
7332 ("r-optparse" ,r-optparse)
7333 ("r-biocmanager" ,r-biocmanager)
7334 ("r-biocviews" ,r-biocviews)
7335 ("r-stringdist" ,r-stringdist)))
7336 (home-page "https://bioconductor.org/packages/BiocCheck")
7337 (synopsis "Executes Bioconductor-specific package checks")
7338 (description "This package contains tools to perform additional quality
7339 checks on R packages that are to be submitted to the Bioconductor repository.")
7340 (license license:artistic2.0)))
7341
7342 (define-public r-s4vectors
7343 (package
7344 (name "r-s4vectors")
7345 (version "0.20.1")
7346 (source (origin
7347 (method url-fetch)
7348 (uri (bioconductor-uri "S4Vectors" version))
7349 (sha256
7350 (base32
7351 "18whrw67nxn82xshckl2pjy7d14sa3c27h3n9naqyqwz88lr6dzg"))))
7352 (properties
7353 `((upstream-name . "S4Vectors")))
7354 (build-system r-build-system)
7355 (propagated-inputs
7356 `(("r-biocgenerics" ,r-biocgenerics)))
7357 (home-page "https://bioconductor.org/packages/S4Vectors")
7358 (synopsis "S4 implementation of vectors and lists")
7359 (description
7360 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7361 classes and a set of generic functions that extend the semantic of ordinary
7362 vectors and lists in R. Package developers can easily implement vector-like
7363 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7364 In addition, a few low-level concrete subclasses of general interest (e.g.
7365 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7366 S4Vectors package itself.")
7367 (license license:artistic2.0)))
7368
7369 (define-public r-iranges
7370 (package
7371 (name "r-iranges")
7372 (version "2.16.0")
7373 (source (origin
7374 (method url-fetch)
7375 (uri (bioconductor-uri "IRanges" version))
7376 (sha256
7377 (base32
7378 "0ljppsk611xi72gc8mbdx1311b63b1ijd401jz5xmxk5frla1nc1"))))
7379 (properties
7380 `((upstream-name . "IRanges")))
7381 (build-system r-build-system)
7382 (propagated-inputs
7383 `(("r-biocgenerics" ,r-biocgenerics)
7384 ("r-s4vectors" ,r-s4vectors)))
7385 (home-page "https://bioconductor.org/packages/IRanges")
7386 (synopsis "Infrastructure for manipulating intervals on sequences")
7387 (description
7388 "This package provides efficient low-level and highly reusable S4 classes
7389 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7390 generally, data that can be organized sequentially (formally defined as
7391 @code{Vector} objects), as well as views on these @code{Vector} objects.
7392 Efficient list-like classes are also provided for storing big collections of
7393 instances of the basic classes. All classes in the package use consistent
7394 naming and share the same rich and consistent \"Vector API\" as much as
7395 possible.")
7396 (license license:artistic2.0)))
7397
7398 (define-public r-genomeinfodbdata
7399 (package
7400 (name "r-genomeinfodbdata")
7401 (version "1.2.0")
7402 (source (origin
7403 (method url-fetch)
7404 ;; We cannot use bioconductor-uri here because this tarball is
7405 ;; located under "data/annotation/" instead of "bioc/".
7406 (uri (string-append "https://bioconductor.org/packages/release/"
7407 "data/annotation/src/contrib/GenomeInfoDbData_"
7408 version ".tar.gz"))
7409 (sha256
7410 (base32
7411 "0di6nlqpsyqf693k2na65ayqldih563x3zfrczpqc5q2hl5kg35c"))))
7412 (properties
7413 `((upstream-name . "GenomeInfoDbData")))
7414 (build-system r-build-system)
7415 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
7416 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7417 (description "This package contains data for mapping between NCBI taxonomy
7418 ID and species. It is used by functions in the GenomeInfoDb package.")
7419 (license license:artistic2.0)))
7420
7421 (define-public r-genomeinfodb
7422 (package
7423 (name "r-genomeinfodb")
7424 (version "1.18.2")
7425 (source (origin
7426 (method url-fetch)
7427 (uri (bioconductor-uri "GenomeInfoDb" version))
7428 (sha256
7429 (base32
7430 "07bm35jcczpyxap0b3gky4b28z38z423sngzsm19d9krjxr76b5p"))))
7431 (properties
7432 `((upstream-name . "GenomeInfoDb")))
7433 (build-system r-build-system)
7434 (propagated-inputs
7435 `(("r-biocgenerics" ,r-biocgenerics)
7436 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
7437 ("r-iranges" ,r-iranges)
7438 ("r-rcurl" ,r-rcurl)
7439 ("r-s4vectors" ,r-s4vectors)))
7440 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
7441 (synopsis "Utilities for manipulating chromosome identifiers")
7442 (description
7443 "This package contains data and functions that define and allow
7444 translation between different chromosome sequence naming conventions (e.g.,
7445 \"chr1\" versus \"1\"), including a function that attempts to place sequence
7446 names in their natural, rather than lexicographic, order.")
7447 (license license:artistic2.0)))
7448
7449 (define-public r-edger
7450 (package
7451 (name "r-edger")
7452 (version "3.24.3")
7453 (source (origin
7454 (method url-fetch)
7455 (uri (bioconductor-uri "edgeR" version))
7456 (sha256
7457 (base32
7458 "15yimsbsxmxhlsfmgw5j7fd8qn08zz4xqxrir1c6n2dc103y22xg"))))
7459 (properties `((upstream-name . "edgeR")))
7460 (build-system r-build-system)
7461 (propagated-inputs
7462 `(("r-limma" ,r-limma)
7463 ("r-locfit" ,r-locfit)
7464 ("r-rcpp" ,r-rcpp)
7465 ("r-statmod" ,r-statmod))) ;for estimateDisp
7466 (home-page "http://bioinf.wehi.edu.au/edgeR")
7467 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7468 (description "This package can do differential expression analysis of
7469 RNA-seq expression profiles with biological replication. It implements a range
7470 of statistical methodology based on the negative binomial distributions,
7471 including empirical Bayes estimation, exact tests, generalized linear models
7472 and quasi-likelihood tests. It be applied to differential signal analysis of
7473 other types of genomic data that produce counts, including ChIP-seq, SAGE and
7474 CAGE.")
7475 (license license:gpl2+)))
7476
7477 (define-public r-variantannotation
7478 (package
7479 (name "r-variantannotation")
7480 (version "1.28.13")
7481 (source (origin
7482 (method url-fetch)
7483 (uri (bioconductor-uri "VariantAnnotation" version))
7484 (sha256
7485 (base32
7486 "1a7b0bg579ynpbfh5dk87fdgl62r9cwk4zmrl61m6zil7881p3gh"))))
7487 (properties
7488 `((upstream-name . "VariantAnnotation")))
7489 (inputs
7490 `(("zlib" ,zlib)))
7491 (propagated-inputs
7492 `(("r-annotationdbi" ,r-annotationdbi)
7493 ("r-biobase" ,r-biobase)
7494 ("r-biocgenerics" ,r-biocgenerics)
7495 ("r-biostrings" ,r-biostrings)
7496 ("r-bsgenome" ,r-bsgenome)
7497 ("r-dbi" ,r-dbi)
7498 ("r-genomeinfodb" ,r-genomeinfodb)
7499 ("r-genomicfeatures" ,r-genomicfeatures)
7500 ("r-genomicranges" ,r-genomicranges)
7501 ("r-iranges" ,r-iranges)
7502 ("r-summarizedexperiment" ,r-summarizedexperiment)
7503 ("r-rsamtools" ,r-rsamtools)
7504 ("r-rtracklayer" ,r-rtracklayer)
7505 ("r-s4vectors" ,r-s4vectors)
7506 ("r-xvector" ,r-xvector)
7507 ("r-zlibbioc" ,r-zlibbioc)))
7508 (build-system r-build-system)
7509 (home-page "https://bioconductor.org/packages/VariantAnnotation")
7510 (synopsis "Package for annotation of genetic variants")
7511 (description "This R package can annotate variants, compute amino acid
7512 coding changes and predict coding outcomes.")
7513 (license license:artistic2.0)))
7514
7515 (define-public r-limma
7516 (package
7517 (name "r-limma")
7518 (version "3.38.3")
7519 (source (origin
7520 (method url-fetch)
7521 (uri (bioconductor-uri "limma" version))
7522 (sha256
7523 (base32
7524 "08va8jggmv61wym955mnb1n31mgikrmjys7dl1kp5hp3yia8jg7l"))))
7525 (build-system r-build-system)
7526 (home-page "http://bioinf.wehi.edu.au/limma")
7527 (synopsis "Package for linear models for microarray and RNA-seq data")
7528 (description "This package can be used for the analysis of gene expression
7529 studies, especially the use of linear models for analysing designed experiments
7530 and the assessment of differential expression. The analysis methods apply to
7531 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
7532 (license license:gpl2+)))
7533
7534 (define-public r-xvector
7535 (package
7536 (name "r-xvector")
7537 (version "0.22.0")
7538 (source (origin
7539 (method url-fetch)
7540 (uri (bioconductor-uri "XVector" version))
7541 (sha256
7542 (base32
7543 "01fph1ydd6g0rl5mcw54spx22glq2kqv7wyw8bqw0plmabzcwwdm"))))
7544 (properties
7545 `((upstream-name . "XVector")))
7546 (build-system r-build-system)
7547 (arguments
7548 `(#:phases
7549 (modify-phases %standard-phases
7550 (add-after 'unpack 'use-system-zlib
7551 (lambda _
7552 (substitute* "DESCRIPTION"
7553 (("zlibbioc, ") ""))
7554 (substitute* "NAMESPACE"
7555 (("import\\(zlibbioc\\)") ""))
7556 #t)))))
7557 (inputs
7558 `(("zlib" ,zlib)))
7559 (propagated-inputs
7560 `(("r-biocgenerics" ,r-biocgenerics)
7561 ("r-iranges" ,r-iranges)
7562 ("r-s4vectors" ,r-s4vectors)))
7563 (home-page "https://bioconductor.org/packages/XVector")
7564 (synopsis "Representation and manpulation of external sequences")
7565 (description
7566 "This package provides memory efficient S4 classes for storing sequences
7567 \"externally\" (behind an R external pointer, or on disk).")
7568 (license license:artistic2.0)))
7569
7570 (define-public r-genomicranges
7571 (package
7572 (name "r-genomicranges")
7573 (version "1.34.0")
7574 (source (origin
7575 (method url-fetch)
7576 (uri (bioconductor-uri "GenomicRanges" version))
7577 (sha256
7578 (base32
7579 "0bgh14d15dpf2iy36qinw45r6n45rqkf0ghazrdl3jfva6vbrb29"))))
7580 (properties
7581 `((upstream-name . "GenomicRanges")))
7582 (build-system r-build-system)
7583 (propagated-inputs
7584 `(("r-biocgenerics" ,r-biocgenerics)
7585 ("r-genomeinfodb" ,r-genomeinfodb)
7586 ("r-iranges" ,r-iranges)
7587 ("r-s4vectors" ,r-s4vectors)
7588 ("r-xvector" ,r-xvector)))
7589 (home-page "https://bioconductor.org/packages/GenomicRanges")
7590 (synopsis "Representation and manipulation of genomic intervals")
7591 (description
7592 "This package provides tools to efficiently represent and manipulate
7593 genomic annotations and alignments is playing a central role when it comes to
7594 analyzing high-throughput sequencing data (a.k.a. NGS data). The
7595 GenomicRanges package defines general purpose containers for storing and
7596 manipulating genomic intervals and variables defined along a genome.")
7597 (license license:artistic2.0)))
7598
7599 (define-public r-biobase
7600 (package
7601 (name "r-biobase")
7602 (version "2.42.0")
7603 (source (origin
7604 (method url-fetch)
7605 (uri (bioconductor-uri "Biobase" version))
7606 (sha256
7607 (base32
7608 "10nr6nrkj5vlq8hsgbhbhv669z0dbpz4m3vz9k32rx1czbrrqwin"))))
7609 (properties
7610 `((upstream-name . "Biobase")))
7611 (build-system r-build-system)
7612 (propagated-inputs
7613 `(("r-biocgenerics" ,r-biocgenerics)))
7614 (home-page "https://bioconductor.org/packages/Biobase")
7615 (synopsis "Base functions for Bioconductor")
7616 (description
7617 "This package provides functions that are needed by many other packages
7618 on Bioconductor or which replace R functions.")
7619 (license license:artistic2.0)))
7620
7621 (define-public r-annotationdbi
7622 (package
7623 (name "r-annotationdbi")
7624 (version "1.44.0")
7625 (source (origin
7626 (method url-fetch)
7627 (uri (bioconductor-uri "AnnotationDbi" version))
7628 (sha256
7629 (base32
7630 "1954vimkx5yb9irppq8vssq0f3yjkg36w38b9r0rqmijx1ps7x5d"))))
7631 (properties
7632 `((upstream-name . "AnnotationDbi")))
7633 (build-system r-build-system)
7634 (propagated-inputs
7635 `(("r-biobase" ,r-biobase)
7636 ("r-biocgenerics" ,r-biocgenerics)
7637 ("r-dbi" ,r-dbi)
7638 ("r-iranges" ,r-iranges)
7639 ("r-rsqlite" ,r-rsqlite)
7640 ("r-s4vectors" ,r-s4vectors)))
7641 (home-page "https://bioconductor.org/packages/AnnotationDbi")
7642 (synopsis "Annotation database interface")
7643 (description
7644 "This package provides user interface and database connection code for
7645 annotation data packages using SQLite data storage.")
7646 (license license:artistic2.0)))
7647
7648 (define-public r-biomart
7649 (package
7650 (name "r-biomart")
7651 (version "2.38.0")
7652 (source (origin
7653 (method url-fetch)
7654 (uri (bioconductor-uri "biomaRt" version))
7655 (sha256
7656 (base32
7657 "1lshkknp7dmr3p6dd2zbv86cc71h53ggh9ji83jcjym8sgbbspl2"))))
7658 (properties
7659 `((upstream-name . "biomaRt")))
7660 (build-system r-build-system)
7661 (propagated-inputs
7662 `(("r-annotationdbi" ,r-annotationdbi)
7663 ("r-httr" ,r-httr)
7664 ("r-progress" ,r-progress)
7665 ("r-rcurl" ,r-rcurl)
7666 ("r-stringr" ,r-stringr)
7667 ("r-xml" ,r-xml)))
7668 (home-page "https://bioconductor.org/packages/biomaRt")
7669 (synopsis "Interface to BioMart databases")
7670 (description
7671 "biomaRt provides an interface to a growing collection of databases
7672 implementing the @url{BioMart software suite, http://www.biomart.org}. The
7673 package enables retrieval of large amounts of data in a uniform way without
7674 the need to know the underlying database schemas or write complex SQL queries.
7675 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
7676 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
7677 users direct access to a diverse set of data and enable a wide range of
7678 powerful online queries from gene annotation to database mining.")
7679 (license license:artistic2.0)))
7680
7681 (define-public r-biocparallel
7682 (package
7683 (name "r-biocparallel")
7684 (version "1.16.6")
7685 (source (origin
7686 (method url-fetch)
7687 (uri (bioconductor-uri "BiocParallel" version))
7688 (sha256
7689 (base32
7690 "1iv2xzm6lz371z0llhcxl8hmc5jfw0hjwnf1qc8d7jk9djgcaks2"))))
7691 (properties
7692 `((upstream-name . "BiocParallel")))
7693 (build-system r-build-system)
7694 (propagated-inputs
7695 `(("r-futile-logger" ,r-futile-logger)
7696 ("r-snow" ,r-snow)
7697 ("r-bh" ,r-bh)))
7698 (home-page "https://bioconductor.org/packages/BiocParallel")
7699 (synopsis "Bioconductor facilities for parallel evaluation")
7700 (description
7701 "This package provides modified versions and novel implementation of
7702 functions for parallel evaluation, tailored to use with Bioconductor
7703 objects.")
7704 (license (list license:gpl2+ license:gpl3+))))
7705
7706 (define-public r-biostrings
7707 (package
7708 (name "r-biostrings")
7709 (version "2.50.2")
7710 (source (origin
7711 (method url-fetch)
7712 (uri (bioconductor-uri "Biostrings" version))
7713 (sha256
7714 (base32
7715 "16cqqc8i6gb0jcz0lizfqqxsq7g0yb0ll2s9qzmb45brp07dg8f7"))))
7716 (properties
7717 `((upstream-name . "Biostrings")))
7718 (build-system r-build-system)
7719 (propagated-inputs
7720 `(("r-biocgenerics" ,r-biocgenerics)
7721 ("r-iranges" ,r-iranges)
7722 ("r-s4vectors" ,r-s4vectors)
7723 ("r-xvector" ,r-xvector)))
7724 (home-page "https://bioconductor.org/packages/Biostrings")
7725 (synopsis "String objects and algorithms for biological sequences")
7726 (description
7727 "This package provides memory efficient string containers, string
7728 matching algorithms, and other utilities, for fast manipulation of large
7729 biological sequences or sets of sequences.")
7730 (license license:artistic2.0)))
7731
7732 (define-public r-rsamtools
7733 (package
7734 (name "r-rsamtools")
7735 (version "1.34.1")
7736 (source (origin
7737 (method url-fetch)
7738 (uri (bioconductor-uri "Rsamtools" version))
7739 (sha256
7740 (base32
7741 "02paq7klabdkaf1b8pmmbpmyqsj3yncnfsz62rgka6r4dpsilwk9"))))
7742 (properties
7743 `((upstream-name . "Rsamtools")))
7744 (build-system r-build-system)
7745 (arguments
7746 `(#:phases
7747 (modify-phases %standard-phases
7748 (add-after 'unpack 'use-system-zlib
7749 (lambda _
7750 (substitute* "DESCRIPTION"
7751 (("zlibbioc, ") ""))
7752 (substitute* "NAMESPACE"
7753 (("import\\(zlibbioc\\)") ""))
7754 #t)))))
7755 (inputs
7756 `(("zlib" ,zlib)))
7757 (propagated-inputs
7758 `(("r-biocgenerics" ,r-biocgenerics)
7759 ("r-biocparallel" ,r-biocparallel)
7760 ("r-biostrings" ,r-biostrings)
7761 ("r-bitops" ,r-bitops)
7762 ("r-genomeinfodb" ,r-genomeinfodb)
7763 ("r-genomicranges" ,r-genomicranges)
7764 ("r-iranges" ,r-iranges)
7765 ("r-s4vectors" ,r-s4vectors)
7766 ("r-xvector" ,r-xvector)))
7767 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
7768 (synopsis "Interface to samtools, bcftools, and tabix")
7769 (description
7770 "This package provides an interface to the @code{samtools},
7771 @code{bcftools}, and @code{tabix} utilities for manipulating SAM (Sequence
7772 Alignment / Map), FASTA, binary variant call (BCF) and compressed indexed
7773 tab-delimited (tabix) files.")
7774 (license license:expat)))
7775
7776 (define-public r-delayedarray
7777 (package
7778 (name "r-delayedarray")
7779 (version "0.8.0")
7780 (source (origin
7781 (method url-fetch)
7782 (uri (bioconductor-uri "DelayedArray" version))
7783 (sha256
7784 (base32
7785 "0cl5anqkjwvqx19snjhz0zj8cp8ibckiifl28h821h50g62nvb2f"))))
7786 (properties
7787 `((upstream-name . "DelayedArray")))
7788 (build-system r-build-system)
7789 (propagated-inputs
7790 `(("r-biocgenerics" ,r-biocgenerics)
7791 ("r-biocparallel" ,r-biocparallel)
7792 ("r-s4vectors" ,r-s4vectors)
7793 ("r-iranges" ,r-iranges)
7794 ("r-matrixstats" ,r-matrixstats)))
7795 (home-page "https://bioconductor.org/packages/DelayedArray")
7796 (synopsis "Delayed operations on array-like objects")
7797 (description
7798 "Wrapping an array-like object (typically an on-disk object) in a
7799 @code{DelayedArray} object allows one to perform common array operations on it
7800 without loading the object in memory. In order to reduce memory usage and
7801 optimize performance, operations on the object are either delayed or executed
7802 using a block processing mechanism. Note that this also works on in-memory
7803 array-like objects like @code{DataFrame} objects (typically with Rle columns),
7804 @code{Matrix} objects, and ordinary arrays and data frames.")
7805 (license license:artistic2.0)))
7806
7807 (define-public r-summarizedexperiment
7808 (package
7809 (name "r-summarizedexperiment")
7810 (version "1.12.0")
7811 (source (origin
7812 (method url-fetch)
7813 (uri (bioconductor-uri "SummarizedExperiment" version))
7814 (sha256
7815 (base32
7816 "07805572xhpj5mfwq6kw1ha21wgalqvhh4ydvafyl1bnf3r20vps"))))
7817 (properties
7818 `((upstream-name . "SummarizedExperiment")))
7819 (build-system r-build-system)
7820 (propagated-inputs
7821 `(("r-biobase" ,r-biobase)
7822 ("r-biocgenerics" ,r-biocgenerics)
7823 ("r-delayedarray" ,r-delayedarray)
7824 ("r-genomeinfodb" ,r-genomeinfodb)
7825 ("r-genomicranges" ,r-genomicranges)
7826 ("r-iranges" ,r-iranges)
7827 ("r-matrix" ,r-matrix)
7828 ("r-s4vectors" ,r-s4vectors)))
7829 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
7830 (synopsis "Container for representing genomic ranges by sample")
7831 (description
7832 "The SummarizedExperiment container contains one or more assays, each
7833 represented by a matrix-like object of numeric or other mode. The rows
7834 typically represent genomic ranges of interest and the columns represent
7835 samples.")
7836 (license license:artistic2.0)))
7837
7838 (define-public r-genomicalignments
7839 (package
7840 (name "r-genomicalignments")
7841 (version "1.18.1")
7842 (source (origin
7843 (method url-fetch)
7844 (uri (bioconductor-uri "GenomicAlignments" version))
7845 (sha256
7846 (base32
7847 "1maslav2r34wjyzh2nlwa862in1ir7i5xk57nw2nlfh5gqy112jd"))))
7848 (properties
7849 `((upstream-name . "GenomicAlignments")))
7850 (build-system r-build-system)
7851 (propagated-inputs
7852 `(("r-biocgenerics" ,r-biocgenerics)
7853 ("r-biocparallel" ,r-biocparallel)
7854 ("r-biostrings" ,r-biostrings)
7855 ("r-genomeinfodb" ,r-genomeinfodb)
7856 ("r-genomicranges" ,r-genomicranges)
7857 ("r-iranges" ,r-iranges)
7858 ("r-rsamtools" ,r-rsamtools)
7859 ("r-s4vectors" ,r-s4vectors)
7860 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7861 (home-page "https://bioconductor.org/packages/GenomicAlignments")
7862 (synopsis "Representation and manipulation of short genomic alignments")
7863 (description
7864 "This package provides efficient containers for storing and manipulating
7865 short genomic alignments (typically obtained by aligning short reads to a
7866 reference genome). This includes read counting, computing the coverage,
7867 junction detection, and working with the nucleotide content of the
7868 alignments.")
7869 (license license:artistic2.0)))
7870
7871 (define-public r-rtracklayer
7872 (package
7873 (name "r-rtracklayer")
7874 (version "1.42.2")
7875 (source (origin
7876 (method url-fetch)
7877 (uri (bioconductor-uri "rtracklayer" version))
7878 (sha256
7879 (base32
7880 "1c76g6h9lx2nm7dvb2zp9dmrpk3vanx3zaz6q9clggpj7yj5lmjd"))))
7881 (build-system r-build-system)
7882 (arguments
7883 `(#:phases
7884 (modify-phases %standard-phases
7885 (add-after 'unpack 'use-system-zlib
7886 (lambda _
7887 (substitute* "DESCRIPTION"
7888 ((" zlibbioc,") ""))
7889 (substitute* "NAMESPACE"
7890 (("import\\(zlibbioc\\)") ""))
7891 #t)))))
7892 (native-inputs
7893 `(("pkg-config" ,pkg-config)))
7894 (inputs
7895 `(("zlib" ,zlib)))
7896 (propagated-inputs
7897 `(("r-biocgenerics" ,r-biocgenerics)
7898 ("r-biostrings" ,r-biostrings)
7899 ("r-genomeinfodb" ,r-genomeinfodb)
7900 ("r-genomicalignments" ,r-genomicalignments)
7901 ("r-genomicranges" ,r-genomicranges)
7902 ("r-iranges" ,r-iranges)
7903 ("r-rcurl" ,r-rcurl)
7904 ("r-rsamtools" ,r-rsamtools)
7905 ("r-s4vectors" ,r-s4vectors)
7906 ("r-xml" ,r-xml)
7907 ("r-xvector" ,r-xvector)))
7908 (home-page "https://bioconductor.org/packages/rtracklayer")
7909 (synopsis "R interface to genome browsers and their annotation tracks")
7910 (description
7911 "rtracklayer is an extensible framework for interacting with multiple
7912 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7913 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7914 built-in). The user may export/import tracks to/from the supported browsers,
7915 as well as query and modify the browser state, such as the current viewport.")
7916 (license license:artistic2.0)))
7917
7918 (define-public r-genomicfeatures
7919 (package
7920 (name "r-genomicfeatures")
7921 (version "1.34.8")
7922 (source (origin
7923 (method url-fetch)
7924 (uri (bioconductor-uri "GenomicFeatures" version))
7925 (sha256
7926 (base32
7927 "1sxp86hdsg32l2c85jgic65gy92d8kxsm01264hrx6yikdhicjax"))))
7928 (properties
7929 `((upstream-name . "GenomicFeatures")))
7930 (build-system r-build-system)
7931 (propagated-inputs
7932 `(("r-annotationdbi" ,r-annotationdbi)
7933 ("r-biobase" ,r-biobase)
7934 ("r-biocgenerics" ,r-biocgenerics)
7935 ("r-biomart" ,r-biomart)
7936 ("r-biostrings" ,r-biostrings)
7937 ("r-dbi" ,r-dbi)
7938 ("r-genomeinfodb" ,r-genomeinfodb)
7939 ("r-genomicranges" ,r-genomicranges)
7940 ("r-iranges" ,r-iranges)
7941 ("r-rcurl" ,r-rcurl)
7942 ("r-rsqlite" ,r-rsqlite)
7943 ("r-rtracklayer" ,r-rtracklayer)
7944 ("r-s4vectors" ,r-s4vectors)
7945 ("r-xvector" ,r-xvector)))
7946 (home-page "https://bioconductor.org/packages/GenomicFeatures")
7947 (synopsis "Tools for working with transcript centric annotations")
7948 (description
7949 "This package provides a set of tools and methods for making and
7950 manipulating transcript centric annotations. With these tools the user can
7951 easily download the genomic locations of the transcripts, exons and cds of a
7952 given organism, from either the UCSC Genome Browser or a BioMart
7953 database (more sources will be supported in the future). This information is
7954 then stored in a local database that keeps track of the relationship between
7955 transcripts, exons, cds and genes. Flexible methods are provided for
7956 extracting the desired features in a convenient format.")
7957 (license license:artistic2.0)))
7958
7959 (define-public r-go-db
7960 (package
7961 (name "r-go-db")
7962 (version "3.7.0")
7963 (source (origin
7964 (method url-fetch)
7965 (uri (string-append "https://www.bioconductor.org/packages/"
7966 "release/data/annotation/src/contrib/GO.db_"
7967 version ".tar.gz"))
7968 (sha256
7969 (base32
7970 "0i3wcf5h3n0dawzc1hy0kv74f06j80c47n4p3g3fmrcxlhi3jpa5"))))
7971 (properties
7972 `((upstream-name . "GO.db")))
7973 (build-system r-build-system)
7974 (propagated-inputs
7975 `(("r-annotationdbi" ,r-annotationdbi)))
7976 (home-page "https://bioconductor.org/packages/GO.db")
7977 (synopsis "Annotation maps describing the entire Gene Ontology")
7978 (description
7979 "The purpose of this GO.db annotation package is to provide detailed
7980 information about the latest version of the Gene Ontologies.")
7981 (license license:artistic2.0)))
7982
7983 (define-public r-topgo
7984 (package
7985 (name "r-topgo")
7986 (version "2.34.0")
7987 (source (origin
7988 (method url-fetch)
7989 (uri (bioconductor-uri "topGO" version))
7990 (sha256
7991 (base32
7992 "1j1jcd16j564kr6qz28140fzmnh9xasi84v1c1fi98sqv30zq9bh"))))
7993 (properties
7994 `((upstream-name . "topGO")))
7995 (build-system r-build-system)
7996 (propagated-inputs
7997 `(("r-annotationdbi" ,r-annotationdbi)
7998 ("r-dbi" ,r-dbi)
7999 ("r-biobase" ,r-biobase)
8000 ("r-biocgenerics" ,r-biocgenerics)
8001 ("r-go-db" ,r-go-db)
8002 ("r-graph" ,r-graph)
8003 ("r-lattice" ,r-lattice)
8004 ("r-matrixstats" ,r-matrixstats)
8005 ("r-sparsem" ,r-sparsem)))
8006 (home-page "https://bioconductor.org/packages/topGO")
8007 (synopsis "Enrichment analysis for gene ontology")
8008 (description
8009 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
8010 terms while accounting for the topology of the GO graph. Different test
8011 statistics and different methods for eliminating local similarities and
8012 dependencies between GO terms can be implemented and applied.")
8013 ;; Any version of the LGPL applies.
8014 (license license:lgpl2.1+)))
8015
8016 (define-public r-bsgenome
8017 (package
8018 (name "r-bsgenome")
8019 (version "1.50.0")
8020 (source (origin
8021 (method url-fetch)
8022 (uri (bioconductor-uri "BSgenome" version))
8023 (sha256
8024 (base32
8025 "07z4zxx0khrc86qqvc7vxww8df9fh6pyks9ajxkc9gdqr5nn79j7"))))
8026 (properties
8027 `((upstream-name . "BSgenome")))
8028 (build-system r-build-system)
8029 (propagated-inputs
8030 `(("r-biocgenerics" ,r-biocgenerics)
8031 ("r-biostrings" ,r-biostrings)
8032 ("r-genomeinfodb" ,r-genomeinfodb)
8033 ("r-genomicranges" ,r-genomicranges)
8034 ("r-iranges" ,r-iranges)
8035 ("r-rsamtools" ,r-rsamtools)
8036 ("r-rtracklayer" ,r-rtracklayer)
8037 ("r-s4vectors" ,r-s4vectors)
8038 ("r-xvector" ,r-xvector)))
8039 (home-page "https://bioconductor.org/packages/BSgenome")
8040 (synopsis "Infrastructure for Biostrings-based genome data packages")
8041 (description
8042 "This package provides infrastructure shared by all Biostrings-based
8043 genome data packages and support for efficient SNP representation.")
8044 (license license:artistic2.0)))
8045
8046 (define-public r-impute
8047 (package
8048 (name "r-impute")
8049 (version "1.56.0")
8050 (source (origin
8051 (method url-fetch)
8052 (uri (bioconductor-uri "impute" version))
8053 (sha256
8054 (base32
8055 "08z0pj1dz5iq967nwj67qyka7ir7m5an2ggv7bsrlz3apzfsla33"))))
8056 (inputs
8057 `(("gfortran" ,gfortran)))
8058 (build-system r-build-system)
8059 (home-page "https://bioconductor.org/packages/impute")
8060 (synopsis "Imputation for microarray data")
8061 (description
8062 "This package provides a function to impute missing gene expression
8063 microarray data, using nearest neighbor averaging.")
8064 (license license:gpl2+)))
8065
8066 (define-public r-seqpattern
8067 (package
8068 (name "r-seqpattern")
8069 (version "1.14.0")
8070 (source (origin
8071 (method url-fetch)
8072 (uri (bioconductor-uri "seqPattern" version))
8073 (sha256
8074 (base32
8075 "0di83qi83mrlw7i12khsq55d03hlazcywaa9m9pki1sfhafpq733"))))
8076 (properties
8077 `((upstream-name . "seqPattern")))
8078 (build-system r-build-system)
8079 (propagated-inputs
8080 `(("r-biostrings" ,r-biostrings)
8081 ("r-genomicranges" ,r-genomicranges)
8082 ("r-iranges" ,r-iranges)
8083 ("r-kernsmooth" ,r-kernsmooth)
8084 ("r-plotrix" ,r-plotrix)))
8085 (home-page "https://bioconductor.org/packages/seqPattern")
8086 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
8087 (description
8088 "This package provides tools to visualize oligonucleotide patterns and
8089 sequence motif occurrences across a large set of sequences centred at a common
8090 reference point and sorted by a user defined feature.")
8091 (license license:gpl3+)))
8092
8093 (define-public r-genomation
8094 (package
8095 (name "r-genomation")
8096 (version "1.14.0")
8097 (source (origin
8098 (method url-fetch)
8099 (uri (bioconductor-uri "genomation" version))
8100 (sha256
8101 (base32
8102 "0g0v4alfpqlinqinjnyzl3mrjnpbdx9ri34mcaiqbvbvg8ic8wvg"))))
8103 (build-system r-build-system)
8104 (propagated-inputs
8105 `(("r-biostrings" ,r-biostrings)
8106 ("r-bsgenome" ,r-bsgenome)
8107 ("r-data-table" ,r-data-table)
8108 ("r-genomeinfodb" ,r-genomeinfodb)
8109 ("r-genomicalignments" ,r-genomicalignments)
8110 ("r-genomicranges" ,r-genomicranges)
8111 ("r-ggplot2" ,r-ggplot2)
8112 ("r-gridbase" ,r-gridbase)
8113 ("r-impute" ,r-impute)
8114 ("r-iranges" ,r-iranges)
8115 ("r-matrixstats" ,r-matrixstats)
8116 ("r-plotrix" ,r-plotrix)
8117 ("r-plyr" ,r-plyr)
8118 ("r-rcpp" ,r-rcpp)
8119 ("r-readr" ,r-readr)
8120 ("r-reshape2" ,r-reshape2)
8121 ("r-rsamtools" ,r-rsamtools)
8122 ("r-rtracklayer" ,r-rtracklayer)
8123 ("r-runit" ,r-runit)
8124 ("r-s4vectors" ,r-s4vectors)
8125 ("r-seqpattern" ,r-seqpattern)))
8126 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8127 (synopsis "Summary, annotation and visualization of genomic data")
8128 (description
8129 "This package provides a package for summary and annotation of genomic
8130 intervals. Users can visualize and quantify genomic intervals over
8131 pre-defined functional regions, such as promoters, exons, introns, etc. The
8132 genomic intervals represent regions with a defined chromosome position, which
8133 may be associated with a score, such as aligned reads from HT-seq experiments,
8134 TF binding sites, methylation scores, etc. The package can use any tabular
8135 genomic feature data as long as it has minimal information on the locations of
8136 genomic intervals. In addition, it can use BAM or BigWig files as input.")
8137 (license license:artistic2.0)))
8138
8139 (define-public r-genomationdata
8140 (package
8141 (name "r-genomationdata")
8142 (version "1.14.0")
8143 (source (origin
8144 (method url-fetch)
8145 ;; We cannot use bioconductor-uri here because this tarball is
8146 ;; located under "data/annotation/" instead of "bioc/".
8147 (uri (string-append "https://bioconductor.org/packages/"
8148 "release/data/experiment/src/contrib/"
8149 "genomationData_" version ".tar.gz"))
8150 (sha256
8151 (base32
8152 "10xyb8akjrhmak2i0mnv1agny2ipy364q9nlibyplpzc7vdb6bw7"))))
8153 (build-system r-build-system)
8154 ;; As this package provides little more than large data files, it doesn't
8155 ;; make sense to build substitutes.
8156 (arguments `(#:substitutable? #f))
8157 (native-inputs
8158 `(("r-knitr" ,r-knitr)))
8159 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8160 (synopsis "Experimental data for use with the genomation package")
8161 (description
8162 "This package contains experimental genetic data for use with the
8163 genomation package. Included are Chip Seq, Methylation and Cage data,
8164 downloaded from Encode.")
8165 (license license:gpl3+)))
8166
8167 (define-public r-seqlogo
8168 (package
8169 (name "r-seqlogo")
8170 (version "1.48.0")
8171 (source
8172 (origin
8173 (method url-fetch)
8174 (uri (bioconductor-uri "seqLogo" version))
8175 (sha256
8176 (base32
8177 "022vr9ydwcivs7rw7kwj73gfk5gc7ckwa1q66vhd4kw9ylh70v68"))))
8178 (properties `((upstream-name . "seqLogo")))
8179 (build-system r-build-system)
8180 (home-page "https://bioconductor.org/packages/seqLogo")
8181 (synopsis "Sequence logos for DNA sequence alignments")
8182 (description
8183 "seqLogo takes the position weight matrix of a DNA sequence motif and
8184 plots the corresponding sequence logo as introduced by Schneider and
8185 Stephens (1990).")
8186 (license license:lgpl2.0+)))
8187
8188 (define-public r-motifrg
8189 (package
8190 (name "r-motifrg")
8191 (version "1.26.0")
8192 (source
8193 (origin
8194 (method url-fetch)
8195 (uri (bioconductor-uri "motifRG" version))
8196 (sha256
8197 (base32
8198 "1wxww6i0jgyapqclcwy0zzf9kqjvrvylr89z7yhg1izi7jnw2fka"))))
8199 (properties `((upstream-name . "motifRG")))
8200 (build-system r-build-system)
8201 (propagated-inputs
8202 `(("r-biostrings" ,r-biostrings)
8203 ("r-bsgenome" ,r-bsgenome)
8204 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8205 ("r-iranges" ,r-iranges)
8206 ("r-seqlogo" ,r-seqlogo)
8207 ("r-xvector" ,r-xvector)))
8208 (home-page "https://bioconductor.org/packages/motifRG")
8209 (synopsis "Discover motifs in high throughput sequencing data")
8210 (description
8211 "This package provides tools for discriminative motif discovery in high
8212 throughput genetic sequencing data sets using regression methods.")
8213 (license license:artistic2.0)))
8214
8215 (define-public r-qtl
8216 (package
8217 (name "r-qtl")
8218 (version "1.44-9")
8219 (source
8220 (origin
8221 (method url-fetch)
8222 (uri (string-append "mirror://cran/src/contrib/qtl_"
8223 version ".tar.gz"))
8224 (sha256
8225 (base32
8226 "03lmvydln8b7666b6w46qbryhf83vsd11d4y2v95rfgvqgq66l1i"))))
8227 (build-system r-build-system)
8228 (home-page "http://rqtl.org/")
8229 (synopsis "R package for analyzing QTL experiments in genetics")
8230 (description "R/qtl is an extension library for the R statistics
8231 system. It is used to analyze experimental crosses for identifying
8232 genes contributing to variation in quantitative traits (so-called
8233 quantitative trait loci, QTLs).
8234
8235 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
8236 identify genotyping errors, and to perform single-QTL and two-QTL,
8237 two-dimensional genome scans.")
8238 (license license:gpl3)))
8239
8240 (define-public r-zlibbioc
8241 (package
8242 (name "r-zlibbioc")
8243 (version "1.28.0")
8244 (source (origin
8245 (method url-fetch)
8246 (uri (bioconductor-uri "zlibbioc" version))
8247 (sha256
8248 (base32
8249 "0bjvzy24kab7ank02cc1qk2ikcz4dllgf66wpsdl0d3zp4gn3l2h"))))
8250 (properties
8251 `((upstream-name . "zlibbioc")))
8252 (build-system r-build-system)
8253 (home-page "https://bioconductor.org/packages/zlibbioc")
8254 (synopsis "Provider for zlib-1.2.5 to R packages")
8255 (description "This package uses the source code of zlib-1.2.5 to create
8256 libraries for systems that do not have these available via other means.")
8257 (license license:artistic2.0)))
8258
8259 (define-public r-r4rna
8260 (package
8261 (name "r-r4rna")
8262 (version "0.1.4")
8263 (source
8264 (origin
8265 (method url-fetch)
8266 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8267 version ".tar.gz"))
8268 (sha256
8269 (base32
8270 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8271 (build-system r-build-system)
8272 (propagated-inputs
8273 `(("r-optparse" ,r-optparse)
8274 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8275 (home-page "http://www.e-rna.org/r-chie/index.cgi")
8276 (synopsis "Analysis framework for RNA secondary structure")
8277 (description
8278 "The R4RNA package aims to be a general framework for the analysis of RNA
8279 secondary structure and comparative analysis in R.")
8280 (license license:gpl3+)))
8281
8282 (define-public r-rhtslib
8283 (package
8284 (name "r-rhtslib")
8285 (version "1.14.1")
8286 (source
8287 (origin
8288 (method url-fetch)
8289 (uri (bioconductor-uri "Rhtslib" version))
8290 (sha256
8291 (base32
8292 "13fv78sk5g0gqfl3ks3rps3zc1k66a4lzxvgn36r7ix43yxk7hnr"))))
8293 (properties `((upstream-name . "Rhtslib")))
8294 (build-system r-build-system)
8295 ;; Without this a temporary directory ends up in the Rhtslib.so binary,
8296 ;; which makes R abort the build.
8297 (arguments '(#:configure-flags '("--no-staged-install")))
8298 (propagated-inputs
8299 `(("r-zlibbioc" ,r-zlibbioc)))
8300 (inputs
8301 `(("zlib" ,zlib)))
8302 (native-inputs
8303 `(("pkg-config" ,pkg-config)))
8304 (home-page "https://github.com/nhayden/Rhtslib")
8305 (synopsis "High-throughput sequencing library as an R package")
8306 (description
8307 "This package provides the HTSlib C library for high-throughput
8308 nucleotide sequence analysis. The package is primarily useful to developers
8309 of other R packages who wish to make use of HTSlib.")
8310 (license license:lgpl2.0+)))
8311
8312 (define-public r-bamsignals
8313 (package
8314 (name "r-bamsignals")
8315 (version "1.14.0")
8316 (source
8317 (origin
8318 (method url-fetch)
8319 (uri (bioconductor-uri "bamsignals" version))
8320 (sha256
8321 (base32
8322 "19irfx1y1izf903vq59wxsdbf88g143zy9l89gxqawh7jfxds8w8"))))
8323 (build-system r-build-system)
8324 (propagated-inputs
8325 `(("r-biocgenerics" ,r-biocgenerics)
8326 ("r-genomicranges" ,r-genomicranges)
8327 ("r-iranges" ,r-iranges)
8328 ("r-rcpp" ,r-rcpp)
8329 ("r-rhtslib" ,r-rhtslib)
8330 ("r-zlibbioc" ,r-zlibbioc)))
8331 (inputs
8332 `(("zlib" ,zlib)))
8333 (home-page "https://bioconductor.org/packages/bamsignals")
8334 (synopsis "Extract read count signals from bam files")
8335 (description
8336 "This package allows to efficiently obtain count vectors from indexed bam
8337 files. It counts the number of nucleotide sequence reads in given genomic
8338 ranges and it computes reads profiles and coverage profiles. It also handles
8339 paired-end data.")
8340 (license license:gpl2+)))
8341
8342 (define-public r-rcas
8343 (package
8344 (name "r-rcas")
8345 (version "1.8.0")
8346 (source (origin
8347 (method url-fetch)
8348 (uri (bioconductor-uri "RCAS" version))
8349 (sha256
8350 (base32
8351 "0ss5hcg2m7gjji6dd23zxa5bd5a7knwcnada4qs5q2l4clgk39ad"))))
8352 (properties `((upstream-name . "RCAS")))
8353 (build-system r-build-system)
8354 (propagated-inputs
8355 `(("r-annotationdbi" ,r-annotationdbi)
8356 ("r-biocgenerics" ,r-biocgenerics)
8357 ("r-biomart" ,r-biomart)
8358 ("r-biostrings" ,r-biostrings)
8359 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8360 ("r-cowplot" ,r-cowplot)
8361 ("r-data-table" ,r-data-table)
8362 ("r-dbi" ,r-dbi)
8363 ("r-dt" ,r-dt)
8364 ("r-genomation" ,r-genomation)
8365 ("r-genomeinfodb" ,r-genomeinfodb)
8366 ("r-genomicfeatures" ,r-genomicfeatures)
8367 ("r-genomicranges" ,r-genomicranges)
8368 ("r-ggplot2" ,r-ggplot2)
8369 ("r-ggseqlogo" ,r-ggseqlogo)
8370 ("r-knitr" ,r-knitr)
8371 ("r-motifrg" ,r-motifrg)
8372 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
8373 ("r-pbapply" ,r-pbapply)
8374 ("r-pheatmap" ,r-pheatmap)
8375 ("r-plotly" ,r-plotly)
8376 ("r-plotrix" ,r-plotrix)
8377 ("r-proxy" ,r-proxy)
8378 ("r-rsqlite" ,r-rsqlite)
8379 ("r-rtracklayer" ,r-rtracklayer)
8380 ("r-rmarkdown" ,r-rmarkdown)
8381 ("r-s4vectors" ,r-s4vectors)
8382 ("r-topgo" ,r-topgo)))
8383 (synopsis "RNA-centric annotation system")
8384 (description
8385 "RCAS aims to be a standalone RNA-centric annotation system that provides
8386 intuitive reports and publication-ready graphics. This package provides the R
8387 library implementing most of the pipeline's features.")
8388 (home-page "https://github.com/BIMSBbioinfo/RCAS")
8389 (license license:artistic2.0)))
8390
8391 (define-public rcas-web
8392 (package
8393 (name "rcas-web")
8394 (version "0.1.0")
8395 (source
8396 (origin
8397 (method url-fetch)
8398 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8399 "releases/download/v" version
8400 "/rcas-web-" version ".tar.gz"))
8401 (sha256
8402 (base32
8403 "0wq951aj45gqki1bickg876i993lmawkp8x24agg264br5x716db"))))
8404 (build-system gnu-build-system)
8405 (arguments
8406 `(#:phases
8407 (modify-phases %standard-phases
8408 (add-after 'install 'wrap-executable
8409 (lambda* (#:key inputs outputs #:allow-other-keys)
8410 (let* ((out (assoc-ref outputs "out"))
8411 (json (assoc-ref inputs "guile-json"))
8412 (redis (assoc-ref inputs "guile-redis"))
8413 (path (string-append
8414 json "/share/guile/site/2.2:"
8415 redis "/share/guile/site/2.2")))
8416 (wrap-program (string-append out "/bin/rcas-web")
8417 `("GUILE_LOAD_PATH" ":" = (,path))
8418 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8419 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8420 #t)))))
8421 (inputs
8422 `(("r-minimal" ,r-minimal)
8423 ("r-rcas" ,r-rcas)
8424 ("guile-next" ,guile-2.2)
8425 ("guile-json" ,guile-json)
8426 ("guile-redis" ,guile-redis)))
8427 (native-inputs
8428 `(("pkg-config" ,pkg-config)))
8429 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8430 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8431 (description "This package provides a simple web interface for the
8432 @dfn{RNA-centric annotation system} (RCAS).")
8433 (license license:agpl3+)))
8434
8435 (define-public r-mutationalpatterns
8436 (package
8437 (name "r-mutationalpatterns")
8438 (version "1.8.0")
8439 (source
8440 (origin
8441 (method url-fetch)
8442 (uri (bioconductor-uri "MutationalPatterns" version))
8443 (sha256
8444 (base32
8445 "0w9lg1zs106h6rqvy8mhikq6q6q9syw6c1prcxr38ssh85rcih12"))))
8446 (build-system r-build-system)
8447 (propagated-inputs
8448 `(("r-biocgenerics" ,r-biocgenerics)
8449 ("r-biostrings" ,r-biostrings)
8450 ;; These two packages are suggested packages
8451 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8452 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
8453 ("r-genomicranges" ,r-genomicranges)
8454 ("r-genomeinfodb" ,r-genomeinfodb)
8455 ("r-ggplot2" ,r-ggplot2)
8456 ("r-iranges" ,r-iranges)
8457 ("r-nmf" ,r-nmf)
8458 ("r-plyr" ,r-plyr)
8459 ("r-pracma" ,r-pracma)
8460 ("r-reshape2" ,r-reshape2)
8461 ("r-cowplot" ,r-cowplot)
8462 ("r-ggdendro" ,r-ggdendro)
8463 ("r-s4vectors" ,r-s4vectors)
8464 ("r-summarizedexperiment" ,r-summarizedexperiment)
8465 ("r-variantannotation" ,r-variantannotation)))
8466 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
8467 (synopsis "Extract and visualize mutational patterns in genomic data")
8468 (description "This package provides an extensive toolset for the
8469 characterization and visualization of a wide range of mutational patterns
8470 in SNV base substitution data.")
8471 (license license:expat)))
8472
8473 (define-public r-chipkernels
8474 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8475 (revision "1"))
8476 (package
8477 (name "r-chipkernels")
8478 (version (string-append "1.1-" revision "." (string-take commit 9)))
8479 (source
8480 (origin
8481 (method git-fetch)
8482 (uri (git-reference
8483 (url "https://github.com/ManuSetty/ChIPKernels.git")
8484 (commit commit)))
8485 (file-name (string-append name "-" version))
8486 (sha256
8487 (base32
8488 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8489 (build-system r-build-system)
8490 (propagated-inputs
8491 `(("r-iranges" ,r-iranges)
8492 ("r-xvector" ,r-xvector)
8493 ("r-biostrings" ,r-biostrings)
8494 ("r-bsgenome" ,r-bsgenome)
8495 ("r-gtools" ,r-gtools)
8496 ("r-genomicranges" ,r-genomicranges)
8497 ("r-sfsmisc" ,r-sfsmisc)
8498 ("r-kernlab" ,r-kernlab)
8499 ("r-s4vectors" ,r-s4vectors)
8500 ("r-biocgenerics" ,r-biocgenerics)))
8501 (home-page "https://github.com/ManuSetty/ChIPKernels")
8502 (synopsis "Build string kernels for DNA Sequence analysis")
8503 (description "ChIPKernels is an R package for building different string
8504 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8505 must be built and this dictionary can be used for determining kernels for DNA
8506 Sequences.")
8507 (license license:gpl2+))))
8508
8509 (define-public r-seqgl
8510 (package
8511 (name "r-seqgl")
8512 (version "1.1.4")
8513 (source
8514 (origin
8515 (method git-fetch)
8516 (uri (git-reference
8517 (url "https://github.com/ManuSetty/SeqGL.git")
8518 (commit version)))
8519 (file-name (git-file-name name version))
8520 (sha256
8521 (base32
8522 "1r6ywvhxl3ffv48lgj7sbd582mcc6dha3ksgc2qjlvjrnkbj3799"))))
8523 (build-system r-build-system)
8524 (propagated-inputs
8525 `(("r-biostrings" ,r-biostrings)
8526 ("r-chipkernels" ,r-chipkernels)
8527 ("r-genomicranges" ,r-genomicranges)
8528 ("r-spams" ,r-spams)
8529 ("r-wgcna" ,r-wgcna)
8530 ("r-fastcluster" ,r-fastcluster)))
8531 (home-page "https://github.com/ManuSetty/SeqGL")
8532 (synopsis "Group lasso for Dnase/ChIP-seq data")
8533 (description "SeqGL is a group lasso based algorithm to extract
8534 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8535 This package presents a method which uses group lasso to discriminate between
8536 bound and non bound genomic regions to accurately identify transcription
8537 factors bound at the specific regions.")
8538 (license license:gpl2+)))
8539
8540 (define-public r-tximport
8541 (package
8542 (name "r-tximport")
8543 (version "1.10.1")
8544 (source (origin
8545 (method url-fetch)
8546 (uri (bioconductor-uri "tximport" version))
8547 (sha256
8548 (base32
8549 "16wp09dm0cpb4mc00nmglfb8ica7qb4a55vm8ajgzyagbpfdd44l"))))
8550 (build-system r-build-system)
8551 (home-page "https://bioconductor.org/packages/tximport")
8552 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8553 (description
8554 "This package provides tools to import transcript-level abundance,
8555 estimated counts and transcript lengths, and to summarize them into matrices
8556 for use with downstream gene-level analysis packages. Average transcript
8557 length, weighted by sample-specific transcript abundance estimates, is
8558 provided as a matrix which can be used as an offset for different expression
8559 of gene-level counts.")
8560 (license license:gpl2+)))
8561
8562 (define-public r-rhdf5
8563 (package
8564 (name "r-rhdf5")
8565 (version "2.26.2")
8566 (source (origin
8567 (method url-fetch)
8568 (uri (bioconductor-uri "rhdf5" version))
8569 (sha256
8570 (base32
8571 "10zkw3k13wmvyif417gplyf6rwp2gpkjasw97lhwv2f9i32rry9l"))))
8572 (build-system r-build-system)
8573 (propagated-inputs
8574 `(("r-rhdf5lib" ,r-rhdf5lib)))
8575 (inputs
8576 `(("zlib" ,zlib)))
8577 (home-page "https://bioconductor.org/packages/rhdf5")
8578 (synopsis "HDF5 interface to R")
8579 (description
8580 "This R/Bioconductor package provides an interface between HDF5 and R.
8581 HDF5's main features are the ability to store and access very large and/or
8582 complex datasets and a wide variety of metadata on mass storage (disk) through
8583 a completely portable file format. The rhdf5 package is thus suited for the
8584 exchange of large and/or complex datasets between R and other software
8585 package, and for letting R applications work on datasets that are larger than
8586 the available RAM.")
8587 (license license:artistic2.0)))
8588
8589 (define-public r-annotationfilter
8590 (package
8591 (name "r-annotationfilter")
8592 (version "1.6.0")
8593 (source (origin
8594 (method url-fetch)
8595 (uri (bioconductor-uri "AnnotationFilter" version))
8596 (sha256
8597 (base32
8598 "0wrr10cxjzmxx46vjzq2nsf6xlqz1sqwx4xm0sk3d77ff8wmph4x"))))
8599 (properties
8600 `((upstream-name . "AnnotationFilter")))
8601 (build-system r-build-system)
8602 (propagated-inputs
8603 `(("r-genomicranges" ,r-genomicranges)
8604 ("r-lazyeval" ,r-lazyeval)))
8605 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8606 (synopsis "Facilities for filtering Bioconductor annotation resources")
8607 (description
8608 "This package provides classes and other infrastructure to implement
8609 filters for manipulating Bioconductor annotation resources. The filters are
8610 used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8611 (license license:artistic2.0)))
8612
8613 (define-public emboss
8614 (package
8615 (name "emboss")
8616 (version "6.5.7")
8617 (source (origin
8618 (method url-fetch)
8619 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8620 (version-major+minor version) ".0/"
8621 "EMBOSS-" version ".tar.gz"))
8622 (sha256
8623 (base32
8624 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8625 (build-system gnu-build-system)
8626 (arguments
8627 `(#:configure-flags
8628 (list (string-append "--with-hpdf="
8629 (assoc-ref %build-inputs "libharu")))
8630 #:phases
8631 (modify-phases %standard-phases
8632 (add-after 'unpack 'fix-checks
8633 (lambda _
8634 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8635 ;; and zlib, but assume that they are all found at the same
8636 ;; prefix.
8637 (substitute* "configure.in"
8638 (("CHECK_PNGDRIVER")
8639 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8640 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8641 AM_CONDITIONAL(AMPNG, true)"))
8642 #t))
8643 (add-after 'fix-checks 'disable-update-check
8644 (lambda _
8645 ;; At build time there is no connection to the Internet, so
8646 ;; looking for updates will not work.
8647 (substitute* "Makefile.am"
8648 (("\\$\\(bindir\\)/embossupdate") ""))
8649 #t))
8650 (add-after 'disable-update-check 'autogen
8651 (lambda _ (invoke "autoreconf" "-vif") #t)))))
8652 (inputs
8653 `(("perl" ,perl)
8654 ("libpng" ,libpng)
8655 ("gd" ,gd)
8656 ("libx11" ,libx11)
8657 ("libharu" ,libharu)
8658 ("zlib" ,zlib)))
8659 (native-inputs
8660 `(("autoconf" ,autoconf)
8661 ("automake" ,automake)
8662 ("libtool" ,libtool)
8663 ("pkg-config" ,pkg-config)))
8664 (home-page "http://emboss.sourceforge.net")
8665 (synopsis "Molecular biology analysis suite")
8666 (description "EMBOSS is the \"European Molecular Biology Open Software
8667 Suite\". EMBOSS is an analysis package specially developed for the needs of
8668 the molecular biology (e.g. EMBnet) user community. The software
8669 automatically copes with data in a variety of formats and even allows
8670 transparent retrieval of sequence data from the web. It also provides a
8671 number of libraries for the development of software in the field of molecular
8672 biology. EMBOSS also integrates a range of currently available packages and
8673 tools for sequence analysis into a seamless whole.")
8674 (license license:gpl2+)))
8675
8676 (define-public bits
8677 (let ((revision "1")
8678 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8679 (package
8680 (name "bits")
8681 ;; The version is 2.13.0 even though no release archives have been
8682 ;; published as yet.
8683 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8684 (source (origin
8685 (method git-fetch)
8686 (uri (git-reference
8687 (url "https://github.com/arq5x/bits.git")
8688 (commit commit)))
8689 (file-name (string-append name "-" version "-checkout"))
8690 (sha256
8691 (base32
8692 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8693 (build-system gnu-build-system)
8694 (arguments
8695 `(#:tests? #f ;no tests included
8696 #:phases
8697 (modify-phases %standard-phases
8698 (delete 'configure)
8699 (add-after 'unpack 'remove-cuda
8700 (lambda _
8701 (substitute* "Makefile"
8702 ((".*_cuda") "")
8703 (("(bits_test_intersections) \\\\" _ match) match))
8704 #t))
8705 (replace 'install
8706 (lambda* (#:key outputs #:allow-other-keys)
8707 (copy-recursively
8708 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8709 #t)))))
8710 (inputs
8711 `(("gsl" ,gsl)
8712 ("zlib" ,zlib)))
8713 (home-page "https://github.com/arq5x/bits")
8714 (synopsis "Implementation of binary interval search algorithm")
8715 (description "This package provides an implementation of the
8716 BITS (Binary Interval Search) algorithm, an approach to interval set
8717 intersection. It is especially suited for the comparison of diverse genomic
8718 datasets and the exploration of large datasets of genome
8719 intervals (e.g. genes, sequence alignments).")
8720 (license license:gpl2))))
8721
8722 (define-public piranha
8723 ;; There is no release tarball for the latest version. The latest commit is
8724 ;; older than one year at the time of this writing.
8725 (let ((revision "1")
8726 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8727 (package
8728 (name "piranha")
8729 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8730 (source (origin
8731 (method git-fetch)
8732 (uri (git-reference
8733 (url "https://github.com/smithlabcode/piranha.git")
8734 (commit commit)))
8735 (file-name (git-file-name name version))
8736 (sha256
8737 (base32
8738 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
8739 (build-system gnu-build-system)
8740 (arguments
8741 `(#:test-target "test"
8742 #:phases
8743 (modify-phases %standard-phases
8744 (add-after 'unpack 'copy-smithlab-cpp
8745 (lambda* (#:key inputs #:allow-other-keys)
8746 (for-each (lambda (file)
8747 (install-file file "./src/smithlab_cpp/"))
8748 (find-files (assoc-ref inputs "smithlab-cpp")))
8749 #t))
8750 (add-after 'install 'install-to-store
8751 (lambda* (#:key outputs #:allow-other-keys)
8752 (let* ((out (assoc-ref outputs "out"))
8753 (bin (string-append out "/bin")))
8754 (for-each (lambda (file)
8755 (install-file file bin))
8756 (find-files "bin" ".*")))
8757 #t)))
8758 #:configure-flags
8759 (list (string-append "--with-bam_tools_headers="
8760 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
8761 (string-append "--with-bam_tools_library="
8762 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
8763 (inputs
8764 `(("bamtools" ,bamtools)
8765 ("samtools" ,samtools-0.1)
8766 ("gsl" ,gsl)
8767 ("smithlab-cpp"
8768 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
8769 (origin
8770 (method git-fetch)
8771 (uri (git-reference
8772 (url "https://github.com/smithlabcode/smithlab_cpp.git")
8773 (commit commit)))
8774 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
8775 (sha256
8776 (base32
8777 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
8778 (native-inputs
8779 `(("python" ,python-2)))
8780 (home-page "https://github.com/smithlabcode/piranha")
8781 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
8782 (description
8783 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
8784 RIP-seq experiments. It takes input in BED or BAM format and identifies
8785 regions of statistically significant read enrichment. Additional covariates
8786 may optionally be provided to further inform the peak-calling process.")
8787 (license license:gpl3+))))
8788
8789 (define-public pepr
8790 (package
8791 (name "pepr")
8792 (version "1.0.9")
8793 (source (origin
8794 (method url-fetch)
8795 (uri (pypi-uri "PePr" version))
8796 (sha256
8797 (base32
8798 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
8799 (build-system python-build-system)
8800 (arguments
8801 `(#:python ,python-2 ; python2 only
8802 #:tests? #f)) ; no tests included
8803 (propagated-inputs
8804 `(("python2-numpy" ,python2-numpy)
8805 ("python2-scipy" ,python2-scipy)
8806 ("python2-pysam" ,python2-pysam)))
8807 (home-page "https://github.com/shawnzhangyx/PePr")
8808 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
8809 (description
8810 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
8811 that is primarily designed for data with biological replicates. It uses a
8812 negative binomial distribution to model the read counts among the samples in
8813 the same group, and look for consistent differences between ChIP and control
8814 group or two ChIP groups run under different conditions.")
8815 (license license:gpl3+)))
8816
8817 (define-public filevercmp
8818 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
8819 (package
8820 (name "filevercmp")
8821 (version (string-append "0-1." (string-take commit 7)))
8822 (source (origin
8823 (method git-fetch)
8824 (uri (git-reference
8825 (url "https://github.com/ekg/filevercmp.git")
8826 (commit commit)))
8827 (file-name (git-file-name name commit))
8828 (sha256
8829 (base32
8830 "1j9vxsy0y050v59h0q1d6501fcw1kjvj0d18l1xk2zyg0jzj247c"))))
8831 (build-system gnu-build-system)
8832 (arguments
8833 `(#:tests? #f ; There are no tests to run.
8834 #:phases
8835 (modify-phases %standard-phases
8836 (delete 'configure) ; There is no configure phase.
8837 (replace 'install
8838 (lambda* (#:key outputs #:allow-other-keys)
8839 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
8840 (install-file "filevercmp" bin)
8841 #t))))))
8842 (home-page "https://github.com/ekg/filevercmp")
8843 (synopsis "This program compares version strings")
8844 (description "This program compares version strings. It intends to be a
8845 replacement for strverscmp.")
8846 (license license:gpl3+))))
8847
8848 (define-public multiqc
8849 (package
8850 (name "multiqc")
8851 (version "1.5")
8852 (source
8853 (origin
8854 (method url-fetch)
8855 (uri (pypi-uri "multiqc" version))
8856 (sha256
8857 (base32
8858 "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
8859 (build-system python-build-system)
8860 (propagated-inputs
8861 `(("python-jinja2" ,python-jinja2)
8862 ("python-simplejson" ,python-simplejson)
8863 ("python-pyyaml" ,python-pyyaml)
8864 ("python-click" ,python-click)
8865 ("python-spectra" ,python-spectra)
8866 ("python-requests" ,python-requests)
8867 ("python-markdown" ,python-markdown)
8868 ("python-lzstring" ,python-lzstring)
8869 ("python-matplotlib" ,python-matplotlib)
8870 ("python-numpy" ,python-numpy)
8871 ;; MultQC checks for the presence of nose at runtime.
8872 ("python-nose" ,python-nose)))
8873 (arguments
8874 `(#:phases
8875 (modify-phases %standard-phases
8876 (add-after 'unpack 'relax-requirements
8877 (lambda _
8878 (substitute* "setup.py"
8879 ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
8880 ;; than the one in Guix, but should work fine with 2.2.2.
8881 ;; See <https://github.com/ewels/MultiQC/issues/725> and
8882 ;; <https://github.com/ewels/MultiQC/issues/732> for details.
8883 (("['\"]matplotlib.*?['\"]")
8884 "'matplotlib'"))
8885 #t)))))
8886 (home-page "http://multiqc.info")
8887 (synopsis "Aggregate bioinformatics analysis reports")
8888 (description
8889 "MultiQC is a tool to aggregate bioinformatics results across many
8890 samples into a single report. It contains modules for a large number of
8891 common bioinformatics tools.")
8892 (license license:gpl3+)))
8893
8894 (define-public r-chipseq
8895 (package
8896 (name "r-chipseq")
8897 (version "1.32.0")
8898 (source
8899 (origin
8900 (method url-fetch)
8901 (uri (bioconductor-uri "chipseq" version))
8902 (sha256
8903 (base32
8904 "1pp1rm5fs3hlar5x4dl3a3b4gara7qwf81dbvka6r1n78hrf9x1b"))))
8905 (build-system r-build-system)
8906 (propagated-inputs
8907 `(("r-biocgenerics" ,r-biocgenerics)
8908 ("r-genomicranges" ,r-genomicranges)
8909 ("r-iranges" ,r-iranges)
8910 ("r-lattice" ,r-lattice)
8911 ("r-s4vectors" ,r-s4vectors)
8912 ("r-shortread" ,r-shortread)))
8913 (home-page "https://bioconductor.org/packages/chipseq")
8914 (synopsis "Package for analyzing ChIPseq data")
8915 (description
8916 "This package provides tools for processing short read data from ChIPseq
8917 experiments.")
8918 (license license:artistic2.0)))
8919
8920 (define-public r-copyhelper
8921 (package
8922 (name "r-copyhelper")
8923 (version "1.6.0")
8924 (source
8925 (origin
8926 (method url-fetch)
8927 (uri (string-append "https://bioconductor.org/packages/release/"
8928 "data/experiment/src/contrib/CopyhelpeR_"
8929 version ".tar.gz"))
8930 (sha256
8931 (base32
8932 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
8933 (properties `((upstream-name . "CopyhelpeR")))
8934 (build-system r-build-system)
8935 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
8936 (synopsis "Helper files for CopywriteR")
8937 (description
8938 "This package contains the helper files that are required to run the
8939 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
8940 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
8941 mm10. In addition, it contains a blacklist filter to remove regions that
8942 display copy number variation. Files are stored as GRanges objects from the
8943 GenomicRanges Bioconductor package.")
8944 (license license:gpl2)))
8945
8946 (define-public r-copywriter
8947 (package
8948 (name "r-copywriter")
8949 (version "2.14.1")
8950 (source
8951 (origin
8952 (method url-fetch)
8953 (uri (bioconductor-uri "CopywriteR" version))
8954 (sha256
8955 (base32
8956 "1hbiw0m9hmx4na9v502pxf8y5wvxzr68r4d3fqr2755gxx86qck6"))))
8957 (properties `((upstream-name . "CopywriteR")))
8958 (build-system r-build-system)
8959 (propagated-inputs
8960 `(("r-biocparallel" ,r-biocparallel)
8961 ("r-chipseq" ,r-chipseq)
8962 ("r-copyhelper" ,r-copyhelper)
8963 ("r-data-table" ,r-data-table)
8964 ("r-dnacopy" ,r-dnacopy)
8965 ("r-futile-logger" ,r-futile-logger)
8966 ("r-genomeinfodb" ,r-genomeinfodb)
8967 ("r-genomicalignments" ,r-genomicalignments)
8968 ("r-genomicranges" ,r-genomicranges)
8969 ("r-gtools" ,r-gtools)
8970 ("r-iranges" ,r-iranges)
8971 ("r-matrixstats" ,r-matrixstats)
8972 ("r-rsamtools" ,r-rsamtools)
8973 ("r-s4vectors" ,r-s4vectors)))
8974 (home-page "https://github.com/PeeperLab/CopywriteR")
8975 (synopsis "Copy number information from targeted sequencing")
8976 (description
8977 "CopywriteR extracts DNA copy number information from targeted sequencing
8978 by utilizing off-target reads. It allows for extracting uniformly distributed
8979 copy number information, can be used without reference, and can be applied to
8980 sequencing data obtained from various techniques including chromatin
8981 immunoprecipitation and target enrichment on small gene panels. Thereby,
8982 CopywriteR constitutes a widely applicable alternative to available copy
8983 number detection tools.")
8984 (license license:gpl2)))
8985
8986 (define-public r-methylkit
8987 (package
8988 (name "r-methylkit")
8989 (version "1.8.1")
8990 (source (origin
8991 (method url-fetch)
8992 (uri (bioconductor-uri "methylKit" version))
8993 (sha256
8994 (base32
8995 "1zcfwy7i10aqgnf7r0c41hakb5aai3s3n9y8pc6a98vimz51ly2z"))))
8996 (properties `((upstream-name . "methylKit")))
8997 (build-system r-build-system)
8998 (propagated-inputs
8999 `(("r-data-table" ,r-data-table)
9000 ("r-emdbook" ,r-emdbook)
9001 ("r-fastseg" ,r-fastseg)
9002 ("r-genomeinfodb" ,r-genomeinfodb)
9003 ("r-genomicranges" ,r-genomicranges)
9004 ("r-gtools" ,r-gtools)
9005 ("r-iranges" ,r-iranges)
9006 ("r-kernsmooth" ,r-kernsmooth)
9007 ("r-limma" ,r-limma)
9008 ("r-mclust" ,r-mclust)
9009 ("r-qvalue" ,r-qvalue)
9010 ("r-r-utils" ,r-r-utils)
9011 ("r-rcpp" ,r-rcpp)
9012 ("r-rhtslib" ,r-rhtslib)
9013 ("r-rsamtools" ,r-rsamtools)
9014 ("r-rtracklayer" ,r-rtracklayer)
9015 ("r-s4vectors" ,r-s4vectors)
9016 ("r-zlibbioc" ,r-zlibbioc)))
9017 (inputs
9018 `(("zlib" ,zlib)))
9019 (home-page "https://github.com/al2na/methylKit")
9020 (synopsis
9021 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9022 (description
9023 "MethylKit is an R package for DNA methylation analysis and annotation
9024 from high-throughput bisulfite sequencing. The package is designed to deal
9025 with sequencing data from @dfn{Reduced representation bisulfite
9026 sequencing} (RRBS) and its variants, but also target-capture methods and whole
9027 genome bisulfite sequencing. It also has functions to analyze base-pair
9028 resolution 5hmC data from experimental protocols such as oxBS-Seq and
9029 TAB-Seq.")
9030 (license license:artistic2.0)))
9031
9032 (define-public r-sva
9033 (package
9034 (name "r-sva")
9035 (version "3.30.1")
9036 (source
9037 (origin
9038 (method url-fetch)
9039 (uri (bioconductor-uri "sva" version))
9040 (sha256
9041 (base32
9042 "0czja4c5jxa0g3fspi90nyajqmvzb29my4ykv2wi66h43f5dlwhq"))))
9043 (build-system r-build-system)
9044 (propagated-inputs
9045 `(("r-genefilter" ,r-genefilter)
9046 ("r-mgcv" ,r-mgcv)
9047 ("r-biocparallel" ,r-biocparallel)
9048 ("r-matrixstats" ,r-matrixstats)
9049 ("r-limma" ,r-limma)))
9050 (home-page "https://bioconductor.org/packages/sva")
9051 (synopsis "Surrogate variable analysis")
9052 (description
9053 "This package contains functions for removing batch effects and other
9054 unwanted variation in high-throughput experiment. It also contains functions
9055 for identifying and building surrogate variables for high-dimensional data
9056 sets. Surrogate variables are covariates constructed directly from
9057 high-dimensional data like gene expression/RNA sequencing/methylation/brain
9058 imaging data that can be used in subsequent analyses to adjust for unknown,
9059 unmodeled, or latent sources of noise.")
9060 (license license:artistic2.0)))
9061
9062 (define-public r-seqminer
9063 (package
9064 (name "r-seqminer")
9065 (version "7.1")
9066 (source
9067 (origin
9068 (method url-fetch)
9069 (uri (cran-uri "seqminer" version))
9070 (sha256
9071 (base32
9072 "1jydcpkw4rwfp983j83kipvsvr10as9pb49zzn3c2v09k1gh3ymy"))))
9073 (build-system r-build-system)
9074 (inputs
9075 `(("zlib" ,zlib)))
9076 (home-page "http://seqminer.genomic.codes")
9077 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
9078 (description
9079 "This package provides tools to integrate nucleotide sequencing
9080 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
9081 ;; Any version of the GPL is acceptable
9082 (license (list license:gpl2+ license:gpl3+))))
9083
9084 (define-public r-raremetals2
9085 (package
9086 (name "r-raremetals2")
9087 (version "0.1")
9088 (source
9089 (origin
9090 (method url-fetch)
9091 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9092 "b/b7/RareMETALS2_" version ".tar.gz"))
9093 (sha256
9094 (base32
9095 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9096 (properties `((upstream-name . "RareMETALS2")))
9097 (build-system r-build-system)
9098 (propagated-inputs
9099 `(("r-seqminer" ,r-seqminer)
9100 ("r-mvtnorm" ,r-mvtnorm)
9101 ("r-mass" ,r-mass)
9102 ("r-compquadform" ,r-compquadform)
9103 ("r-getopt" ,r-getopt)))
9104 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9105 (synopsis "Analyze gene-level association tests for binary trait")
9106 (description
9107 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9108 It was designed to meta-analyze gene-level association tests for binary trait.
9109 While rareMETALS offers a near-complete solution for meta-analysis of
9110 gene-level tests for quantitative trait, it does not offer the optimal
9111 solution for binary trait. The package rareMETALS2 offers improved features
9112 for analyzing gene-level association tests in meta-analyses for binary
9113 trait.")
9114 (license license:gpl3)))
9115
9116 (define-public r-maldiquant
9117 (package
9118 (name "r-maldiquant")
9119 (version "1.19.2")
9120 (source
9121 (origin
9122 (method url-fetch)
9123 (uri (cran-uri "MALDIquant" version))
9124 (sha256
9125 (base32
9126 "11zbvm1vw8zn2vmymvydgdczvwj961s2knvrn1q4gbziwi5gqvlc"))))
9127 (properties `((upstream-name . "MALDIquant")))
9128 (build-system r-build-system)
9129 (home-page "https://cran.r-project.org/web/packages/MALDIquant")
9130 (synopsis "Quantitative analysis of mass spectrometry data")
9131 (description
9132 "This package provides a complete analysis pipeline for matrix-assisted
9133 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
9134 two-dimensional mass spectrometry data. In addition to commonly used plotting
9135 and processing methods it includes distinctive features, namely baseline
9136 subtraction methods such as morphological filters (TopHat) or the
9137 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
9138 alignment using warping functions, handling of replicated measurements as well
9139 as allowing spectra with different resolutions.")
9140 (license license:gpl3+)))
9141
9142 (define-public r-protgenerics
9143 (package
9144 (name "r-protgenerics")
9145 (version "1.14.0")
9146 (source
9147 (origin
9148 (method url-fetch)
9149 (uri (bioconductor-uri "ProtGenerics" version))
9150 (sha256
9151 (base32
9152 "053mmxhzncqgigl2iqjlq56qzimlw2zzw31wpzw19rf7rld1vi3b"))))
9153 (properties `((upstream-name . "ProtGenerics")))
9154 (build-system r-build-system)
9155 (home-page "https://github.com/lgatto/ProtGenerics")
9156 (synopsis "S4 generic functions for proteomics infrastructure")
9157 (description
9158 "This package provides S4 generic functions needed by Bioconductor
9159 proteomics packages.")
9160 (license license:artistic2.0)))
9161
9162 (define-public r-mzr
9163 (package
9164 (name "r-mzr")
9165 (version "2.16.2")
9166 (source
9167 (origin
9168 (method url-fetch)
9169 (uri (bioconductor-uri "mzR" version))
9170 (sha256
9171 (base32
9172 "19fn58zl59kd0hsjjc6y975y9187nfls0028a4k3v0s9wfg5b3vn"))
9173 (modules '((guix build utils)))
9174 (snippet
9175 '(begin
9176 (delete-file-recursively "src/boost")
9177 #t))))
9178 (properties `((upstream-name . "mzR")))
9179 (build-system r-build-system)
9180 (arguments
9181 `(#:phases
9182 (modify-phases %standard-phases
9183 (add-after 'unpack 'use-system-boost
9184 (lambda _
9185 (substitute* "src/Makevars"
9186 (("\\./boost/libs.*") "")
9187 (("ARCH_OBJS=" line)
9188 (string-append line
9189 "\nARCH_LIBS=-lboost_system -lboost_regex \
9190 -lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9191 #t)))))
9192 (inputs
9193 `(;; XXX Boost 1.69 will not work here.
9194 ("boost" ,boost-for-mysql) ; use this instead of the bundled boost sources
9195 ("zlib" ,zlib)))
9196 (propagated-inputs
9197 `(("r-biobase" ,r-biobase)
9198 ("r-biocgenerics" ,r-biocgenerics)
9199 ("r-ncdf4" ,r-ncdf4)
9200 ("r-protgenerics" ,r-protgenerics)
9201 ("r-rcpp" ,r-rcpp)
9202 ("r-rhdf5lib" ,r-rhdf5lib)
9203 ("r-zlibbioc" ,r-zlibbioc)))
9204 (home-page "https://github.com/sneumann/mzR/")
9205 (synopsis "Parser for mass spectrometry data files")
9206 (description
9207 "The mzR package provides a unified API to the common file formats and
9208 parsers available for mass spectrometry data. It comes with a wrapper for the
9209 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9210 The package contains the original code written by the ISB, and a subset of the
9211 proteowizard library for mzML and mzIdentML. The netCDF reading code has
9212 previously been used in XCMS.")
9213 (license license:artistic2.0)))
9214
9215 (define-public r-affyio
9216 (package
9217 (name "r-affyio")
9218 (version "1.52.0")
9219 (source
9220 (origin
9221 (method url-fetch)
9222 (uri (bioconductor-uri "affyio" version))
9223 (sha256
9224 (base32
9225 "1s4zp1211vf0krxzch9v3q3r6vs8hihqppq18i2fpvwlknfja7c1"))))
9226 (build-system r-build-system)
9227 (propagated-inputs
9228 `(("r-zlibbioc" ,r-zlibbioc)))
9229 (inputs
9230 `(("zlib" ,zlib)))
9231 (home-page "https://github.com/bmbolstad/affyio")
9232 (synopsis "Tools for parsing Affymetrix data files")
9233 (description
9234 "This package provides routines for parsing Affymetrix data files based
9235 upon file format information. The primary focus is on accessing the CEL and
9236 CDF file formats.")
9237 (license license:lgpl2.0+)))
9238
9239 (define-public r-affy
9240 (package
9241 (name "r-affy")
9242 (version "1.60.0")
9243 (source
9244 (origin
9245 (method url-fetch)
9246 (uri (bioconductor-uri "affy" version))
9247 (sha256
9248 (base32
9249 "0x8h4fk2igv7vykqfvf6v9whmx3344v5rf3gyfajd431xkjldz6k"))))
9250 (build-system r-build-system)
9251 (propagated-inputs
9252 `(("r-affyio" ,r-affyio)
9253 ("r-biobase" ,r-biobase)
9254 ("r-biocgenerics" ,r-biocgenerics)
9255 ("r-biocmanager" ,r-biocmanager)
9256 ("r-preprocesscore" ,r-preprocesscore)
9257 ("r-zlibbioc" ,r-zlibbioc)))
9258 (inputs
9259 `(("zlib" ,zlib)))
9260 (home-page "https://bioconductor.org/packages/affy")
9261 (synopsis "Methods for affymetrix oligonucleotide arrays")
9262 (description
9263 "This package contains functions for exploratory oligonucleotide array
9264 analysis.")
9265 (license license:lgpl2.0+)))
9266
9267 (define-public r-vsn
9268 (package
9269 (name "r-vsn")
9270 (version "3.50.0")
9271 (source
9272 (origin
9273 (method url-fetch)
9274 (uri (bioconductor-uri "vsn" version))
9275 (sha256
9276 (base32
9277 "1g6qkpykw99jm2wv2i61dg2ffwk0n8fm4s5pm2q4c024vw5c9b69"))))
9278 (build-system r-build-system)
9279 (propagated-inputs
9280 `(("r-affy" ,r-affy)
9281 ("r-biobase" ,r-biobase)
9282 ("r-ggplot2" ,r-ggplot2)
9283 ("r-lattice" ,r-lattice)
9284 ("r-limma" ,r-limma)))
9285 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
9286 (synopsis "Variance stabilization and calibration for microarray data")
9287 (description
9288 "The package implements a method for normalising microarray intensities,
9289 and works for single- and multiple-color arrays. It can also be used for data
9290 from other technologies, as long as they have similar format. The method uses
9291 a robust variant of the maximum-likelihood estimator for an
9292 additive-multiplicative error model and affine calibration. The model
9293 incorporates data calibration step (a.k.a. normalization), a model for the
9294 dependence of the variance on the mean intensity and a variance stabilizing
9295 data transformation. Differences between transformed intensities are
9296 analogous to \"normalized log-ratios\". However, in contrast to the latter,
9297 their variance is independent of the mean, and they are usually more sensitive
9298 and specific in detecting differential transcription.")
9299 (license license:artistic2.0)))
9300
9301 (define-public r-mzid
9302 (package
9303 (name "r-mzid")
9304 (version "1.20.1")
9305 (source
9306 (origin
9307 (method url-fetch)
9308 (uri (bioconductor-uri "mzID" version))
9309 (sha256
9310 (base32
9311 "15yd4bdxprw3kg7zj2k652y3yr3si781iw28jqvnkm0gsc23rd0c"))))
9312 (properties `((upstream-name . "mzID")))
9313 (build-system r-build-system)
9314 (propagated-inputs
9315 `(("r-doparallel" ,r-doparallel)
9316 ("r-foreach" ,r-foreach)
9317 ("r-iterators" ,r-iterators)
9318 ("r-plyr" ,r-plyr)
9319 ("r-protgenerics" ,r-protgenerics)
9320 ("r-rcpp" ,r-rcpp)
9321 ("r-xml" ,r-xml)))
9322 (home-page "https://bioconductor.org/packages/mzID")
9323 (synopsis "Parser for mzIdentML files")
9324 (description
9325 "This package provides a parser for mzIdentML files implemented using the
9326 XML package. The parser tries to be general and able to handle all types of
9327 mzIdentML files with the drawback of having less pretty output than a vendor
9328 specific parser.")
9329 (license license:gpl2+)))
9330
9331 (define-public r-pcamethods
9332 (package
9333 (name "r-pcamethods")
9334 (version "1.74.0")
9335 (source
9336 (origin
9337 (method url-fetch)
9338 (uri (bioconductor-uri "pcaMethods" version))
9339 (sha256
9340 (base32
9341 "0ik82s9bsdj4a1mmv0a3k6yisa92mxx7maf3dvip1r8gqlm3dyng"))))
9342 (properties `((upstream-name . "pcaMethods")))
9343 (build-system r-build-system)
9344 (propagated-inputs
9345 `(("r-biobase" ,r-biobase)
9346 ("r-biocgenerics" ,r-biocgenerics)
9347 ("r-mass" ,r-mass)
9348 ("r-rcpp" ,r-rcpp)))
9349 (home-page "https://github.com/hredestig/pcamethods")
9350 (synopsis "Collection of PCA methods")
9351 (description
9352 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9353 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9354 for missing value estimation is included for comparison. BPCA, PPCA and
9355 NipalsPCA may be used to perform PCA on incomplete data as well as for
9356 accurate missing value estimation. A set of methods for printing and plotting
9357 the results is also provided. All PCA methods make use of the same data
9358 structure (pcaRes) to provide a common interface to the PCA results.")
9359 (license license:gpl3+)))
9360
9361 (define-public r-msnbase
9362 (package
9363 (name "r-msnbase")
9364 (version "2.8.3")
9365 (source
9366 (origin
9367 (method url-fetch)
9368 (uri (bioconductor-uri "MSnbase" version))
9369 (sha256
9370 (base32
9371 "1kl1d7byphnfpmbl5fzbgs68dxskhpsdyx7ka51bpfn0nv3pp492"))))
9372 (properties `((upstream-name . "MSnbase")))
9373 (build-system r-build-system)
9374 (propagated-inputs
9375 `(("r-affy" ,r-affy)
9376 ("r-biobase" ,r-biobase)
9377 ("r-biocgenerics" ,r-biocgenerics)
9378 ("r-biocparallel" ,r-biocparallel)
9379 ("r-digest" ,r-digest)
9380 ("r-ggplot2" ,r-ggplot2)
9381 ("r-impute" ,r-impute)
9382 ("r-iranges" ,r-iranges)
9383 ("r-lattice" ,r-lattice)
9384 ("r-maldiquant" ,r-maldiquant)
9385 ("r-mass" ,r-mass)
9386 ("r-mzid" ,r-mzid)
9387 ("r-mzr" ,r-mzr)
9388 ("r-pcamethods" ,r-pcamethods)
9389 ("r-plyr" ,r-plyr)
9390 ("r-preprocesscore" ,r-preprocesscore)
9391 ("r-protgenerics" ,r-protgenerics)
9392 ("r-rcpp" ,r-rcpp)
9393 ("r-s4vectors" ,r-s4vectors)
9394 ("r-scales" ,r-scales)
9395 ("r-vsn" ,r-vsn)
9396 ("r-xml" ,r-xml)))
9397 (home-page "https://github.com/lgatto/MSnbase")
9398 (synopsis "Base functions and classes for MS-based proteomics")
9399 (description
9400 "This package provides basic plotting, data manipulation and processing
9401 of mass spectrometry based proteomics data.")
9402 (license license:artistic2.0)))
9403
9404 (define-public r-msnid
9405 (package
9406 (name "r-msnid")
9407 (version "1.16.1")
9408 (source
9409 (origin
9410 (method url-fetch)
9411 (uri (bioconductor-uri "MSnID" version))
9412 (sha256
9413 (base32
9414 "077n6ljcnnl7q4w0qj8v46vm4sjk9vzzfqf7wsc6lz0wmyzqdng3"))))
9415 (properties `((upstream-name . "MSnID")))
9416 (build-system r-build-system)
9417 (propagated-inputs
9418 `(("r-biobase" ,r-biobase)
9419 ("r-data-table" ,r-data-table)
9420 ("r-doparallel" ,r-doparallel)
9421 ("r-dplyr" ,r-dplyr)
9422 ("r-foreach" ,r-foreach)
9423 ("r-iterators" ,r-iterators)
9424 ("r-msnbase" ,r-msnbase)
9425 ("r-mzid" ,r-mzid)
9426 ("r-mzr" ,r-mzr)
9427 ("r-protgenerics" ,r-protgenerics)
9428 ("r-r-cache" ,r-r-cache)
9429 ("r-rcpp" ,r-rcpp)
9430 ("r-reshape2" ,r-reshape2)))
9431 (home-page "https://bioconductor.org/packages/MSnID")
9432 (synopsis "Utilities for LC-MSn proteomics identifications")
9433 (description
9434 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9435 from mzIdentML (leveraging the mzID package) or text files. After collating
9436 the search results from multiple datasets it assesses their identification
9437 quality and optimize filtering criteria to achieve the maximum number of
9438 identifications while not exceeding a specified false discovery rate. It also
9439 contains a number of utilities to explore the MS/MS results and assess missed
9440 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
9441 (license license:artistic2.0)))
9442
9443 (define-public r-seurat
9444 (package
9445 (name "r-seurat")
9446 (version "3.0.0")
9447 (source (origin
9448 (method url-fetch)
9449 (uri (cran-uri "Seurat" version))
9450 (sha256
9451 (base32
9452 "183lm2wk0i3g114jbdf7pb4ssizr48qzqv3cknbsiackr8kvpsvc"))))
9453 (properties `((upstream-name . "Seurat")))
9454 (build-system r-build-system)
9455 (propagated-inputs
9456 `(("r-ape" ,r-ape)
9457 ("r-cluster" ,r-cluster)
9458 ("r-cowplot" ,r-cowplot)
9459 ("r-fitdistrplus" ,r-fitdistrplus)
9460 ("r-future" ,r-future)
9461 ("r-future-apply" ,r-future-apply)
9462 ("r-ggplot2" ,r-ggplot2)
9463 ("r-ggrepel" ,r-ggrepel)
9464 ("r-ggridges" ,r-ggridges)
9465 ("r-ica" ,r-ica)
9466 ("r-igraph" ,r-igraph)
9467 ("r-irlba" ,r-irlba)
9468 ("r-kernsmooth" ,r-kernsmooth)
9469 ("r-lmtest" ,r-lmtest)
9470 ("r-mass" ,r-mass)
9471 ("r-matrix" ,r-matrix)
9472 ("r-metap" ,r-metap)
9473 ("r-pbapply" ,r-pbapply)
9474 ("r-plotly" ,r-plotly)
9475 ("r-png" ,r-png)
9476 ("r-rann" ,r-rann)
9477 ("r-rcolorbrewer" ,r-rcolorbrewer)
9478 ("r-rcpp" ,r-rcpp)
9479 ("r-rcppeigen" ,r-rcppeigen)
9480 ("r-rcppprogress" ,r-rcppprogress)
9481 ("r-reticulate" ,r-reticulate)
9482 ("r-rlang" ,r-rlang)
9483 ("r-rocr" ,r-rocr)
9484 ("r-rsvd" ,r-rsvd)
9485 ("r-rtsne" ,r-rtsne)
9486 ("r-scales" ,r-scales)
9487 ("r-sctransform" ,r-sctransform)
9488 ("r-sdmtools" ,r-sdmtools)
9489 ("r-tsne" ,r-tsne)))
9490 (home-page "http://www.satijalab.org/seurat")
9491 (synopsis "Seurat is an R toolkit for single cell genomics")
9492 (description
9493 "This package is an R package designed for QC, analysis, and
9494 exploration of single cell RNA-seq data. It easily enables widely-used
9495 analytical techniques, including the identification of highly variable genes,
9496 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9497 algorithms; density clustering, hierarchical clustering, k-means, and the
9498 discovery of differentially expressed genes and markers.")
9499 (license license:gpl3)))
9500
9501 (define-public r-aroma-light
9502 (package
9503 (name "r-aroma-light")
9504 (version "3.12.0")
9505 (source
9506 (origin
9507 (method url-fetch)
9508 (uri (bioconductor-uri "aroma.light" version))
9509 (sha256
9510 (base32
9511 "0vfifgpqxjjncbiv6gvlk9jmj14j90r9f30bqk3ks9v1csjnjhrb"))))
9512 (properties `((upstream-name . "aroma.light")))
9513 (build-system r-build-system)
9514 (propagated-inputs
9515 `(("r-matrixstats" ,r-matrixstats)
9516 ("r-r-methodss3" ,r-r-methodss3)
9517 ("r-r-oo" ,r-r-oo)
9518 ("r-r-utils" ,r-r-utils)))
9519 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9520 (synopsis "Methods for normalization and visualization of microarray data")
9521 (description
9522 "This package provides methods for microarray analysis that take basic
9523 data types such as matrices and lists of vectors. These methods can be used
9524 standalone, be utilized in other packages, or be wrapped up in higher-level
9525 classes.")
9526 (license license:gpl2+)))
9527
9528 (define-public r-deseq
9529 (package
9530 (name "r-deseq")
9531 (version "1.34.1")
9532 (source
9533 (origin
9534 (method url-fetch)
9535 (uri (bioconductor-uri "DESeq" version))
9536 (sha256
9537 (base32
9538 "0bpiixczbhlyaiinpbl6xrpmv72k2bq76bxnw06gl35m4pgs94p2"))))
9539 (properties `((upstream-name . "DESeq")))
9540 (build-system r-build-system)
9541 (propagated-inputs
9542 `(("r-biobase" ,r-biobase)
9543 ("r-biocgenerics" ,r-biocgenerics)
9544 ("r-genefilter" ,r-genefilter)
9545 ("r-geneplotter" ,r-geneplotter)
9546 ("r-lattice" ,r-lattice)
9547 ("r-locfit" ,r-locfit)
9548 ("r-mass" ,r-mass)
9549 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9550 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9551 (synopsis "Differential gene expression analysis")
9552 (description
9553 "This package provides tools for estimating variance-mean dependence in
9554 count data from high-throughput genetic sequencing assays and for testing for
9555 differential expression based on a model using the negative binomial
9556 distribution.")
9557 (license license:gpl3+)))
9558
9559 (define-public r-edaseq
9560 (package
9561 (name "r-edaseq")
9562 (version "2.16.3")
9563 (source
9564 (origin
9565 (method url-fetch)
9566 (uri (bioconductor-uri "EDASeq" version))
9567 (sha256
9568 (base32
9569 "0559ph606ps2g9bwbl0a2knkcs5w581n9igngpjxvk5p56k24gb5"))))
9570 (properties `((upstream-name . "EDASeq")))
9571 (build-system r-build-system)
9572 (propagated-inputs
9573 `(("r-annotationdbi" ,r-annotationdbi)
9574 ("r-aroma-light" ,r-aroma-light)
9575 ("r-biobase" ,r-biobase)
9576 ("r-biocgenerics" ,r-biocgenerics)
9577 ("r-biocmanager" ,r-biocmanager)
9578 ("r-biomart" ,r-biomart)
9579 ("r-biostrings" ,r-biostrings)
9580 ("r-deseq" ,r-deseq)
9581 ("r-genomicfeatures" ,r-genomicfeatures)
9582 ("r-genomicranges" ,r-genomicranges)
9583 ("r-iranges" ,r-iranges)
9584 ("r-rsamtools" ,r-rsamtools)
9585 ("r-shortread" ,r-shortread)))
9586 (home-page "https://github.com/drisso/EDASeq")
9587 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9588 (description
9589 "This package provides support for numerical and graphical summaries of
9590 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9591 adjust for GC-content effect (or other gene-level effects) on read counts:
9592 loess robust local regression, global-scaling, and full-quantile
9593 normalization. Between-lane normalization procedures to adjust for
9594 distributional differences between lanes (e.g., sequencing depth):
9595 global-scaling and full-quantile normalization.")
9596 (license license:artistic2.0)))
9597
9598 (define-public r-interactivedisplaybase
9599 (package
9600 (name "r-interactivedisplaybase")
9601 (version "1.20.0")
9602 (source
9603 (origin
9604 (method url-fetch)
9605 (uri (bioconductor-uri "interactiveDisplayBase" version))
9606 (sha256
9607 (base32
9608 "04xz3dkwan2s5ic1mwkdfnggm0l41mgqfagx160bcsrpkw6z7ark"))))
9609 (properties
9610 `((upstream-name . "interactiveDisplayBase")))
9611 (build-system r-build-system)
9612 (propagated-inputs
9613 `(("r-biocgenerics" ,r-biocgenerics)
9614 ("r-shiny" ,r-shiny)))
9615 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
9616 (synopsis "Base package for web displays of Bioconductor objects")
9617 (description
9618 "This package contains the basic methods needed to generate interactive
9619 Shiny-based display methods for Bioconductor objects.")
9620 (license license:artistic2.0)))
9621
9622 (define-public r-annotationhub
9623 (package
9624 (name "r-annotationhub")
9625 (version "2.14.5")
9626 (source
9627 (origin
9628 (method url-fetch)
9629 (uri (bioconductor-uri "AnnotationHub" version))
9630 (sha256
9631 (base32
9632 "0iyrxaijl4614iz5c1j53227xy2g756p3bx7hcwglcybh0k30nki"))))
9633 (properties `((upstream-name . "AnnotationHub")))
9634 (build-system r-build-system)
9635 (propagated-inputs
9636 `(("r-annotationdbi" ,r-annotationdbi)
9637 ("r-biocgenerics" ,r-biocgenerics)
9638 ("r-biocmanager" ,r-biocmanager)
9639 ("r-curl" ,r-curl)
9640 ("r-httr" ,r-httr)
9641 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
9642 ("r-rsqlite" ,r-rsqlite)
9643 ("r-s4vectors" ,r-s4vectors)
9644 ("r-yaml" ,r-yaml)))
9645 (home-page "https://bioconductor.org/packages/AnnotationHub")
9646 (synopsis "Client to access AnnotationHub resources")
9647 (description
9648 "This package provides a client for the Bioconductor AnnotationHub web
9649 resource. The AnnotationHub web resource provides a central location where
9650 genomic files (e.g. VCF, bed, wig) and other resources from standard
9651 locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
9652 metadata about each resource, e.g., a textual description, tags, and date of
9653 modification. The client creates and manages a local cache of files retrieved
9654 by the user, helping with quick and reproducible access.")
9655 (license license:artistic2.0)))
9656
9657 (define-public r-fastseg
9658 (package
9659 (name "r-fastseg")
9660 (version "1.28.0")
9661 (source
9662 (origin
9663 (method url-fetch)
9664 (uri (bioconductor-uri "fastseg" version))
9665 (sha256
9666 (base32
9667 "1l8mdjpfpgwqdss2ywjkb8b4h55wf8v6kmyxdlvy04ds2hj16sb1"))))
9668 (build-system r-build-system)
9669 (propagated-inputs
9670 `(("r-biobase" ,r-biobase)
9671 ("r-biocgenerics" ,r-biocgenerics)
9672 ("r-genomicranges" ,r-genomicranges)
9673 ("r-iranges" ,r-iranges)
9674 ("r-s4vectors" ,r-s4vectors)))
9675 (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
9676 (synopsis "Fast segmentation algorithm for genetic sequencing data")
9677 (description
9678 "Fastseg implements a very fast and efficient segmentation algorithm.
9679 It can segment data from DNA microarrays and data from next generation
9680 sequencing for example to detect copy number segments. Further it can segment
9681 data from RNA microarrays like tiling arrays to identify transcripts. Most
9682 generally, it can segment data given as a matrix or as a vector. Various data
9683 formats can be used as input to fastseg like expression set objects for
9684 microarrays or GRanges for sequencing data.")
9685 (license license:lgpl2.0+)))
9686
9687 (define-public r-keggrest
9688 (package
9689 (name "r-keggrest")
9690 (version "1.22.0")
9691 (source
9692 (origin
9693 (method url-fetch)
9694 (uri (bioconductor-uri "KEGGREST" version))
9695 (sha256
9696 (base32
9697 "0blpd5a7whd2sswfhqd17h58hg06ymaf80gapdr9ja43hnnlj309"))))
9698 (properties `((upstream-name . "KEGGREST")))
9699 (build-system r-build-system)
9700 (propagated-inputs
9701 `(("r-biostrings" ,r-biostrings)
9702 ("r-httr" ,r-httr)
9703 ("r-png" ,r-png)))
9704 (home-page "https://bioconductor.org/packages/KEGGREST")
9705 (synopsis "Client-side REST access to KEGG")
9706 (description
9707 "This package provides a package that provides a client interface to the
9708 @dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
9709 (license license:artistic2.0)))
9710
9711 (define-public r-gage
9712 (package
9713 (name "r-gage")
9714 (version "2.32.1")
9715 (source
9716 (origin
9717 (method url-fetch)
9718 (uri (bioconductor-uri "gage" version))
9719 (sha256
9720 (base32
9721 "02g796sb1800ff0f1mq9f2m5wwzpf8pnfzajs49i68dhq2hm01a8"))))
9722 (build-system r-build-system)
9723 (propagated-inputs
9724 `(("r-annotationdbi" ,r-annotationdbi)
9725 ("r-graph" ,r-graph)
9726 ("r-keggrest" ,r-keggrest)))
9727 (home-page "http://www.biomedcentral.com/1471-2105/10/161")
9728 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
9729 (description
9730 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
9731 analysis. GAGE is generally applicable independent of microarray or RNA-Seq
9732 data attributes including sample sizes, experimental designs, assay platforms,
9733 and other types of heterogeneity. The gage package provides functions for
9734 basic GAGE analysis, result processing and presentation. In addition, it
9735 provides demo microarray data and commonly used gene set data based on KEGG
9736 pathways and GO terms. These funtions and data are also useful for gene set
9737 analysis using other methods.")
9738 (license license:gpl2+)))
9739
9740 (define-public r-genomicfiles
9741 (package
9742 (name "r-genomicfiles")
9743 (version "1.18.0")
9744 (source
9745 (origin
9746 (method url-fetch)
9747 (uri (bioconductor-uri "GenomicFiles" version))
9748 (sha256
9749 (base32
9750 "0qf2yj4lfnnk64fk125n8sqms01shfqiik04nasx2z3k129ykpxp"))))
9751 (properties `((upstream-name . "GenomicFiles")))
9752 (build-system r-build-system)
9753 (propagated-inputs
9754 `(("r-biocgenerics" ,r-biocgenerics)
9755 ("r-biocparallel" ,r-biocparallel)
9756 ("r-genomeinfodb" ,r-genomeinfodb)
9757 ("r-genomicalignments" ,r-genomicalignments)
9758 ("r-genomicranges" ,r-genomicranges)
9759 ("r-iranges" ,r-iranges)
9760 ("r-rsamtools" ,r-rsamtools)
9761 ("r-rtracklayer" ,r-rtracklayer)
9762 ("r-s4vectors" ,r-s4vectors)
9763 ("r-summarizedexperiment" ,r-summarizedexperiment)
9764 ("r-variantannotation" ,r-variantannotation)))
9765 (home-page "https://bioconductor.org/packages/GenomicFiles")
9766 (synopsis "Distributed computing by file or by range")
9767 (description
9768 "This package provides infrastructure for parallel computations
9769 distributed by file or by range. User defined mapper and reducer functions
9770 provide added flexibility for data combination and manipulation.")
9771 (license license:artistic2.0)))
9772
9773 (define-public r-complexheatmap
9774 (package
9775 (name "r-complexheatmap")
9776 (version "1.20.0")
9777 (source
9778 (origin
9779 (method url-fetch)
9780 (uri (bioconductor-uri "ComplexHeatmap" version))
9781 (sha256
9782 (base32
9783 "0s01dzcfj1lmpqfpsbqw7r4858krfzy499lz4cwx4fq3mbyvy2aj"))))
9784 (properties
9785 `((upstream-name . "ComplexHeatmap")))
9786 (build-system r-build-system)
9787 (propagated-inputs
9788 `(("r-circlize" ,r-circlize)
9789 ("r-colorspace" ,r-colorspace)
9790 ("r-getoptlong" ,r-getoptlong)
9791 ("r-globaloptions" ,r-globaloptions)
9792 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9793 (home-page
9794 "https://github.com/jokergoo/ComplexHeatmap")
9795 (synopsis "Making Complex Heatmaps")
9796 (description
9797 "Complex heatmaps are efficient to visualize associations between
9798 different sources of data sets and reveal potential structures. This package
9799 provides a highly flexible way to arrange multiple heatmaps and supports
9800 self-defined annotation graphics.")
9801 (license license:gpl2+)))
9802
9803 (define-public r-dirichletmultinomial
9804 (package
9805 (name "r-dirichletmultinomial")
9806 (version "1.24.1")
9807 (source
9808 (origin
9809 (method url-fetch)
9810 (uri (bioconductor-uri "DirichletMultinomial" version))
9811 (sha256
9812 (base32
9813 "0vazfjzqy78p5g7dnv30lbqbj4bhq4zafd2wh6gdwy2il1fd78xa"))))
9814 (properties
9815 `((upstream-name . "DirichletMultinomial")))
9816 (build-system r-build-system)
9817 (inputs
9818 `(("gsl" ,gsl)))
9819 (propagated-inputs
9820 `(("r-biocgenerics" ,r-biocgenerics)
9821 ("r-iranges" ,r-iranges)
9822 ("r-s4vectors" ,r-s4vectors)))
9823 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
9824 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
9825 (description
9826 "Dirichlet-multinomial mixture models can be used to describe variability
9827 in microbial metagenomic data. This package is an interface to code
9828 originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
9829 1-15.")
9830 (license license:lgpl3)))
9831
9832 (define-public r-ensembldb
9833 (package
9834 (name "r-ensembldb")
9835 (version "2.6.8")
9836 (source
9837 (origin
9838 (method url-fetch)
9839 (uri (bioconductor-uri "ensembldb" version))
9840 (sha256
9841 (base32
9842 "0gijx2l2y00h6gfj3gfr7rd4vva6qf2vkfdfy5gdmvqlxy84ka38"))))
9843 (build-system r-build-system)
9844 (propagated-inputs
9845 `(("r-annotationdbi" ,r-annotationdbi)
9846 ("r-annotationfilter" ,r-annotationfilter)
9847 ("r-biobase" ,r-biobase)
9848 ("r-biocgenerics" ,r-biocgenerics)
9849 ("r-biostrings" ,r-biostrings)
9850 ("r-curl" ,r-curl)
9851 ("r-dbi" ,r-dbi)
9852 ("r-genomeinfodb" ,r-genomeinfodb)
9853 ("r-genomicfeatures" ,r-genomicfeatures)
9854 ("r-genomicranges" ,r-genomicranges)
9855 ("r-iranges" ,r-iranges)
9856 ("r-protgenerics" ,r-protgenerics)
9857 ("r-rsamtools" ,r-rsamtools)
9858 ("r-rsqlite" ,r-rsqlite)
9859 ("r-rtracklayer" ,r-rtracklayer)
9860 ("r-s4vectors" ,r-s4vectors)))
9861 (home-page "https://github.com/jotsetung/ensembldb")
9862 (synopsis "Utilities to create and use Ensembl-based annotation databases")
9863 (description
9864 "The package provides functions to create and use transcript-centric
9865 annotation databases/packages. The annotation for the databases are directly
9866 fetched from Ensembl using their Perl API. The functionality and data is
9867 similar to that of the TxDb packages from the @code{GenomicFeatures} package,
9868 but, in addition to retrieve all gene/transcript models and annotations from
9869 the database, the @code{ensembldb} package also provides a filter framework
9870 allowing to retrieve annotations for specific entries like genes encoded on a
9871 chromosome region or transcript models of lincRNA genes.")
9872 ;; No version specified
9873 (license license:lgpl3+)))
9874
9875 (define-public r-organismdbi
9876 (package
9877 (name "r-organismdbi")
9878 (version "1.24.0")
9879 (source
9880 (origin
9881 (method url-fetch)
9882 (uri (bioconductor-uri "OrganismDbi" version))
9883 (sha256
9884 (base32
9885 "11pyv56cy4iy095h40k6k0mpjdlh6gsb4ld3s57nfa9nd4ypx3yi"))))
9886 (properties `((upstream-name . "OrganismDbi")))
9887 (build-system r-build-system)
9888 (propagated-inputs
9889 `(("r-annotationdbi" ,r-annotationdbi)
9890 ("r-biobase" ,r-biobase)
9891 ("r-biocgenerics" ,r-biocgenerics)
9892 ("r-biocmanager" ,r-biocmanager)
9893 ("r-dbi" ,r-dbi)
9894 ("r-genomicfeatures" ,r-genomicfeatures)
9895 ("r-genomicranges" ,r-genomicranges)
9896 ("r-graph" ,r-graph)
9897 ("r-iranges" ,r-iranges)
9898 ("r-rbgl" ,r-rbgl)
9899 ("r-s4vectors" ,r-s4vectors)))
9900 (home-page "https://bioconductor.org/packages/OrganismDbi")
9901 (synopsis "Software to enable the smooth interfacing of database packages")
9902 (description "The package enables a simple unified interface to several
9903 annotation packages each of which has its own schema by taking advantage of
9904 the fact that each of these packages implements a select methods.")
9905 (license license:artistic2.0)))
9906
9907 (define-public r-biovizbase
9908 (package
9909 (name "r-biovizbase")
9910 (version "1.30.1")
9911 (source
9912 (origin
9913 (method url-fetch)
9914 (uri (bioconductor-uri "biovizBase" version))
9915 (sha256
9916 (base32
9917 "0v5gvcx180qn5487i1dph9abadw3ggqwp5yzy41jswzbdc8q6sbm"))))
9918 (properties `((upstream-name . "biovizBase")))
9919 (build-system r-build-system)
9920 (propagated-inputs
9921 `(("r-annotationdbi" ,r-annotationdbi)
9922 ("r-annotationfilter" ,r-annotationfilter)
9923 ("r-biocgenerics" ,r-biocgenerics)
9924 ("r-biostrings" ,r-biostrings)
9925 ("r-dichromat" ,r-dichromat)
9926 ("r-ensembldb" ,r-ensembldb)
9927 ("r-genomeinfodb" ,r-genomeinfodb)
9928 ("r-genomicalignments" ,r-genomicalignments)
9929 ("r-genomicfeatures" ,r-genomicfeatures)
9930 ("r-genomicranges" ,r-genomicranges)
9931 ("r-hmisc" ,r-hmisc)
9932 ("r-iranges" ,r-iranges)
9933 ("r-rcolorbrewer" ,r-rcolorbrewer)
9934 ("r-rlang" ,r-rlang)
9935 ("r-rsamtools" ,r-rsamtools)
9936 ("r-s4vectors" ,r-s4vectors)
9937 ("r-scales" ,r-scales)
9938 ("r-summarizedexperiment" ,r-summarizedexperiment)
9939 ("r-variantannotation" ,r-variantannotation)))
9940 (home-page "https://bioconductor.org/packages/biovizBase")
9941 (synopsis "Basic graphic utilities for visualization of genomic data")
9942 (description
9943 "The biovizBase package is designed to provide a set of utilities, color
9944 schemes and conventions for genomic data. It serves as the base for various
9945 high-level packages for biological data visualization. This saves development
9946 effort and encourages consistency.")
9947 (license license:artistic2.0)))
9948
9949 (define-public r-ggbio
9950 (package
9951 (name "r-ggbio")
9952 (version "1.30.0")
9953 (source
9954 (origin
9955 (method url-fetch)
9956 (uri (bioconductor-uri "ggbio" version))
9957 (sha256
9958 (base32
9959 "0wq49qqzkcn8s19xgaxf2s1j1a563d7pbhhvris6fhxfdjsz4934"))))
9960 (build-system r-build-system)
9961 (arguments
9962 `(#:phases
9963 (modify-phases %standard-phases
9964 ;; See https://github.com/tengfei/ggbio/issues/117
9965 ;; This fix will be included in the next release.
9966 (add-after 'unpack 'fix-typo
9967 (lambda _
9968 (substitute* "R/GGbio-class.R"
9969 (("fechable") "fetchable"))
9970 #t)))))
9971 (propagated-inputs
9972 `(("r-annotationdbi" ,r-annotationdbi)
9973 ("r-annotationfilter" ,r-annotationfilter)
9974 ("r-biobase" ,r-biobase)
9975 ("r-biocgenerics" ,r-biocgenerics)
9976 ("r-biostrings" ,r-biostrings)
9977 ("r-biovizbase" ,r-biovizbase)
9978 ("r-bsgenome" ,r-bsgenome)
9979 ("r-ensembldb" ,r-ensembldb)
9980 ("r-genomeinfodb" ,r-genomeinfodb)
9981 ("r-genomicalignments" ,r-genomicalignments)
9982 ("r-genomicfeatures" ,r-genomicfeatures)
9983 ("r-genomicranges" ,r-genomicranges)
9984 ("r-ggally" ,r-ggally)
9985 ("r-ggplot2" ,r-ggplot2)
9986 ("r-gridextra" ,r-gridextra)
9987 ("r-gtable" ,r-gtable)
9988 ("r-hmisc" ,r-hmisc)
9989 ("r-iranges" ,r-iranges)
9990 ("r-organismdbi" ,r-organismdbi)
9991 ("r-reshape2" ,r-reshape2)
9992 ("r-rlang" ,r-rlang)
9993 ("r-rsamtools" ,r-rsamtools)
9994 ("r-rtracklayer" ,r-rtracklayer)
9995 ("r-s4vectors" ,r-s4vectors)
9996 ("r-scales" ,r-scales)
9997 ("r-summarizedexperiment" ,r-summarizedexperiment)
9998 ("r-variantannotation" ,r-variantannotation)))
9999 (home-page "http://www.tengfei.name/ggbio/")
10000 (synopsis "Visualization tools for genomic data")
10001 (description
10002 "The ggbio package extends and specializes the grammar of graphics for
10003 biological data. The graphics are designed to answer common scientific
10004 questions, in particular those often asked of high throughput genomics data.
10005 All core Bioconductor data structures are supported, where appropriate. The
10006 package supports detailed views of particular genomic regions, as well as
10007 genome-wide overviews. Supported overviews include ideograms and grand linear
10008 views. High-level plots include sequence fragment length, edge-linked
10009 interval to data view, mismatch pileup, and several splicing summaries.")
10010 (license license:artistic2.0)))
10011
10012 (define-public r-gprofiler
10013 (package
10014 (name "r-gprofiler")
10015 (version "0.6.7")
10016 (source
10017 (origin
10018 (method url-fetch)
10019 (uri (cran-uri "gProfileR" version))
10020 (sha256
10021 (base32
10022 "12nwidbnqmnfy5dnqga26byslvdnkrpz2fi19qfcby6xx0wbndk7"))))
10023 (properties `((upstream-name . "gProfileR")))
10024 (build-system r-build-system)
10025 (propagated-inputs
10026 `(("r-plyr" ,r-plyr)
10027 ("r-rcurl" ,r-rcurl)))
10028 (home-page "https://cran.r-project.org/web/packages/gProfileR/")
10029 (synopsis "Interface to the g:Profiler toolkit")
10030 (description
10031 "This package provides tools for functional enrichment analysis,
10032 gene identifier conversion and mapping homologous genes across related
10033 organisms via the @code{g:Profiler} toolkit.")
10034 (license license:gpl2+)))
10035
10036 (define-public r-gqtlbase
10037 (package
10038 (name "r-gqtlbase")
10039 (version "1.14.0")
10040 (source
10041 (origin
10042 (method url-fetch)
10043 (uri (bioconductor-uri "gQTLBase" version))
10044 (sha256
10045 (base32
10046 "1lbk1m1mkvbk30flk5pf3pcrnm2s0sj5r48kbjgad39dsvd8zgqx"))))
10047 (properties `((upstream-name . "gQTLBase")))
10048 (build-system r-build-system)
10049 (propagated-inputs
10050 `(("r-batchjobs" ,r-batchjobs)
10051 ("r-bbmisc" ,r-bbmisc)
10052 ("r-biocgenerics" ,r-biocgenerics)
10053 ("r-bit" ,r-bit)
10054 ("r-doparallel" ,r-doparallel)
10055 ("r-ff" ,r-ff)
10056 ("r-ffbase" ,r-ffbase)
10057 ("r-foreach" ,r-foreach)
10058 ("r-genomicfiles" ,r-genomicfiles)
10059 ("r-genomicranges" ,r-genomicranges)
10060 ("r-rtracklayer" ,r-rtracklayer)
10061 ("r-s4vectors" ,r-s4vectors)
10062 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10063 (home-page "https://bioconductor.org/packages/gQTLBase")
10064 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10065 (description
10066 "The purpose of this package is to simplify the storage and interrogation
10067 of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10068 and more.")
10069 (license license:artistic2.0)))
10070
10071 (define-public r-snpstats
10072 (package
10073 (name "r-snpstats")
10074 (version "1.32.0")
10075 (source
10076 (origin
10077 (method url-fetch)
10078 (uri (bioconductor-uri "snpStats" version))
10079 (sha256
10080 (base32
10081 "1pplx4pf9bqi7v5v1l74yknc1s61carvbqkf327ky7vbvp0bck33"))))
10082 (properties `((upstream-name . "snpStats")))
10083 (build-system r-build-system)
10084 (inputs `(("zlib" ,zlib)))
10085 (propagated-inputs
10086 `(("r-biocgenerics" ,r-biocgenerics)
10087 ("r-matrix" ,r-matrix)
10088 ("r-survival" ,r-survival)
10089 ("r-zlibbioc" ,r-zlibbioc)))
10090 (home-page "https://bioconductor.org/packages/snpStats")
10091 (synopsis "Methods for SNP association studies")
10092 (description
10093 "This package provides classes and statistical methods for large
10094 @dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10095 the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10096 (license license:gpl3)))
10097
10098 (define-public r-homo-sapiens
10099 (package
10100 (name "r-homo-sapiens")
10101 (version "1.3.1")
10102 (source (origin
10103 (method url-fetch)
10104 ;; We cannot use bioconductor-uri here because this tarball is
10105 ;; located under "data/annotation/" instead of "bioc/".
10106 (uri (string-append "http://www.bioconductor.org/packages/"
10107 "release/data/annotation/src/contrib/"
10108 "Homo.sapiens_"
10109 version ".tar.gz"))
10110 (sha256
10111 (base32
10112 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10113 (properties
10114 `((upstream-name . "Homo.sapiens")))
10115 (build-system r-build-system)
10116 (propagated-inputs
10117 `(("r-genomicfeatures" ,r-genomicfeatures)
10118 ("r-go-db" ,r-go-db)
10119 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10120 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10121 ("r-organismdbi" ,r-organismdbi)
10122 ("r-annotationdbi" ,r-annotationdbi)))
10123 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10124 (synopsis "Annotation package for the Homo.sapiens object")
10125 (description
10126 "This package contains the Homo.sapiens object to access data from
10127 several related annotation packages.")
10128 (license license:artistic2.0)))
10129
10130 (define-public r-erma
10131 (package
10132 (name "r-erma")
10133 (version "0.14.0")
10134 (source
10135 (origin
10136 (method url-fetch)
10137 (uri (bioconductor-uri "erma" version))
10138 (sha256
10139 (base32
10140 "0hj9iz904rr1y66442lkxjywkw1ydyxxlhmjirawbf09ic5ad4g9"))))
10141 (build-system r-build-system)
10142 (propagated-inputs
10143 `(("r-annotationdbi" ,r-annotationdbi)
10144 ("r-biobase" ,r-biobase)
10145 ("r-biocgenerics" ,r-biocgenerics)
10146 ("r-biocparallel" ,r-biocparallel)
10147 ("r-genomeinfodb" ,r-genomeinfodb)
10148 ("r-genomicfiles" ,r-genomicfiles)
10149 ("r-genomicranges" ,r-genomicranges)
10150 ("r-ggplot2" ,r-ggplot2)
10151 ("r-homo-sapiens" ,r-homo-sapiens)
10152 ("r-iranges" ,r-iranges)
10153 ("r-rtracklayer" ,r-rtracklayer)
10154 ("r-s4vectors" ,r-s4vectors)
10155 ("r-shiny" ,r-shiny)
10156 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10157 (home-page "https://bioconductor.org/packages/erma")
10158 (synopsis "Epigenomic road map adventures")
10159 (description
10160 "The epigenomics road map describes locations of epigenetic marks in DNA
10161 from a variety of cell types. Of interest are locations of histone
10162 modifications, sites of DNA methylation, and regions of accessible chromatin.
10163 This package presents a selection of elements of the road map including
10164 metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10165 by Ernst and Kellis.")
10166 (license license:artistic2.0)))
10167
10168 (define-public r-ldblock
10169 (package
10170 (name "r-ldblock")
10171 (version "1.12.1")
10172 (source
10173 (origin
10174 (method url-fetch)
10175 (uri (bioconductor-uri "ldblock" version))
10176 (sha256
10177 (base32
10178 "01lf74pby7si2g3kgc10qzr6lkcbigqcgqs2j3anc38vzxv0zhwv"))))
10179 (build-system r-build-system)
10180 (propagated-inputs
10181 `(("r-biocgenerics" ,r-biocgenerics)
10182 ("r-erma" ,r-erma)
10183 ("r-genomeinfodb" ,r-genomeinfodb)
10184 ("r-genomicfiles" ,r-genomicfiles)
10185 ("r-go-db" ,r-go-db)
10186 ("r-homo-sapiens" ,r-homo-sapiens)
10187 ("r-matrix" ,r-matrix)
10188 ("r-rsamtools" ,r-rsamtools)
10189 ("r-snpstats" ,r-snpstats)
10190 ("r-variantannotation" ,r-variantannotation)))
10191 (home-page "https://bioconductor.org/packages/ldblock")
10192 (synopsis "Data structures for linkage disequilibrium measures in populations")
10193 (description
10194 "This package defines data structures for @dfn{linkage
10195 disequilibrium} (LD) measures in populations. Its purpose is to simplify
10196 handling of existing population-level data for the purpose of flexibly
10197 defining LD blocks.")
10198 (license license:artistic2.0)))
10199
10200 (define-public r-gqtlstats
10201 (package
10202 (name "r-gqtlstats")
10203 (version "1.14.1")
10204 (source
10205 (origin
10206 (method url-fetch)
10207 (uri (bioconductor-uri "gQTLstats" version))
10208 (sha256
10209 (base32
10210 "1rkbnb3h02fdksc4nacqvmq4jgbj9fz4hm7j51yr2ggcgcykwraa"))))
10211 (properties `((upstream-name . "gQTLstats")))
10212 (build-system r-build-system)
10213 (propagated-inputs
10214 `(("r-annotationdbi" ,r-annotationdbi)
10215 ("r-batchjobs" ,r-batchjobs)
10216 ("r-bbmisc" ,r-bbmisc)
10217 ("r-beeswarm" ,r-beeswarm)
10218 ("r-biobase" ,r-biobase)
10219 ("r-biocgenerics" ,r-biocgenerics)
10220 ("r-doparallel" ,r-doparallel)
10221 ("r-dplyr" ,r-dplyr)
10222 ("r-erma" ,r-erma)
10223 ("r-ffbase" ,r-ffbase)
10224 ("r-foreach" ,r-foreach)
10225 ("r-genomeinfodb" ,r-genomeinfodb)
10226 ("r-genomicfeatures" ,r-genomicfeatures)
10227 ("r-genomicfiles" ,r-genomicfiles)
10228 ("r-genomicranges" ,r-genomicranges)
10229 ("r-ggbeeswarm" ,r-ggbeeswarm)
10230 ("r-ggplot2" ,r-ggplot2)
10231 ("r-gqtlbase" ,r-gqtlbase)
10232 ("r-hardyweinberg" ,r-hardyweinberg)
10233 ("r-homo-sapiens" ,r-homo-sapiens)
10234 ("r-iranges" ,r-iranges)
10235 ("r-limma" ,r-limma)
10236 ("r-mgcv" ,r-mgcv)
10237 ("r-plotly" ,r-plotly)
10238 ("r-reshape2" ,r-reshape2)
10239 ("r-s4vectors" ,r-s4vectors)
10240 ("r-shiny" ,r-shiny)
10241 ("r-snpstats" ,r-snpstats)
10242 ("r-summarizedexperiment" ,r-summarizedexperiment)
10243 ("r-variantannotation" ,r-variantannotation)))
10244 (home-page "https://bioconductor.org/packages/gQTLstats")
10245 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10246 (description
10247 "This package provides tools for the computationally efficient analysis
10248 of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10249 The software in this package aims to support refinements and functional
10250 interpretation of members of a collection of association statistics on a
10251 family of feature/genome hypotheses.")
10252 (license license:artistic2.0)))
10253
10254 (define-public r-gviz
10255 (package
10256 (name "r-gviz")
10257 (version "1.26.5")
10258 (source
10259 (origin
10260 (method url-fetch)
10261 (uri (bioconductor-uri "Gviz" version))
10262 (sha256
10263 (base32
10264 "1dpkcaar7qgzg3vgafvkplprhwmhzpb7ph009kr6ajm36hx4z81c"))))
10265 (properties `((upstream-name . "Gviz")))
10266 (build-system r-build-system)
10267 (propagated-inputs
10268 `(("r-annotationdbi" ,r-annotationdbi)
10269 ("r-biobase" ,r-biobase)
10270 ("r-biocgenerics" ,r-biocgenerics)
10271 ("r-biomart" ,r-biomart)
10272 ("r-biostrings" ,r-biostrings)
10273 ("r-biovizbase" ,r-biovizbase)
10274 ("r-bsgenome" ,r-bsgenome)
10275 ("r-digest" ,r-digest)
10276 ("r-genomeinfodb" ,r-genomeinfodb)
10277 ("r-genomicalignments" ,r-genomicalignments)
10278 ("r-genomicfeatures" ,r-genomicfeatures)
10279 ("r-genomicranges" ,r-genomicranges)
10280 ("r-iranges" ,r-iranges)
10281 ("r-lattice" ,r-lattice)
10282 ("r-latticeextra" ,r-latticeextra)
10283 ("r-matrixstats" ,r-matrixstats)
10284 ("r-rcolorbrewer" ,r-rcolorbrewer)
10285 ("r-rsamtools" ,r-rsamtools)
10286 ("r-rtracklayer" ,r-rtracklayer)
10287 ("r-s4vectors" ,r-s4vectors)
10288 ("r-xvector" ,r-xvector)))
10289 (home-page "https://bioconductor.org/packages/Gviz")
10290 (synopsis "Plotting data and annotation information along genomic coordinates")
10291 (description
10292 "Genomic data analyses requires integrated visualization of known genomic
10293 information and new experimental data. Gviz uses the biomaRt and the
10294 rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10295 and translates this to e.g. gene/transcript structures in viewports of the
10296 grid graphics package. This results in genomic information plotted together
10297 with your data.")
10298 (license license:artistic2.0)))
10299
10300 (define-public r-gwascat
10301 (package
10302 (name "r-gwascat")
10303 (version "2.14.0")
10304 (source
10305 (origin
10306 (method url-fetch)
10307 (uri (bioconductor-uri "gwascat" version))
10308 (sha256
10309 (base32
10310 "1fnyjydhicq4ayrv0lqjv48h9bd72h40s6l82g1h2ng0icwz38g0"))))
10311 (build-system r-build-system)
10312 (propagated-inputs
10313 `(("r-annotationdbi" ,r-annotationdbi)
10314 ("r-annotationhub" ,r-annotationhub)
10315 ("r-biocgenerics" ,r-biocgenerics)
10316 ("r-biostrings" ,r-biostrings)
10317 ("r-genomeinfodb" ,r-genomeinfodb)
10318 ("r-genomicfeatures" ,r-genomicfeatures)
10319 ("r-genomicranges" ,r-genomicranges)
10320 ("r-ggbio" ,r-ggbio)
10321 ("r-ggplot2" ,r-ggplot2)
10322 ("r-gqtlstats" ,r-gqtlstats)
10323 ("r-graph" ,r-graph)
10324 ("r-gviz" ,r-gviz)
10325 ("r-homo-sapiens" ,r-homo-sapiens)
10326 ("r-iranges" ,r-iranges)
10327 ("r-rsamtools" ,r-rsamtools)
10328 ("r-rtracklayer" ,r-rtracklayer)
10329 ("r-s4vectors" ,r-s4vectors)
10330 ("r-snpstats" ,r-snpstats)
10331 ("r-summarizedexperiment" ,r-summarizedexperiment)
10332 ("r-variantannotation" ,r-variantannotation)))
10333 (home-page "https://bioconductor.org/packages/gwascat")
10334 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10335 (description
10336 "This package provides tools for representing and modeling data in the
10337 EMBL-EBI GWAS catalog.")
10338 (license license:artistic2.0)))
10339
10340 (define-public r-sushi
10341 (package
10342 (name "r-sushi")
10343 (version "1.20.0")
10344 (source (origin
10345 (method url-fetch)
10346 (uri (bioconductor-uri "Sushi" version))
10347 (sha256
10348 (base32
10349 "0dv5di0hgbvk9cxnqhyf18mdjl50k6bk00a89r6zgp83rbxwr1r8"))))
10350 (properties `((upstream-name . "Sushi")))
10351 (build-system r-build-system)
10352 (propagated-inputs
10353 `(("r-biomart" ,r-biomart)
10354 ("r-zoo" ,r-zoo)))
10355 (home-page "https://bioconductor.org/packages/Sushi")
10356 (synopsis "Tools for visualizing genomics data")
10357 (description
10358 "This package provides flexible, quantitative, and integrative genomic
10359 visualizations for publication-quality multi-panel figures.")
10360 (license license:gpl2+)))
10361
10362 (define-public r-fithic
10363 (package
10364 (name "r-fithic")
10365 (version "1.8.0")
10366 (source (origin
10367 (method url-fetch)
10368 (uri (bioconductor-uri "FitHiC" version))
10369 (sha256
10370 (base32
10371 "15xd8mz7660q4zr9p74mq1pqps4iz7pxp8f9ifn21gwg94aq1avn"))))
10372 (properties `((upstream-name . "FitHiC")))
10373 (build-system r-build-system)
10374 (propagated-inputs
10375 `(("r-data-table" ,r-data-table)
10376 ("r-fdrtool" ,r-fdrtool)
10377 ("r-rcpp" ,r-rcpp)))
10378 (home-page "https://bioconductor.org/packages/FitHiC")
10379 (synopsis "Confidence estimation for intra-chromosomal contact maps")
10380 (description
10381 "Fit-Hi-C is a tool for assigning statistical confidence estimates to
10382 intra-chromosomal contact maps produced by genome-wide genome architecture
10383 assays such as Hi-C.")
10384 (license license:gpl2+)))
10385
10386 (define-public r-hitc
10387 (package
10388 (name "r-hitc")
10389 (version "1.26.0")
10390 (source (origin
10391 (method url-fetch)
10392 (uri (bioconductor-uri "HiTC" version))
10393 (sha256
10394 (base32
10395 "11f96k1707g6milpjgnrjf3b5r42hsrxhb5d8znkcr3y3mrskdbj"))))
10396 (properties `((upstream-name . "HiTC")))
10397 (build-system r-build-system)
10398 (propagated-inputs
10399 `(("r-biostrings" ,r-biostrings)
10400 ("r-genomeinfodb" ,r-genomeinfodb)
10401 ("r-genomicranges" ,r-genomicranges)
10402 ("r-iranges" ,r-iranges)
10403 ("r-matrix" ,r-matrix)
10404 ("r-rcolorbrewer" ,r-rcolorbrewer)
10405 ("r-rtracklayer" ,r-rtracklayer)))
10406 (home-page "https://bioconductor.org/packages/HiTC")
10407 (synopsis "High throughput chromosome conformation capture analysis")
10408 (description
10409 "The HiTC package was developed to explore high-throughput \"C\" data
10410 such as 5C or Hi-C. Dedicated R classes as well as standard methods for
10411 quality controls, normalization, visualization, and further analysis are also
10412 provided.")
10413 (license license:artistic2.0)))
10414
10415 (define-public r-hdf5array
10416 (package
10417 (name "r-hdf5array")
10418 (version "1.10.1")
10419 (source
10420 (origin
10421 (method url-fetch)
10422 (uri (bioconductor-uri "HDF5Array" version))
10423 (sha256
10424 (base32
10425 "1qwdsygcadl58qj598hfyvs8hp0hqcl9ghnhknahrlhmb7k2bd2d"))))
10426 (properties `((upstream-name . "HDF5Array")))
10427 (build-system r-build-system)
10428 (propagated-inputs
10429 `(("r-biocgenerics" ,r-biocgenerics)
10430 ("r-delayedarray" ,r-delayedarray)
10431 ("r-iranges" ,r-iranges)
10432 ("r-rhdf5" ,r-rhdf5)
10433 ("r-s4vectors" ,r-s4vectors)))
10434 (home-page "https://bioconductor.org/packages/HDF5Array")
10435 (synopsis "HDF5 back end for DelayedArray objects")
10436 (description "This package provides an array-like container for convenient
10437 access and manipulation of HDF5 datasets. It supports delayed operations and
10438 block processing.")
10439 (license license:artistic2.0)))
10440
10441 (define-public r-rhdf5lib
10442 (package
10443 (name "r-rhdf5lib")
10444 (version "1.4.3")
10445 (source
10446 (origin
10447 (method url-fetch)
10448 (uri (bioconductor-uri "Rhdf5lib" version))
10449 (sha256
10450 (base32
10451 "0hjhjvg2kss71fkmxlbgnyyy1agwzgq57rxkgkm4riw82x2rvw7q"))
10452 (modules '((guix build utils)))
10453 (snippet
10454 '(begin
10455 ;; Delete bundled binaries
10456 (delete-file-recursively "src/winlib/")
10457 #t))))
10458 (properties `((upstream-name . "Rhdf5lib")))
10459 (build-system r-build-system)
10460 (arguments
10461 `(#:phases
10462 (modify-phases %standard-phases
10463 (add-after 'unpack 'do-not-use-bundled-hdf5
10464 (lambda* (#:key inputs #:allow-other-keys)
10465 (for-each delete-file '("configure" "configure.ac"))
10466 ;; Do not make other packages link with the proprietary libsz.
10467 (substitute* "R/zzz.R"
10468 (("'%s/libhdf5_cpp.a %s/libhdf5.a %s/libsz.a -lz'")
10469 "'%s/libhdf5_cpp.a %s/libhdf5.a %s/libhdf5.a -lz'")
10470 (("'%s/libhdf5.a %s/libsz.a -lz'")
10471 "'%s/libhdf5.a %s/libhdf5.a -lz'"))
10472 (with-directory-excursion "src"
10473 (invoke "tar" "xvf" (assoc-ref inputs "hdf5-source"))
10474 (rename-file (string-append "hdf5-" ,(package-version hdf5-1.10))
10475 "hdf5")
10476 ;; Remove timestamp and host system information to make
10477 ;; the build reproducible.
10478 (substitute* "hdf5/src/libhdf5.settings.in"
10479 (("Configured on: @CONFIG_DATE@")
10480 "Configured on: Guix")
10481 (("Uname information:.*")
10482 "Uname information: Linux\n")
10483 ;; Remove unnecessary store reference.
10484 (("C Compiler:.*")
10485 "C Compiler: GCC\n"))
10486 (rename-file "Makevars.in" "Makevars")
10487 (substitute* "Makevars"
10488 (("HDF5_CXX_LIB=.*")
10489 (string-append "HDF5_CXX_LIB="
10490 (assoc-ref inputs "hdf5") "/lib/libhdf5_cpp.a\n"))
10491 (("HDF5_LIB=.*")
10492 (string-append "HDF5_LIB="
10493 (assoc-ref inputs "hdf5") "/lib/libhdf5.a\n"))
10494 (("HDF5_CXX_INCLUDE=.*") "HDF5_CXX_INCLUDE=./hdf5/c++/src\n")
10495 (("HDF5_INCLUDE=.*") "HDF5_INCLUDE=./hdf5/src\n")
10496 ;; szip is non-free software
10497 (("cp \\$\\{SZIP_LIB\\}.*") "")
10498 (("\\$\\{USER_LIB_DIR\\}libsz.a") "")))
10499 #t)))))
10500 (inputs
10501 `(("zlib" ,zlib)))
10502 (propagated-inputs
10503 `(("hdf5" ,hdf5-1.10)))
10504 (native-inputs
10505 `(("hdf5-source" ,(package-source hdf5-1.10))))
10506 (home-page "https://bioconductor.org/packages/Rhdf5lib")
10507 (synopsis "HDF5 library as an R package")
10508 (description "This package provides C and C++ HDF5 libraries for use in R
10509 packages.")
10510 (license license:artistic2.0)))
10511
10512 (define-public r-beachmat
10513 (package
10514 (name "r-beachmat")
10515 (version "1.4.0")
10516 (source
10517 (origin
10518 (method url-fetch)
10519 (uri (bioconductor-uri "beachmat" version))
10520 (sha256
10521 (base32
10522 "07zgmms0qg8gw7x0js46965bbhpfj2aa1h5ixdz9r332bxv9cdmr"))))
10523 (build-system r-build-system)
10524 (inputs
10525 `(("hdf5" ,hdf5)
10526 ("zlib" ,zlib)))
10527 (propagated-inputs
10528 `(("r-biocgenerics" ,r-biocgenerics)
10529 ("r-delayedarray" ,r-delayedarray)
10530 ("r-hdf5array" ,r-hdf5array)
10531 ("r-rcpp" ,r-rcpp)
10532 ("r-rhdf5" ,r-rhdf5)
10533 ("r-rhdf5lib" ,r-rhdf5lib)))
10534 (home-page "https://bioconductor.org/packages/beachmat")
10535 (synopsis "Compiling Bioconductor to handle each matrix type")
10536 (description "This package provides a consistent C++ class interface for a
10537 variety of commonly used matrix types, including sparse and HDF5-backed
10538 matrices.")
10539 (license license:gpl3)))
10540
10541 (define-public r-singlecellexperiment
10542 (package
10543 (name "r-singlecellexperiment")
10544 (version "1.4.1")
10545 (source
10546 (origin
10547 (method url-fetch)
10548 (uri (bioconductor-uri "SingleCellExperiment" version))
10549 (sha256
10550 (base32
10551 "12139kk9cqgzpm6f3cwdsq31gj5lxamz2q939dy9fa0fa54gdaq4"))))
10552 (properties
10553 `((upstream-name . "SingleCellExperiment")))
10554 (build-system r-build-system)
10555 (propagated-inputs
10556 `(("r-biocgenerics" ,r-biocgenerics)
10557 ("r-s4vectors" ,r-s4vectors)
10558 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10559 (home-page "https://bioconductor.org/packages/SingleCellExperiment")
10560 (synopsis "S4 classes for single cell data")
10561 (description "This package defines an S4 class for storing data from
10562 single-cell experiments. This includes specialized methods to store and
10563 retrieve spike-in information, dimensionality reduction coordinates and size
10564 factors for each cell, along with the usual metadata for genes and
10565 libraries.")
10566 (license license:gpl3)))
10567
10568 (define-public r-scater
10569 (package
10570 (name "r-scater")
10571 (version "1.10.1")
10572 (source (origin
10573 (method url-fetch)
10574 (uri (bioconductor-uri "scater" version))
10575 (sha256
10576 (base32
10577 "0rijhy7g5qmcn927y1wyd63la1fhyar9fv1hccsqd23jd98yc55a"))))
10578 (build-system r-build-system)
10579 (propagated-inputs
10580 `(("r-beachmat" ,r-beachmat)
10581 ("r-biocgenerics" ,r-biocgenerics)
10582 ("r-biocparallel" ,r-biocparallel)
10583 ("r-delayedarray" ,r-delayedarray)
10584 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10585 ("r-dplyr" ,r-dplyr)
10586 ("r-ggbeeswarm" ,r-ggbeeswarm)
10587 ("r-ggplot2" ,r-ggplot2)
10588 ("r-matrix" ,r-matrix)
10589 ("r-plyr" ,r-plyr)
10590 ("r-rcpp" ,r-rcpp)
10591 ("r-reshape2" ,r-reshape2)
10592 ("r-rhdf5lib" ,r-rhdf5lib)
10593 ("r-s4vectors" ,r-s4vectors)
10594 ("r-singlecellexperiment" ,r-singlecellexperiment)
10595 ("r-summarizedexperiment" ,r-summarizedexperiment)
10596 ("r-viridis" ,r-viridis)))
10597 (home-page "https://github.com/davismcc/scater")
10598 (synopsis "Single-cell analysis toolkit for gene expression data in R")
10599 (description "This package provides a collection of tools for doing
10600 various analyses of single-cell RNA-seq gene expression data, with a focus on
10601 quality control.")
10602 (license license:gpl2+)))
10603
10604 (define-public r-scran
10605 (package
10606 (name "r-scran")
10607 (version "1.10.2")
10608 (source
10609 (origin
10610 (method url-fetch)
10611 (uri (bioconductor-uri "scran" version))
10612 (sha256
10613 (base32
10614 "07mgilr3gq3lnrm1fjm9zhz4w7970bjhsykln1drqy9gkzj5sn7g"))))
10615 (build-system r-build-system)
10616 (propagated-inputs
10617 `(("r-beachmat" ,r-beachmat)
10618 ("r-biocgenerics" ,r-biocgenerics)
10619 ("r-biocneighbors" ,r-biocneighbors)
10620 ("r-biocparallel" ,r-biocparallel)
10621 ("r-delayedarray" ,r-delayedarray)
10622 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
10623 ("r-dynamictreecut" ,r-dynamictreecut)
10624 ("r-edger" ,r-edger)
10625 ("r-igraph" ,r-igraph)
10626 ("r-limma" ,r-limma)
10627 ("r-matrix" ,r-matrix)
10628 ("r-rcpp" ,r-rcpp)
10629 ("r-rhdf5lib" ,r-rhdf5lib)
10630 ("r-s4vectors" ,r-s4vectors)
10631 ("r-scater" ,r-scater)
10632 ("r-singlecellexperiment" ,r-singlecellexperiment)
10633 ("r-statmod" ,r-statmod)
10634 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10635 (home-page "https://bioconductor.org/packages/scran")
10636 (synopsis "Methods for single-cell RNA-Seq data analysis")
10637 (description "This package implements a variety of low-level analyses of
10638 single-cell RNA-seq data. Methods are provided for normalization of
10639 cell-specific biases, assignment of cell cycle phase, and detection of highly
10640 variable and significantly correlated genes.")
10641 (license license:gpl3)))
10642
10643 (define-public r-delayedmatrixstats
10644 (package
10645 (name "r-delayedmatrixstats")
10646 (version "1.4.0")
10647 (source
10648 (origin
10649 (method url-fetch)
10650 (uri (bioconductor-uri "DelayedMatrixStats" version))
10651 (sha256
10652 (base32
10653 "03fk2avl1vyjv2wslczkc82qr0zmp1ra8iimd47pbmnnm839ly4w"))))
10654 (properties
10655 `((upstream-name . "DelayedMatrixStats")))
10656 (build-system r-build-system)
10657 (propagated-inputs
10658 `(("r-biocparallel" ,r-biocparallel)
10659 ("r-delayedarray" ,r-delayedarray)
10660 ("r-hdf5array" ,r-hdf5array)
10661 ("r-iranges" ,r-iranges)
10662 ("r-matrix" ,r-matrix)
10663 ("r-matrixstats" ,r-matrixstats)
10664 ("r-s4vectors" ,r-s4vectors)))
10665 (home-page "https://github.com/PeteHaitch/DelayedMatrixStats")
10666 (synopsis "Functions that apply to rows and columns of DelayedMatrix objects")
10667 (description
10668 "This package provides a port of the @code{matrixStats} API for use with
10669 @code{DelayedMatrix} objects from the @code{DelayedArray} package. It
10670 contains high-performing functions operating on rows and columns of
10671 @code{DelayedMatrix} objects, e.g. @code{colMedians}, @code{rowMedians},
10672 @code{colRanks}, @code{rowRanks}, @code{colSds}, and @code{rowSds}. Functions
10673 are optimized per data type and for subsetted calculations such that both
10674 memory usage and processing time is minimized.")
10675 (license license:expat)))
10676
10677 (define-public r-phangorn
10678 (package
10679 (name "r-phangorn")
10680 (version "2.5.3")
10681 (source
10682 (origin
10683 (method url-fetch)
10684 (uri (cran-uri "phangorn" version))
10685 (sha256
10686 (base32
10687 "1bv86yfk5r015s7ij6v4zz7bagwrw9m13yfs5853drxb19d5h1m3"))))
10688 (build-system r-build-system)
10689 (propagated-inputs
10690 `(("r-ape" ,r-ape)
10691 ("r-fastmatch" ,r-fastmatch)
10692 ("r-igraph" ,r-igraph)
10693 ("r-magrittr" ,r-magrittr)
10694 ("r-matrix" ,r-matrix)
10695 ("r-quadprog" ,r-quadprog)
10696 ("r-rcpp" ,r-rcpp)))
10697 (home-page "https://github.com/KlausVigo/phangorn")
10698 (synopsis "Phylogenetic analysis in R")
10699 (description
10700 "Phangorn is a package for phylogenetic analysis in R. It supports
10701 estimation of phylogenetic trees and networks using Maximum Likelihood,
10702 Maximum Parsimony, distance methods and Hadamard conjugation.")
10703 (license license:gpl2+)))
10704
10705 (define-public r-dropbead
10706 (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
10707 (revision "2"))
10708 (package
10709 (name "r-dropbead")
10710 (version (string-append "0-" revision "." (string-take commit 7)))
10711 (source
10712 (origin
10713 (method git-fetch)
10714 (uri (git-reference
10715 (url "https://github.com/rajewsky-lab/dropbead.git")
10716 (commit commit)))
10717 (file-name (git-file-name name version))
10718 (sha256
10719 (base32
10720 "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
10721 (build-system r-build-system)
10722 (propagated-inputs
10723 `(("r-ggplot2" ,r-ggplot2)
10724 ("r-rcolorbrewer" ,r-rcolorbrewer)
10725 ("r-gridextra" ,r-gridextra)
10726 ("r-gplots" ,r-gplots)
10727 ("r-plyr" ,r-plyr)))
10728 (home-page "https://github.com/rajewsky-lab/dropbead")
10729 (synopsis "Basic exploration and analysis of Drop-seq data")
10730 (description "This package offers a quick and straight-forward way to
10731 explore and perform basic analysis of single cell sequencing data coming from
10732 droplet sequencing. It has been particularly tailored for Drop-seq.")
10733 (license license:gpl3))))
10734
10735 (define htslib-for-sambamba
10736 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
10737 (package
10738 (inherit htslib)
10739 (name "htslib-for-sambamba")
10740 (version (string-append "1.3.1-1." (string-take commit 9)))
10741 (source
10742 (origin
10743 (method git-fetch)
10744 (uri (git-reference
10745 (url "https://github.com/lomereiter/htslib.git")
10746 (commit commit)))
10747 (file-name (string-append "htslib-" version "-checkout"))
10748 (sha256
10749 (base32
10750 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
10751 (native-inputs
10752 `(("autoconf" ,autoconf)
10753 ("automake" ,automake)
10754 ,@(package-native-inputs htslib))))))
10755
10756 (define-public sambamba
10757 (package
10758 (name "sambamba")
10759 (version "0.6.8")
10760 (source
10761 (origin
10762 (method git-fetch)
10763 (uri (git-reference
10764 (url "https://github.com/lomereiter/sambamba.git")
10765 (commit (string-append "v" version))))
10766 (file-name (string-append name "-" version "-checkout"))
10767 (sha256
10768 (base32
10769 "0k0cz3qcv98p6cq09zlbgnjsggxcqbcmzxg5zikgcgbr2nfq4lry"))))
10770 (build-system gnu-build-system)
10771 (arguments
10772 `(#:tests? #f ; there is no test target
10773 #:parallel-build? #f ; not supported
10774 #:phases
10775 (modify-phases %standard-phases
10776 (delete 'configure)
10777 (add-after 'unpack 'fix-ldc-version
10778 (lambda _
10779 (substitute* "gen_ldc_version_info.py"
10780 (("/usr/bin/env.*") (which "python3")))
10781 (substitute* "Makefile"
10782 ;; We use ldc2 instead of ldmd2 to compile sambamba.
10783 (("\\$\\(shell which ldmd2\\)") (which "ldc2")))
10784 #t))
10785 (add-after 'unpack 'place-biod-and-undead
10786 (lambda* (#:key inputs #:allow-other-keys)
10787 (copy-recursively (assoc-ref inputs "biod") "BioD")
10788 (copy-recursively (assoc-ref inputs "undead") "undeaD")
10789 #t))
10790 (add-after 'unpack 'unbundle-prerequisites
10791 (lambda _
10792 (substitute* "Makefile"
10793 (("htslib/libhts.a lz4/lib/liblz4.a")
10794 "-L-lhts -L-llz4")
10795 ((" lz4-static htslib-static") ""))
10796 #t))
10797 (replace 'install
10798 (lambda* (#:key outputs #:allow-other-keys)
10799 (let* ((out (assoc-ref outputs "out"))
10800 (bin (string-append out "/bin")))
10801 (mkdir-p bin)
10802 (install-file "bin/sambamba" bin)
10803 #t))))))
10804 (native-inputs
10805 `(("ldc" ,ldc)
10806 ("rdmd" ,rdmd)
10807 ("python" ,python)
10808 ("biod"
10809 ,(let ((commit "4f1a7d2fb7ef3dfe962aa357d672f354ebfbe42e"))
10810 (origin
10811 (method git-fetch)
10812 (uri (git-reference
10813 (url "https://github.com/biod/BioD.git")
10814 (commit commit)))
10815 (file-name (string-append "biod-"
10816 (string-take commit 9)
10817 "-checkout"))
10818 (sha256
10819 (base32
10820 "1k5pdjv1qvi0a3rwd1sfq6zbj37l86i7bf710m4c0y6737lxj426")))))
10821 ("undead"
10822 ,(let ((commit "9be93876982b5f14fcca60832563b3cd767dd84d"))
10823 (origin
10824 (method git-fetch)
10825 (uri (git-reference
10826 (url "https://github.com/biod/undeaD.git")
10827 (commit commit)))
10828 (file-name (string-append "undead-"
10829 (string-take commit 9)
10830 "-checkout"))
10831 (sha256
10832 (base32
10833 "1xfarj0nqlmi5jd1vmcmm7pabzaf9hxyvk6hp0d6jslb5k9r8r3d")))))))
10834 (inputs
10835 `(("lz4" ,lz4)
10836 ("htslib" ,htslib-for-sambamba)))
10837 (home-page "http://lomereiter.github.io/sambamba")
10838 (synopsis "Tools for working with SAM/BAM data")
10839 (description "Sambamba is a high performance modern robust and
10840 fast tool (and library), written in the D programming language, for
10841 working with SAM and BAM files. Current parallelised functionality is
10842 an important subset of samtools functionality, including view, index,
10843 sort, markdup, and depth.")
10844 (license license:gpl2+)))
10845
10846 (define-public ritornello
10847 (package
10848 (name "ritornello")
10849 (version "2.0.1")
10850 (source (origin
10851 (method git-fetch)
10852 (uri (git-reference
10853 (url "https://github.com/KlugerLab/Ritornello.git")
10854 (commit (string-append "v" version))))
10855 (file-name (git-file-name name version))
10856 (sha256
10857 (base32
10858 "1xahvq215qld7x1w8vpa5zbrsj6p9crb9shqa2x89sb0aaxa02jk"))))
10859 (build-system gnu-build-system)
10860 (arguments
10861 `(#:tests? #f ; there are no tests
10862 #:phases
10863 (modify-phases %standard-phases
10864 (add-after 'unpack 'patch-samtools-references
10865 (lambda* (#:key inputs #:allow-other-keys)
10866 (substitute* '("src/SamStream.h"
10867 "src/FLD.cpp")
10868 (("<sam.h>") "<samtools/sam.h>"))
10869 #t))
10870 (delete 'configure)
10871 (replace 'install
10872 (lambda* (#:key inputs outputs #:allow-other-keys)
10873 (let* ((out (assoc-ref outputs "out"))
10874 (bin (string-append out "/bin/")))
10875 (mkdir-p bin)
10876 (install-file "bin/Ritornello" bin)
10877 #t))))))
10878 (inputs
10879 `(("samtools" ,samtools-0.1)
10880 ("fftw" ,fftw)
10881 ("boost" ,boost)
10882 ("zlib" ,zlib)))
10883 (home-page "https://github.com/KlugerLab/Ritornello")
10884 (synopsis "Control-free peak caller for ChIP-seq data")
10885 (description "Ritornello is a ChIP-seq peak calling algorithm based on
10886 signal processing that can accurately call binding events without the need to
10887 do a pair total DNA input or IgG control sample. It has been tested for use
10888 with narrow binding events such as transcription factor ChIP-seq.")
10889 (license license:gpl3+)))
10890
10891 (define-public trim-galore
10892 (package
10893 (name "trim-galore")
10894 (version "0.6.1")
10895 (source
10896 (origin
10897 (method git-fetch)
10898 (uri (git-reference
10899 (url "https://github.com/FelixKrueger/TrimGalore.git")
10900 (commit version)))
10901 (file-name (git-file-name name version))
10902 (sha256
10903 (base32
10904 "1y31wbxwkm9xqzr5zv1pk5q418whnmlmgmfyxxpnl12h83m2i9iv"))))
10905 (build-system gnu-build-system)
10906 (arguments
10907 `(#:tests? #f ; no tests
10908 #:phases
10909 (modify-phases %standard-phases
10910 (replace 'configure
10911 (lambda _
10912 ;; Trim Galore tries to figure out what version of Python
10913 ;; cutadapt is using by looking at the shebang. Of course that
10914 ;; doesn't work, because cutadapt is wrapped in a shell script.
10915 (substitute* "trim_galore"
10916 (("my \\$python_return.*")
10917 "my $python_return = \"Python 3.999\";\n"))
10918 #t))
10919 (delete 'build)
10920 (add-after 'unpack 'hardcode-tool-references
10921 (lambda* (#:key inputs #:allow-other-keys)
10922 (substitute* "trim_galore"
10923 (("\\$path_to_cutadapt = 'cutadapt'")
10924 (string-append "$path_to_cutadapt = '"
10925 (assoc-ref inputs "cutadapt")
10926 "/bin/cutadapt'"))
10927 (("\\$compression_path = \"gzip\"")
10928 (string-append "$compression_path = \""
10929 (assoc-ref inputs "gzip")
10930 "/bin/gzip\""))
10931 (("\"gunzip")
10932 (string-append "\""
10933 (assoc-ref inputs "gzip")
10934 "/bin/gunzip"))
10935 (("\"pigz")
10936 (string-append "\""
10937 (assoc-ref inputs "pigz")
10938 "/bin/pigz")))
10939 #t))
10940 (replace 'install
10941 (lambda* (#:key outputs #:allow-other-keys)
10942 (let ((bin (string-append (assoc-ref outputs "out")
10943 "/bin")))
10944 (mkdir-p bin)
10945 (install-file "trim_galore" bin)
10946 #t))))))
10947 (inputs
10948 `(("gzip" ,gzip)
10949 ("perl" ,perl)
10950 ("pigz" ,pigz)
10951 ("cutadapt" ,cutadapt)))
10952 (native-inputs
10953 `(("unzip" ,unzip)))
10954 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
10955 (synopsis "Wrapper around Cutadapt and FastQC")
10956 (description "Trim Galore! is a wrapper script to automate quality and
10957 adapter trimming as well as quality control, with some added functionality to
10958 remove biased methylation positions for RRBS sequence files.")
10959 (license license:gpl3+)))
10960
10961 (define-public gess
10962 (package
10963 (name "gess")
10964 (version "1.0")
10965 (source (origin
10966 (method url-fetch)
10967 (uri (string-append "http://compbio.uthscsa.edu/"
10968 "GESS_Web/files/"
10969 "gess-" version ".src.tar.gz"))
10970 (sha256
10971 (base32
10972 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
10973 (build-system gnu-build-system)
10974 (arguments
10975 `(#:tests? #f ; no tests
10976 #:phases
10977 (modify-phases %standard-phases
10978 (delete 'configure)
10979 (delete 'build)
10980 (replace 'install
10981 (lambda* (#:key inputs outputs #:allow-other-keys)
10982 (let* ((python (assoc-ref inputs "python"))
10983 (out (assoc-ref outputs "out"))
10984 (bin (string-append out "/bin/"))
10985 (target (string-append
10986 out "/lib/python"
10987 ,(version-major+minor
10988 (package-version python))
10989 "/site-packages/gess/")))
10990 (mkdir-p target)
10991 (copy-recursively "." target)
10992 ;; Make GESS.py executable
10993 (chmod (string-append target "GESS.py") #o555)
10994 ;; Add Python shebang to the top and make Matplotlib
10995 ;; usable.
10996 (substitute* (string-append target "GESS.py")
10997 (("\"\"\"Description:" line)
10998 (string-append "#!" (which "python") "
10999 import matplotlib
11000 matplotlib.use('Agg')
11001 " line)))
11002 ;; Make sure GESS has all modules in its path
11003 (wrap-program (string-append target "GESS.py")
11004 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
11005 (mkdir-p bin)
11006 (symlink (string-append target "GESS.py")
11007 (string-append bin "GESS.py"))
11008 #t))))))
11009 (inputs
11010 `(("python" ,python-2)
11011 ("python2-pysam" ,python2-pysam)
11012 ("python2-scipy" ,python2-scipy)
11013 ("python2-numpy" ,python2-numpy)
11014 ("python2-networkx" ,python2-networkx)
11015 ("python2-biopython" ,python2-biopython)))
11016 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
11017 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11018 (description
11019 "GESS is an implementation of a novel computational method to detect de
11020 novo exon-skipping events directly from raw RNA-seq data without the prior
11021 knowledge of gene annotation information. GESS stands for the graph-based
11022 exon-skipping scanner detection scheme.")
11023 (license license:bsd-3)))
11024
11025 (define-public phylip
11026 (package
11027 (name "phylip")
11028 (version "3.696")
11029 (source
11030 (origin
11031 (method url-fetch)
11032 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11033 "download/phylip-" version ".tar.gz"))
11034 (sha256
11035 (base32
11036 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11037 (build-system gnu-build-system)
11038 (arguments
11039 `(#:tests? #f ; no check target
11040 #:make-flags (list "-f" "Makefile.unx" "install")
11041 #:parallel-build? #f ; not supported
11042 #:phases
11043 (modify-phases %standard-phases
11044 (add-after 'unpack 'enter-dir
11045 (lambda _ (chdir "src") #t))
11046 (delete 'configure)
11047 (replace 'install
11048 (lambda* (#:key inputs outputs #:allow-other-keys)
11049 (let ((target (string-append (assoc-ref outputs "out")
11050 "/bin")))
11051 (mkdir-p target)
11052 (for-each (lambda (file)
11053 (install-file file target))
11054 (find-files "../exe" ".*")))
11055 #t)))))
11056 (home-page "http://evolution.genetics.washington.edu/phylip/")
11057 (synopsis "Tools for inferring phylogenies")
11058 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11059 programs for inferring phylogenies (evolutionary trees).")
11060 (license license:bsd-2)))
11061
11062 (define-public imp
11063 (package
11064 (name "imp")
11065 (version "2.6.2")
11066 (source
11067 (origin
11068 (method url-fetch)
11069 (uri (string-append "https://integrativemodeling.org/"
11070 version "/download/imp-" version ".tar.gz"))
11071 (sha256
11072 (base32
11073 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
11074 (build-system cmake-build-system)
11075 (arguments
11076 `(;; FIXME: Some tests fail because they produce warnings, others fail
11077 ;; because the PYTHONPATH does not include the modeller's directory.
11078 #:tests? #f))
11079 (inputs
11080 `(("boost" ,boost)
11081 ("gsl" ,gsl)
11082 ("swig" ,swig)
11083 ("hdf5" ,hdf5)
11084 ("fftw" ,fftw)
11085 ("python" ,python-2)))
11086 (propagated-inputs
11087 `(("python2-numpy" ,python2-numpy)
11088 ("python2-scipy" ,python2-scipy)
11089 ("python2-pandas" ,python2-pandas)
11090 ("python2-scikit-learn" ,python2-scikit-learn)
11091 ("python2-networkx" ,python2-networkx)))
11092 (home-page "https://integrativemodeling.org")
11093 (synopsis "Integrative modeling platform")
11094 (description "IMP's broad goal is to contribute to a comprehensive
11095 structural characterization of biomolecules ranging in size and complexity
11096 from small peptides to large macromolecular assemblies, by integrating data
11097 from diverse biochemical and biophysical experiments. IMP provides a C++ and
11098 Python toolbox for solving complex modeling problems, and a number of
11099 applications for tackling some common problems in a user-friendly way.")
11100 ;; IMP is largely available under the GNU Lesser GPL; see the file
11101 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11102 ;; available under the GNU GPL (see the file COPYING.GPL).
11103 (license (list license:lgpl2.1+
11104 license:gpl3+))))
11105
11106 (define-public tadbit
11107 (package
11108 (name "tadbit")
11109 (version "0.2.0")
11110 (source (origin
11111 (method git-fetch)
11112 (uri (git-reference
11113 (url "https://github.com/3DGenomes/TADbit.git")
11114 (commit (string-append "v" version))))
11115 (file-name (git-file-name name version))
11116 (sha256
11117 (base32
11118 "07g3aj648prmsvxp9caz5yl41k0y0647vxh0f5p3w8376mfiljd0"))))
11119 (build-system python-build-system)
11120 (arguments
11121 `(;; Tests are included and must be run after installation, but
11122 ;; they are incomplete and thus cannot be run.
11123 #:tests? #f
11124 #:python ,python-2
11125 #:phases
11126 (modify-phases %standard-phases
11127 (add-after 'unpack 'fix-problems-with-setup.py
11128 (lambda* (#:key outputs #:allow-other-keys)
11129 ;; setup.py opens these files for writing
11130 (chmod "_pytadbit/_version.py" #o664)
11131 (chmod "README.rst" #o664)
11132
11133 ;; Don't attempt to install the bash completions to
11134 ;; the home directory.
11135 (rename-file "extras/.bash_completion"
11136 "extras/tadbit")
11137 (substitute* "setup.py"
11138 (("\\(path.expanduser\\('~'\\)")
11139 (string-append "(\""
11140 (assoc-ref outputs "out")
11141 "/etc/bash_completion.d\""))
11142 (("extras/\\.bash_completion")
11143 "extras/tadbit"))
11144 #t)))))
11145 (inputs
11146 ;; TODO: add Chimera for visualization
11147 `(("imp" ,imp)
11148 ("mcl" ,mcl)
11149 ("python2-scipy" ,python2-scipy)
11150 ("python2-numpy" ,python2-numpy)
11151 ("python2-matplotlib" ,python2-matplotlib)
11152 ("python2-pysam" ,python2-pysam)))
11153 (home-page "https://3dgenomes.github.io/TADbit/")
11154 (synopsis "Analyze, model, and explore 3C-based data")
11155 (description
11156 "TADbit is a complete Python library to deal with all steps to analyze,
11157 model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11158 obtain raw interaction binned matrices (Hi-C like matrices), normalize and
11159 correct interaction matrices, identify and compare the so-called
11160 @dfn{Topologically Associating Domains} (TADs), build 3D models from the
11161 interaction matrices, and finally, extract structural properties from the
11162 models. TADbit is complemented by TADkit for visualizing 3D models.")
11163 (license license:gpl3+)))
11164
11165 (define-public kentutils
11166 (package
11167 (name "kentutils")
11168 ;; 302.1.0 is out, but the only difference is the inclusion of
11169 ;; pre-built binaries.
11170 (version "302.0.0")
11171 (source
11172 (origin
11173 (method git-fetch)
11174 (uri (git-reference
11175 (url "https://github.com/ENCODE-DCC/kentUtils.git")
11176 (commit (string-append "v" version))))
11177 (file-name (git-file-name name version))
11178 (sha256
11179 (base32
11180 "0n1wbyjpzii2b9qhyp9r1q76j623cggpg3y8fmw78ld3z4y7ivha"))
11181 (modules '((guix build utils)
11182 (srfi srfi-26)
11183 (ice-9 ftw)))
11184 (snippet
11185 '(begin
11186 ;; Only the contents of the specified directories are free
11187 ;; for all uses, so we remove the rest. "hg/autoSql" and
11188 ;; "hg/autoXml" are nominally free, but they depend on a
11189 ;; library that is built from the sources in "hg/lib",
11190 ;; which is nonfree.
11191 (let ((free (list "." ".."
11192 "utils" "lib" "inc" "tagStorm"
11193 "parasol" "htslib"))
11194 (directory? (lambda (file)
11195 (eq? 'directory (stat:type (stat file))))))
11196 (for-each (lambda (file)
11197 (and (directory? file)
11198 (delete-file-recursively file)))
11199 (map (cut string-append "src/" <>)
11200 (scandir "src"
11201 (lambda (file)
11202 (not (member file free)))))))
11203 ;; Only make the utils target, not the userApps target,
11204 ;; because that requires libraries we won't build.
11205 (substitute* "Makefile"
11206 ((" userApps") " utils"))
11207 ;; Only build libraries that are free.
11208 (substitute* "src/makefile"
11209 (("DIRS =.*") "DIRS =\n")
11210 (("cd jkOwnLib.*") "")
11211 ((" hgLib") "")
11212 (("cd hg.*") ""))
11213 (substitute* "src/utils/makefile"
11214 ;; These tools depend on "jkhgap.a", which is part of the
11215 ;; nonfree "src/hg/lib" directory.
11216 (("raSqlQuery") "")
11217 (("pslLiftSubrangeBlat") "")
11218
11219 ;; Do not build UCSC tools, which may require nonfree
11220 ;; components.
11221 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11222 #t))))
11223 (build-system gnu-build-system)
11224 (arguments
11225 `( ;; There is no global test target and the test target for
11226 ;; individual tools depends on input files that are not
11227 ;; included.
11228 #:tests? #f
11229 #:phases
11230 (modify-phases %standard-phases
11231 (add-after 'unpack 'fix-permissions
11232 (lambda _ (make-file-writable "src/inc/localEnvironment.mk") #t))
11233 (add-after 'unpack 'fix-paths
11234 (lambda _
11235 (substitute* "Makefile"
11236 (("/bin/echo") (which "echo")))
11237 #t))
11238 (add-after 'unpack 'prepare-samtabix
11239 (lambda* (#:key inputs #:allow-other-keys)
11240 (copy-recursively (assoc-ref inputs "samtabix")
11241 "samtabix")
11242 #t))
11243 (delete 'configure)
11244 (replace 'install
11245 (lambda* (#:key outputs #:allow-other-keys)
11246 (let ((bin (string-append (assoc-ref outputs "out")
11247 "/bin")))
11248 (copy-recursively "bin" bin))
11249 #t)))))
11250 (native-inputs
11251 `(("samtabix"
11252 ,(origin
11253 (method git-fetch)
11254 (uri (git-reference
11255 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11256 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11257 (sha256
11258 (base32
11259 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11260 (inputs
11261 `(("zlib" ,zlib)
11262 ("tcsh" ,tcsh)
11263 ("perl" ,perl)
11264 ("libpng" ,libpng)
11265 ("mariadb" ,mariadb)
11266 ("openssl" ,openssl)))
11267 (home-page "http://genome.cse.ucsc.edu/index.html")
11268 (synopsis "Assorted bioinformatics utilities")
11269 (description "This package provides the kentUtils, a selection of
11270 bioinformatics utilities used in combination with the UCSC genome
11271 browser.")
11272 ;; Only a subset of the sources are released under a non-copyleft
11273 ;; free software license. All other sources are removed in a
11274 ;; snippet. See this bug report for an explanation of how the
11275 ;; license statements apply:
11276 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11277 (license (license:non-copyleft
11278 "http://genome.ucsc.edu/license/"
11279 "The contents of this package are free for all uses."))))
11280
11281 (define-public f-seq
11282 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11283 (revision "1"))
11284 (package
11285 (name "f-seq")
11286 (version (string-append "1.1-" revision "." (string-take commit 7)))
11287 (source (origin
11288 (method git-fetch)
11289 (uri (git-reference
11290 (url "https://github.com/aboyle/F-seq.git")
11291 (commit commit)))
11292 (file-name (string-append name "-" version))
11293 (sha256
11294 (base32
11295 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11296 (modules '((guix build utils)))
11297 ;; Remove bundled Java library archives.
11298 (snippet
11299 '(begin
11300 (for-each delete-file (find-files "lib" ".*"))
11301 #t))))
11302 (build-system ant-build-system)
11303 (arguments
11304 `(#:tests? #f ; no tests included
11305 #:phases
11306 (modify-phases %standard-phases
11307 (replace 'install
11308 (lambda* (#:key inputs outputs #:allow-other-keys)
11309 (let* ((target (assoc-ref outputs "out"))
11310 (bin (string-append target "/bin"))
11311 (doc (string-append target "/share/doc/f-seq"))
11312 (lib (string-append target "/lib")))
11313 (mkdir-p target)
11314 (mkdir-p doc)
11315 (substitute* "bin/linux/fseq"
11316 (("java") (which "java"))
11317 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11318 (string-append (assoc-ref inputs "java-commons-cli")
11319 "/share/java/commons-cli.jar"))
11320 (("REALDIR=.*")
11321 (string-append "REALDIR=" bin "\n")))
11322 (install-file "README.txt" doc)
11323 (install-file "bin/linux/fseq" bin)
11324 (install-file "build~/fseq.jar" lib)
11325 (copy-recursively "lib" lib)
11326 #t))))))
11327 (inputs
11328 `(("perl" ,perl)
11329 ("java-commons-cli" ,java-commons-cli)))
11330 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11331 (synopsis "Feature density estimator for high-throughput sequence tags")
11332 (description
11333 "F-Seq is a software package that generates a continuous tag sequence
11334 density estimation allowing identification of biologically meaningful sites
11335 such as transcription factor binding sites (ChIP-seq) or regions of open
11336 chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11337 Browser.")
11338 (license license:gpl3+))))
11339
11340 (define-public bismark
11341 (package
11342 (name "bismark")
11343 (version "0.20.1")
11344 (source
11345 (origin
11346 (method git-fetch)
11347 (uri (git-reference
11348 (url "https://github.com/FelixKrueger/Bismark.git")
11349 (commit version)))
11350 (file-name (string-append name "-" version "-checkout"))
11351 (sha256
11352 (base32
11353 "0xchm3rgilj6vfjnyzfzzymfd7djr64sbrmrvs3njbwi66jqbzw9"))))
11354 (build-system perl-build-system)
11355 (arguments
11356 `(#:tests? #f ; there are no tests
11357 #:modules ((guix build utils)
11358 (ice-9 popen)
11359 (srfi srfi-26)
11360 (guix build perl-build-system))
11361 #:phases
11362 (modify-phases %standard-phases
11363 ;; The bundled plotly.js is minified.
11364 (add-after 'unpack 'replace-plotly.js
11365 (lambda* (#:key inputs #:allow-other-keys)
11366 (let* ((file (assoc-ref inputs "plotly.js"))
11367 (installed "plotly/plotly.js"))
11368 (let ((minified (open-pipe* OPEN_READ "uglify-js" file)))
11369 (call-with-output-file installed
11370 (cut dump-port minified <>))))
11371 #t))
11372 (delete 'configure)
11373 (delete 'build)
11374 (replace 'install
11375 (lambda* (#:key inputs outputs #:allow-other-keys)
11376 (let* ((out (assoc-ref outputs "out"))
11377 (bin (string-append out "/bin"))
11378 (share (string-append out "/share/bismark"))
11379 (docdir (string-append out "/share/doc/bismark"))
11380 (docs '("Docs/Bismark_User_Guide.html"))
11381 (scripts '("bismark"
11382 "bismark_genome_preparation"
11383 "bismark_methylation_extractor"
11384 "bismark2bedGraph"
11385 "bismark2report"
11386 "coverage2cytosine"
11387 "deduplicate_bismark"
11388 "filter_non_conversion"
11389 "bam2nuc"
11390 "bismark2summary"
11391 "NOMe_filtering")))
11392 (substitute* "bismark2report"
11393 (("\\$RealBin/plotly")
11394 (string-append share "/plotly")))
11395 (mkdir-p share)
11396 (mkdir-p docdir)
11397 (mkdir-p bin)
11398 (for-each (lambda (file) (install-file file bin))
11399 scripts)
11400 (for-each (lambda (file) (install-file file docdir))
11401 docs)
11402 (copy-recursively "Docs/Images" (string-append docdir "/Images"))
11403 (copy-recursively "plotly"
11404 (string-append share "/plotly"))
11405
11406 ;; Fix references to gunzip
11407 (substitute* (map (lambda (file)
11408 (string-append bin "/" file))
11409 scripts)
11410 (("\"gunzip -c")
11411 (string-append "\"" (assoc-ref inputs "gzip")
11412 "/bin/gunzip -c")))
11413 #t))))))
11414 (inputs
11415 `(("gzip" ,gzip)
11416 ("perl-carp" ,perl-carp)
11417 ("perl-getopt-long" ,perl-getopt-long)))
11418 (native-inputs
11419 `(("plotly.js"
11420 ,(origin
11421 (method url-fetch)
11422 (uri (string-append "https://raw.githubusercontent.com/plotly/plotly.js/"
11423 "v1.39.4/dist/plotly.js"))
11424 (sha256
11425 (base32 "138mwsr4nf5qif4mrxx286mpnagxd1xwl6k8aidrjgknaqg88zyr"))))
11426 ("uglify-js" ,uglify-js)))
11427 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11428 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11429 (description "Bismark is a program to map bisulfite treated sequencing
11430 reads to a genome of interest and perform methylation calls in a single step.
11431 The output can be easily imported into a genome viewer, such as SeqMonk, and
11432 enables a researcher to analyse the methylation levels of their samples
11433 straight away. Its main features are:
11434
11435 @itemize
11436 @item Bisulfite mapping and methylation calling in one single step
11437 @item Supports single-end and paired-end read alignments
11438 @item Supports ungapped and gapped alignments
11439 @item Alignment seed length, number of mismatches etc are adjustable
11440 @item Output discriminates between cytosine methylation in CpG, CHG
11441 and CHH context
11442 @end itemize\n")
11443 (license license:gpl3+)))
11444
11445 (define-public paml
11446 (package
11447 (name "paml")
11448 (version "4.9e")
11449 (source (origin
11450 (method url-fetch)
11451 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11452 "paml" version ".tgz"))
11453 (sha256
11454 (base32
11455 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11456 (modules '((guix build utils)))
11457 ;; Remove Windows binaries
11458 (snippet
11459 '(begin
11460 (for-each delete-file (find-files "." "\\.exe$"))
11461 #t))))
11462 (build-system gnu-build-system)
11463 (arguments
11464 `(#:tests? #f ; there are no tests
11465 #:make-flags '("CC=gcc")
11466 #:phases
11467 (modify-phases %standard-phases
11468 (replace 'configure
11469 (lambda _
11470 (substitute* "src/BFdriver.c"
11471 (("/bin/bash") (which "bash")))
11472 (chdir "src")
11473 #t))
11474 (replace 'install
11475 (lambda* (#:key outputs #:allow-other-keys)
11476 (let ((tools '("baseml" "basemlg" "codeml"
11477 "pamp" "evolver" "yn00" "chi2"))
11478 (bin (string-append (assoc-ref outputs "out") "/bin"))
11479 (docdir (string-append (assoc-ref outputs "out")
11480 "/share/doc/paml")))
11481 (mkdir-p bin)
11482 (for-each (lambda (file) (install-file file bin)) tools)
11483 (copy-recursively "../doc" docdir)
11484 #t))))))
11485 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11486 (synopsis "Phylogentic analysis by maximum likelihood")
11487 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11488 contains a few programs for model fitting and phylogenetic tree reconstruction
11489 using nucleotide or amino-acid sequence data.")
11490 ;; GPLv3 only
11491 (license license:gpl3)))
11492
11493 (define-public kallisto
11494 (package
11495 (name "kallisto")
11496 (version "0.44.0")
11497 (source (origin
11498 (method git-fetch)
11499 (uri (git-reference
11500 (url "https://github.com/pachterlab/kallisto.git")
11501 (commit (string-append "v" version))))
11502 (file-name (git-file-name name version))
11503 (sha256
11504 (base32
11505 "0nj382jiywqnpgvyhichajpkkh5r0bapn43f4dx40zdaq5v4m40m"))))
11506 (build-system cmake-build-system)
11507 (arguments
11508 `(#:tests? #f ; no "check" target
11509 #:phases
11510 (modify-phases %standard-phases
11511 (add-after 'unpack 'do-not-use-bundled-htslib
11512 (lambda _
11513 (substitute* "CMakeLists.txt"
11514 (("^ExternalProject_Add" m)
11515 (string-append "if (NEVER)\n" m))
11516 (("^\\)")
11517 (string-append ")\nendif(NEVER)"))
11518 (("include_directories\\(\\$\\{htslib_PREFIX.*" m)
11519 (string-append "# " m)))
11520 (substitute* "src/CMakeLists.txt"
11521 (("target_link_libraries\\(kallisto kallisto_core pthread \
11522 \\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/../ext/htslib/libhts.a\\)")
11523 "target_link_libraries(kallisto kallisto_core pthread hts)")
11524 (("include_directories\\(\\.\\./ext/htslib\\)") ""))
11525 #t)))))
11526 (inputs
11527 `(("hdf5" ,hdf5)
11528 ("htslib" ,htslib)
11529 ("zlib" ,zlib)))
11530 (home-page "http://pachterlab.github.io/kallisto/")
11531 (synopsis "Near-optimal RNA-Seq quantification")
11532 (description
11533 "Kallisto is a program for quantifying abundances of transcripts from
11534 RNA-Seq data, or more generally of target sequences using high-throughput
11535 sequencing reads. It is based on the novel idea of pseudoalignment for
11536 rapidly determining the compatibility of reads with targets, without the need
11537 for alignment. Pseudoalignment of reads preserves the key information needed
11538 for quantification, and kallisto is therefore not only fast, but also as
11539 accurate as existing quantification tools.")
11540 (license license:bsd-2)))
11541
11542 (define-public libgff
11543 (package
11544 (name "libgff")
11545 (version "1.0")
11546 (source (origin
11547 (method git-fetch)
11548 (uri (git-reference
11549 (url "https://github.com/Kingsford-Group/libgff.git")
11550 (commit (string-append "v" version))))
11551 (file-name (git-file-name name version))
11552 (sha256
11553 (base32
11554 "0n6vfjnq7a2mianipscbshrvbncss8z4zkgkbjw754p9043nfkps"))))
11555 (build-system cmake-build-system)
11556 (arguments `(#:tests? #f)) ; no tests included
11557 (home-page "https://github.com/Kingsford-Group/libgff")
11558 (synopsis "Parser library for reading/writing GFF files")
11559 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11560 code that is used in the Cufflinks codebase. The goal of this library is to
11561 provide this functionality without the necessity of drawing in a heavy-weight
11562 dependency like SeqAn.")
11563 (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
11564
11565 (define-public libdivsufsort
11566 (package
11567 (name "libdivsufsort")
11568 (version "2.0.1")
11569 (source (origin
11570 (method git-fetch)
11571 (uri (git-reference
11572 (url "https://github.com/y-256/libdivsufsort.git")
11573 (commit version)))
11574 (file-name (git-file-name name version))
11575 (sha256
11576 (base32
11577 "0fgdz9fzihlvjjrxy01md1bv9vh12rkgkwbm90b1hj5xpbaqp7z2"))))
11578 (build-system cmake-build-system)
11579 (arguments
11580 '(#:tests? #f ; there are no tests
11581 #:configure-flags
11582 ;; Needed for rapmap and sailfish.
11583 '("-DBUILD_DIVSUFSORT64=ON")))
11584 (home-page "https://github.com/y-256/libdivsufsort")
11585 (synopsis "Lightweight suffix-sorting library")
11586 (description "libdivsufsort is a software library that implements a
11587 lightweight suffix array construction algorithm. This library provides a
11588 simple and an efficient C API to construct a suffix array and a
11589 Burrows-Wheeler transformed string from a given string over a constant-size
11590 alphabet. The algorithm runs in O(n log n) worst-case time using only 5n+O(1)
11591 bytes of memory space, where n is the length of the string.")
11592 (license license:expat)))
11593
11594 (define-public sailfish
11595 (package
11596 (name "sailfish")
11597 (version "0.10.1")
11598 (source (origin
11599 (method git-fetch)
11600 (uri (git-reference
11601 (url "https://github.com/kingsfordgroup/sailfish.git")
11602 (commit (string-append "v" version))))
11603 (file-name (git-file-name name version))
11604 (sha256
11605 (base32
11606 "1amcc5hqvsl42hg4x19bi9vy47cl874s0lw1fmi0hwsdk9i8c03v"))
11607 (modules '((guix build utils)))
11608 (snippet
11609 '(begin
11610 ;; Delete bundled headers for eigen3.
11611 (delete-file-recursively "include/eigen3/")
11612 #t))))
11613 (build-system cmake-build-system)
11614 (arguments
11615 `(#:configure-flags
11616 (list (string-append "-DBOOST_INCLUDEDIR="
11617 (assoc-ref %build-inputs "boost")
11618 "/include/")
11619 (string-append "-DBOOST_LIBRARYDIR="
11620 (assoc-ref %build-inputs "boost")
11621 "/lib/")
11622 (string-append "-DBoost_LIBRARIES="
11623 "-lboost_iostreams "
11624 "-lboost_filesystem "
11625 "-lboost_system "
11626 "-lboost_thread "
11627 "-lboost_timer "
11628 "-lboost_chrono "
11629 "-lboost_program_options")
11630 "-DBoost_FOUND=TRUE"
11631 ;; Don't download RapMap---we already have it!
11632 "-DFETCHED_RAPMAP=1")
11633 ;; Tests must be run after installation and the location of the test
11634 ;; data file must be overridden. But the tests fail. It looks like
11635 ;; they are not really meant to be run.
11636 #:tests? #f
11637 #:phases
11638 (modify-phases %standard-phases
11639 ;; Boost cannot be found, even though it's right there.
11640 (add-after 'unpack 'do-not-look-for-boost
11641 (lambda* (#:key inputs #:allow-other-keys)
11642 (substitute* "CMakeLists.txt"
11643 (("find_package\\(Boost 1\\.53\\.0") "#"))
11644 #t))
11645 (add-after 'unpack 'do-not-assign-to-macro
11646 (lambda _
11647 (substitute* "include/spdlog/details/format.cc"
11648 (("const unsigned CHAR_WIDTH = 1;") ""))
11649 #t))
11650 (add-after 'unpack 'prepare-rapmap
11651 (lambda* (#:key inputs #:allow-other-keys)
11652 (let ((src "external/install/src/rapmap/")
11653 (include "external/install/include/rapmap/")
11654 (rapmap (assoc-ref inputs "rapmap")))
11655 (mkdir-p "/tmp/rapmap")
11656 (invoke "tar" "xf"
11657 (assoc-ref inputs "rapmap")
11658 "-C" "/tmp/rapmap"
11659 "--strip-components=1")
11660 (mkdir-p src)
11661 (mkdir-p include)
11662 (for-each (lambda (file)
11663 (install-file file src))
11664 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
11665 (copy-recursively "/tmp/rapmap/include" include))
11666 #t))
11667 (add-after 'unpack 'use-system-libraries
11668 (lambda* (#:key inputs #:allow-other-keys)
11669 (substitute* '("src/SailfishIndexer.cpp"
11670 "src/SailfishUtils.cpp"
11671 "src/SailfishQuantify.cpp"
11672 "src/FASTAParser.cpp"
11673 "include/PCA.hpp"
11674 "include/SailfishUtils.hpp"
11675 "include/SailfishIndex.hpp"
11676 "include/CollapsedEMOptimizer.hpp"
11677 "src/CollapsedEMOptimizer.cpp")
11678 (("#include \"jellyfish/config.h\"") ""))
11679 (substitute* "src/CMakeLists.txt"
11680 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11681 (string-append (assoc-ref inputs "jellyfish")
11682 "/include/jellyfish-" ,(package-version jellyfish)))
11683 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11684 (string-append (assoc-ref inputs "jellyfish")
11685 "/lib/libjellyfish-2.0.a"))
11686 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11687 (string-append (assoc-ref inputs "libdivsufsort")
11688 "/lib/libdivsufsort.so"))
11689 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11690 (string-append (assoc-ref inputs "libdivsufsort")
11691 "/lib/libdivsufsort64.so")))
11692 (substitute* "CMakeLists.txt"
11693 ;; Don't prefer static libs
11694 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11695 (("find_package\\(Jellyfish.*") "")
11696 (("ExternalProject_Add\\(libjellyfish") "message(")
11697 (("ExternalProject_Add\\(libgff") "message(")
11698 (("ExternalProject_Add\\(libsparsehash") "message(")
11699 (("ExternalProject_Add\\(libdivsufsort") "message("))
11700
11701 ;; Ensure that Eigen headers can be found
11702 (setenv "CPLUS_INCLUDE_PATH"
11703 (string-append (getenv "CPLUS_INCLUDE_PATH")
11704 ":"
11705 (assoc-ref inputs "eigen")
11706 "/include/eigen3"))
11707 #t)))))
11708 (inputs
11709 `(("boost" ,boost)
11710 ("eigen" ,eigen)
11711 ("jemalloc" ,jemalloc)
11712 ("jellyfish" ,jellyfish)
11713 ("sparsehash" ,sparsehash)
11714 ("rapmap" ,(origin
11715 (method git-fetch)
11716 (uri (git-reference
11717 (url "https://github.com/COMBINE-lab/RapMap.git")
11718 (commit (string-append "sf-v" version))))
11719 (file-name (string-append "rapmap-sf-v" version "-checkout"))
11720 (sha256
11721 (base32
11722 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
11723 (modules '((guix build utils)))
11724 ;; These files are expected to be excluded.
11725 (snippet
11726 '(begin (delete-file-recursively "include/spdlog")
11727 (for-each delete-file '("include/xxhash.h"
11728 "src/xxhash.c"))
11729 #t))))
11730 ("libdivsufsort" ,libdivsufsort)
11731 ("libgff" ,libgff)
11732 ("tbb" ,tbb)
11733 ("zlib" ,zlib)))
11734 (native-inputs
11735 `(("pkg-config" ,pkg-config)))
11736 (home-page "http://www.cs.cmu.edu/~ckingsf/software/sailfish")
11737 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
11738 (description "Sailfish is a tool for genomic transcript quantification
11739 from RNA-seq data. It requires a set of target transcripts (either from a
11740 reference or de-novo assembly) to quantify. All you need to run sailfish is a
11741 fasta file containing your reference transcripts and a (set of) fasta/fastq
11742 file(s) containing your reads.")
11743 (license license:gpl3+)))
11744
11745 (define libstadenio-for-salmon
11746 (package
11747 (name "libstadenio")
11748 (version "1.14.8")
11749 (source (origin
11750 (method git-fetch)
11751 (uri (git-reference
11752 (url "https://github.com/COMBINE-lab/staden-io_lib.git")
11753 (commit (string-append "v" version))))
11754 (file-name (string-append name "-" version "-checkout"))
11755 (sha256
11756 (base32
11757 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
11758 (build-system gnu-build-system)
11759 (arguments '(#:parallel-tests? #f)) ; not supported
11760 (inputs
11761 `(("zlib" ,zlib)))
11762 (native-inputs
11763 `(("perl" ,perl))) ; for tests
11764 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
11765 (synopsis "General purpose trace and experiment file library")
11766 (description "This package provides a library of file reading and writing
11767 code to provide a general purpose Trace file (and Experiment File) reading
11768 interface.
11769
11770 The following file formats are supported:
11771
11772 @enumerate
11773 @item SCF trace files
11774 @item ABI trace files
11775 @item ALF trace files
11776 @item ZTR trace files
11777 @item SFF trace archives
11778 @item SRF trace archives
11779 @item Experiment files
11780 @item Plain text files
11781 @item SAM/BAM sequence files
11782 @item CRAM sequence files
11783 @end enumerate\n")
11784 (license license:bsd-3)))
11785
11786 (define spdlog-for-salmon
11787 (package
11788 (name "spdlog")
11789 (version "0.14.0")
11790 (source (origin
11791 (method git-fetch)
11792 (uri (git-reference
11793 (url "https://github.com/COMBINE-lab/spdlog.git")
11794 (commit (string-append "v" version))))
11795 (file-name (string-append name "-" version "-checkout"))
11796 (sha256
11797 (base32
11798 "13730429gwlabi432ilpnja3sfvy0nn2719vnhhmii34xcdyc57q"))))
11799 (build-system cmake-build-system)
11800 (home-page "https://github.com/COMBINE-lab/spdlog")
11801 (synopsis "Very fast C++ logging library")
11802 (description "Spdlog is a very fast header-only C++ logging library with
11803 performance as its primary goal.")
11804 (license license:expat)))
11805
11806 ;; This is a modified variant of bwa for use with Salmon. It installs a
11807 ;; library to avoid having to build this as part of Salmon.
11808 (define bwa-for-salmon
11809 (package (inherit bwa)
11810 (name "bwa")
11811 (version "0.7.12.5")
11812 (source (origin
11813 (method git-fetch)
11814 (uri (git-reference
11815 (url "https://github.com/COMBINE-lab/bwa.git")
11816 (commit (string-append "v" version))))
11817 (file-name (string-append "bwa-for-salmon-" version "-checkout"))
11818 (sha256
11819 (base32
11820 "1z2qa64y0c5hky10510x137mnzlhz6k8qf27csw4w9j6qihq95gb"))))
11821 (build-system gnu-build-system)
11822 (arguments
11823 '(#:tests? #f ;no "check" target
11824 #:phases
11825 (modify-phases %standard-phases
11826 (replace 'install
11827 (lambda* (#:key outputs #:allow-other-keys)
11828 (let* ((out (assoc-ref outputs "out"))
11829 (bin (string-append out "/bin"))
11830 (lib (string-append out "/lib"))
11831 (doc (string-append out "/share/doc/bwa"))
11832 (man (string-append out "/share/man/man1"))
11833 (inc (string-append out "/include/bwa")))
11834 (install-file "bwa" bin)
11835 (install-file "README.md" doc)
11836 (install-file "bwa.1" man)
11837 (install-file "libbwa.a" lib)
11838 (mkdir-p lib)
11839 (mkdir-p inc)
11840 (for-each (lambda (file)
11841 (install-file file inc))
11842 (find-files "." "\\.h$")))
11843 #t))
11844 ;; no "configure" script
11845 (delete 'configure))))))
11846
11847 (define-public salmon
11848 (package
11849 (name "salmon")
11850 (version "0.9.1")
11851 (source (origin
11852 (method git-fetch)
11853 (uri (git-reference
11854 (url "https://github.com/COMBINE-lab/salmon.git")
11855 (commit (string-append "v" version))))
11856 (file-name (string-append name "-" version "-checkout"))
11857 (sha256
11858 (base32
11859 "1zi1ff4i7y2ykk0vdzysgwzzzv166vg2x77pj1mf4baclavxj87a"))
11860 (modules '((guix build utils)))
11861 (snippet
11862 '(begin
11863 ;; Delete bundled headers for eigen3.
11864 (delete-file-recursively "include/eigen3/")
11865 #t))))
11866 (build-system cmake-build-system)
11867 (arguments
11868 `(#:configure-flags
11869 (list (string-append "-DBOOST_INCLUDEDIR="
11870 (assoc-ref %build-inputs "boost")
11871 "/include/")
11872 (string-append "-DBOOST_LIBRARYDIR="
11873 (assoc-ref %build-inputs "boost")
11874 "/lib/")
11875 (string-append "-DBoost_LIBRARIES="
11876 "-lboost_iostreams "
11877 "-lboost_filesystem "
11878 "-lboost_system "
11879 "-lboost_thread "
11880 "-lboost_timer "
11881 "-lboost_chrono "
11882 "-lboost_program_options")
11883 "-DBoost_FOUND=TRUE"
11884 "-DTBB_LIBRARIES=tbb tbbmalloc"
11885 ;; Don't download RapMap---we already have it!
11886 "-DFETCHED_RAPMAP=1")
11887 #:phases
11888 (modify-phases %standard-phases
11889 ;; Boost cannot be found, even though it's right there.
11890 (add-after 'unpack 'do-not-look-for-boost
11891 (lambda* (#:key inputs #:allow-other-keys)
11892 (substitute* "CMakeLists.txt"
11893 (("find_package\\(Boost 1\\.53\\.0") "#"))
11894 #t))
11895 (add-after 'unpack 'do-not-phone-home
11896 (lambda _
11897 (substitute* "src/Salmon.cpp"
11898 (("getVersionMessage\\(\\)") "\"\""))
11899 #t))
11900 (add-after 'unpack 'prepare-rapmap
11901 (lambda* (#:key inputs #:allow-other-keys)
11902 (let ((src "external/install/src/rapmap/")
11903 (include "external/install/include/rapmap/")
11904 (rapmap (assoc-ref inputs "rapmap")))
11905 (mkdir-p src)
11906 (mkdir-p include)
11907 (for-each (lambda (file)
11908 (install-file file src))
11909 (find-files (string-append rapmap "/src") "\\.(c|cpp)"))
11910 (copy-recursively (string-append rapmap "/include") include)
11911 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
11912 "external/install/include/rapmap/FastxParser.hpp"
11913 "external/install/include/rapmap/concurrentqueue.h"
11914 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
11915 "external/install/src/rapmap/FastxParser.cpp"
11916 "external/install/src/rapmap/xxhash.c")))
11917 #t))
11918 (add-after 'unpack 'use-system-libraries
11919 (lambda* (#:key inputs #:allow-other-keys)
11920 (substitute* "src/CMakeLists.txt"
11921 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11922 (string-append (assoc-ref inputs "jellyfish")
11923 "/include/jellyfish-" ,(package-version jellyfish)))
11924 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11925 (string-append (assoc-ref inputs "jellyfish")
11926 "/lib/libjellyfish-2.0.a"))
11927 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11928 (string-append (assoc-ref inputs "libdivsufsort")
11929 "/lib/libdivsufsort.so"))
11930 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
11931 (string-append (assoc-ref inputs "libstadenio-for-salmon")
11932 "/lib/libstaden-read.a"))
11933 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libbwa.a")
11934 (string-append (assoc-ref inputs "bwa") "/lib/libbwa.a"))
11935 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11936 (string-append (assoc-ref inputs "libdivsufsort")
11937 "/lib/libdivsufsort64.so")))
11938 (substitute* "CMakeLists.txt"
11939 ;; Don't prefer static libs
11940 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11941 (("set\\(TBB_LIBRARIES") "message(")
11942 (("find_package\\(Jellyfish.*") "")
11943 (("ExternalProject_Add\\(libcereal") "message(")
11944 (("ExternalProject_Add\\(libbwa") "message(")
11945 (("ExternalProject_Add\\(libjellyfish") "message(")
11946 (("ExternalProject_Add\\(libgff") "message(")
11947 (("ExternalProject_Add\\(libtbb") "message(")
11948 (("ExternalProject_Add\\(libspdlog") "message(")
11949 (("ExternalProject_Add\\(libdivsufsort") "message(")
11950 (("ExternalProject_Add\\(libstadenio") "message(")
11951 (("ExternalProject_Add_Step\\(") "message("))
11952
11953 ;; Ensure that all headers can be found
11954 (setenv "CPLUS_INCLUDE_PATH"
11955 (string-append (getenv "CPLUS_INCLUDE_PATH")
11956 ":"
11957 (assoc-ref inputs "bwa")
11958 "/include/bwa"
11959 ":"
11960 (assoc-ref inputs "eigen")
11961 "/include/eigen3"))
11962 (setenv "CPATH"
11963 (string-append (assoc-ref inputs "bwa")
11964 "/include/bwa"
11965 ":"
11966 (assoc-ref inputs "eigen")
11967 "/include/eigen3"))
11968 #t))
11969 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
11970 ;; run. It only exists after the install phase.
11971 (add-after 'unpack 'fix-tests
11972 (lambda _
11973 (substitute* "src/CMakeLists.txt"
11974 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
11975 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
11976 #t)))))
11977 (inputs
11978 `(("boost" ,boost)
11979 ("bwa" ,bwa-for-salmon)
11980 ("bzip2" ,bzip2)
11981 ("cereal" ,cereal)
11982 ("eigen" ,eigen)
11983 ("rapmap" ,(origin
11984 (method git-fetch)
11985 (uri (git-reference
11986 (url "https://github.com/COMBINE-lab/RapMap.git")
11987 (commit (string-append "salmon-v" version))))
11988 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
11989 (sha256
11990 (base32
11991 "1yc12yqsz6f0r8sg1qnk57xg34aqwc9jbqq6gd5ys28xw3plj98p"))))
11992 ("jemalloc" ,jemalloc)
11993 ("jellyfish" ,jellyfish)
11994 ("libgff" ,libgff)
11995 ("tbb" ,tbb)
11996 ("libdivsufsort" ,libdivsufsort)
11997 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
11998 ("spdlog-for-salmon" ,spdlog-for-salmon)
11999 ("xz" ,xz)
12000 ("zlib" ,zlib)))
12001 (home-page "https://github.com/COMBINE-lab/salmon")
12002 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
12003 (description "Salmon is a program to produce highly-accurate,
12004 transcript-level quantification estimates from RNA-seq data. Salmon achieves
12005 its accuracy and speed via a number of different innovations, including the
12006 use of lightweight alignments (accurate but fast-to-compute proxies for
12007 traditional read alignments) and massively-parallel stochastic collapsed
12008 variational inference.")
12009 (license license:gpl3+)))
12010
12011 (define-public python-loompy
12012 (package
12013 (name "python-loompy")
12014 (version "2.0.17")
12015 ;; The tarball on Pypi does not include the tests.
12016 (source (origin
12017 (method git-fetch)
12018 (uri (git-reference
12019 (url "https://github.com/linnarsson-lab/loompy.git")
12020 (commit version)))
12021 (file-name (git-file-name name version))
12022 (sha256
12023 (base32
12024 "12a5kjgiikapv93wahfw0frszx1lblnppyz3vs5gy8fgmgngra07"))))
12025 (build-system python-build-system)
12026 (arguments
12027 `(#:phases
12028 (modify-phases %standard-phases
12029 (replace 'check
12030 (lambda _
12031 (setenv "PYTHONPATH"
12032 (string-append (getcwd) ":"
12033 (getenv "PYTHONPATH")))
12034 (invoke "pytest" "tests")
12035 #t)))))
12036 (propagated-inputs
12037 `(("python-h5py" ,python-h5py)
12038 ("python-numpy" ,python-numpy)
12039 ("python-pandas" ,python-pandas)
12040 ("python-scipy" ,python-scipy)))
12041 (native-inputs
12042 `(("python-pytest" ,python-pytest)))
12043 (home-page "https://github.com/linnarsson-lab/loompy")
12044 (synopsis "Work with .loom files for single-cell RNA-seq data")
12045 (description "The loom file format is an efficient format for very large
12046 omics datasets, consisting of a main matrix, optional additional layers, a
12047 variable number of row and column annotations. Loom also supports sparse
12048 graphs. This library makes it easy to work with @file{.loom} files for
12049 single-cell RNA-seq data.")
12050 (license license:bsd-3)))
12051
12052 ;; pigx-scrnaseq does not work with the latest version of loompy.
12053 (define-public python-loompy-for-pigx-scrnaseq
12054 (package (inherit python-loompy)
12055 (name "python-loompy")
12056 (version "2.0.3")
12057 (source (origin
12058 (method git-fetch)
12059 (uri (git-reference
12060 (url "https://github.com/linnarsson-lab/loompy.git")
12061 (commit (string-append "v" version))))
12062 (file-name (git-file-name name version))
12063 (sha256
12064 (base32
12065 "0pjyl532pl8sbv71yci6h0agchn0naw2qjcwj50n6afrsahbsag3"))))
12066 ;; There are none.
12067 (arguments '(#:tests? #f))))
12068
12069 ;; We cannot use the latest commit because it requires Java 9.
12070 (define-public java-forester
12071 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12072 (revision "1"))
12073 (package
12074 (name "java-forester")
12075 (version (string-append "0-" revision "." (string-take commit 7)))
12076 (source (origin
12077 (method git-fetch)
12078 (uri (git-reference
12079 (url "https://github.com/cmzmasek/forester.git")
12080 (commit commit)))
12081 (file-name (string-append name "-" version "-checkout"))
12082 (sha256
12083 (base32
12084 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12085 (modules '((guix build utils)))
12086 (snippet
12087 '(begin
12088 ;; Delete bundled jars and pre-built classes
12089 (delete-file-recursively "forester/java/resources")
12090 (delete-file-recursively "forester/java/classes")
12091 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12092 ;; Delete bundled applications
12093 (delete-file-recursively "forester_applications")
12094 #t))))
12095 (build-system ant-build-system)
12096 (arguments
12097 `(#:tests? #f ; there are none
12098 #:jdk ,icedtea-8
12099 #:modules ((guix build ant-build-system)
12100 (guix build utils)
12101 (guix build java-utils)
12102 (sxml simple)
12103 (sxml transform))
12104 #:phases
12105 (modify-phases %standard-phases
12106 (add-after 'unpack 'chdir
12107 (lambda _ (chdir "forester/java") #t))
12108 (add-after 'chdir 'fix-dependencies
12109 (lambda _
12110 (chmod "build.xml" #o664)
12111 (call-with-output-file "build.xml.new"
12112 (lambda (port)
12113 (sxml->xml
12114 (pre-post-order
12115 (with-input-from-file "build.xml"
12116 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12117 `(;; Remove all unjar tags to avoid repacking classes.
12118 (unjar . ,(lambda _ '()))
12119 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12120 (*text* . ,(lambda (_ txt) txt))))
12121 port)))
12122 (rename-file "build.xml.new" "build.xml")
12123 #t))
12124 ;; FIXME: itext is difficult to package as it depends on a few
12125 ;; unpackaged libraries.
12126 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12127 (lambda _
12128 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12129 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12130 (("pdf_written_to = PdfExporter.*")
12131 "throw new IOException(\"PDF export is not available.\");"))
12132 #t))
12133 ;; There is no install target
12134 (replace 'install (install-jars ".")))))
12135 (propagated-inputs
12136 `(("java-commons-codec" ,java-commons-codec)
12137 ("java-openchart2" ,java-openchart2)))
12138 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12139 (synopsis "Phylogenomics libraries for Java")
12140 (description "Forester is a collection of Java libraries for
12141 phylogenomics and evolutionary biology research. It includes support for
12142 reading, writing, and exporting phylogenetic trees.")
12143 (license license:lgpl2.1+))))
12144
12145 (define-public java-forester-1.005
12146 (package
12147 (name "java-forester")
12148 (version "1.005")
12149 (source (origin
12150 (method url-fetch)
12151 (uri (string-append "http://search.maven.org/remotecontent?"
12152 "filepath=org/biojava/thirdparty/forester/"
12153 version "/forester-" version "-sources.jar"))
12154 (file-name (string-append name "-" version ".jar"))
12155 (sha256
12156 (base32
12157 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12158 (build-system ant-build-system)
12159 (arguments
12160 `(#:tests? #f ; there are none
12161 #:jdk ,icedtea-8
12162 #:modules ((guix build ant-build-system)
12163 (guix build utils)
12164 (guix build java-utils)
12165 (sxml simple)
12166 (sxml transform))
12167 #:phases
12168 (modify-phases %standard-phases
12169 (add-after 'unpack 'fix-dependencies
12170 (lambda* (#:key inputs #:allow-other-keys)
12171 (call-with-output-file "build.xml"
12172 (lambda (port)
12173 (sxml->xml
12174 (pre-post-order
12175 (with-input-from-file "src/build.xml"
12176 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12177 `(;; Remove all unjar tags to avoid repacking classes.
12178 (unjar . ,(lambda _ '()))
12179 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12180 (*text* . ,(lambda (_ txt) txt))))
12181 port)))
12182 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12183 "synth_look_and_feel_1.xml")
12184 (copy-file (assoc-ref inputs "phyloxml.xsd")
12185 "phyloxml.xsd")
12186 (substitute* "build.xml"
12187 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12188 "synth_look_and_feel_1.xml")
12189 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12190 "phyloxml.xsd"))
12191 #t))
12192 ;; FIXME: itext is difficult to package as it depends on a few
12193 ;; unpackaged libraries.
12194 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12195 (lambda _
12196 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12197 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12198 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12199 (("pdf_written_to = PdfExporter.*")
12200 "throw new IOException(\"PDF export is not available.\"); /*")
12201 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12202 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12203 #t))
12204 (add-after 'unpack 'delete-pre-built-classes
12205 (lambda _ (delete-file-recursively "src/classes") #t))
12206 ;; There is no install target
12207 (replace 'install (install-jars ".")))))
12208 (propagated-inputs
12209 `(("java-commons-codec" ,java-commons-codec)
12210 ("java-openchart2" ,java-openchart2)))
12211 ;; The source archive does not contain the resources.
12212 (native-inputs
12213 `(("phyloxml.xsd"
12214 ,(origin
12215 (method url-fetch)
12216 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12217 "b61cc2dcede0bede317db362472333115756b8c6/"
12218 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12219 (file-name (string-append name "-phyloxml-" version ".xsd"))
12220 (sha256
12221 (base32
12222 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12223 ("synth_look_and_feel_1.xml"
12224 ,(origin
12225 (method url-fetch)
12226 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12227 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12228 "forester/java/classes/resources/synth_look_and_feel_1.xml"))
12229 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12230 (sha256
12231 (base32
12232 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12233 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12234 (synopsis "Phylogenomics libraries for Java")
12235 (description "Forester is a collection of Java libraries for
12236 phylogenomics and evolutionary biology research. It includes support for
12237 reading, writing, and exporting phylogenetic trees.")
12238 (license license:lgpl2.1+)))
12239
12240 (define-public java-biojava-core
12241 (package
12242 (name "java-biojava-core")
12243 (version "4.2.11")
12244 (source (origin
12245 (method git-fetch)
12246 (uri (git-reference
12247 (url "https://github.com/biojava/biojava")
12248 (commit (string-append "biojava-" version))))
12249 (file-name (string-append name "-" version "-checkout"))
12250 (sha256
12251 (base32
12252 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12253 (build-system ant-build-system)
12254 (arguments
12255 `(#:jdk ,icedtea-8
12256 #:jar-name "biojava-core.jar"
12257 #:source-dir "biojava-core/src/main/java/"
12258 #:test-dir "biojava-core/src/test"
12259 ;; These tests seem to require internet access.
12260 #:test-exclude (list "**/SearchIOTest.java"
12261 "**/BlastXMLParserTest.java"
12262 "**/GenbankCookbookTest.java"
12263 "**/GenbankProxySequenceReaderTest.java")
12264 #:phases
12265 (modify-phases %standard-phases
12266 (add-before 'build 'copy-resources
12267 (lambda _
12268 (copy-recursively "biojava-core/src/main/resources"
12269 "build/classes")
12270 #t))
12271 (add-before 'check 'copy-test-resources
12272 (lambda _
12273 (copy-recursively "biojava-core/src/test/resources"
12274 "build/test-classes")
12275 #t)))))
12276 (propagated-inputs
12277 `(("java-log4j-api" ,java-log4j-api)
12278 ("java-log4j-core" ,java-log4j-core)
12279 ("java-slf4j-api" ,java-slf4j-api)
12280 ("java-slf4j-simple" ,java-slf4j-simple)))
12281 (native-inputs
12282 `(("java-junit" ,java-junit)
12283 ("java-hamcrest-core" ,java-hamcrest-core)))
12284 (home-page "http://biojava.org")
12285 (synopsis "Core libraries of Java framework for processing biological data")
12286 (description "BioJava is a project dedicated to providing a Java framework
12287 for processing biological data. It provides analytical and statistical
12288 routines, parsers for common file formats, reference implementations of
12289 popular algorithms, and allows the manipulation of sequences and 3D
12290 structures. The goal of the biojava project is to facilitate rapid
12291 application development for bioinformatics.
12292
12293 This package provides the core libraries.")
12294 (license license:lgpl2.1+)))
12295
12296 (define-public java-biojava-phylo
12297 (package (inherit java-biojava-core)
12298 (name "java-biojava-phylo")
12299 (build-system ant-build-system)
12300 (arguments
12301 `(#:jdk ,icedtea-8
12302 #:jar-name "biojava-phylo.jar"
12303 #:source-dir "biojava-phylo/src/main/java/"
12304 #:test-dir "biojava-phylo/src/test"
12305 #:phases
12306 (modify-phases %standard-phases
12307 (add-before 'build 'copy-resources
12308 (lambda _
12309 (copy-recursively "biojava-phylo/src/main/resources"
12310 "build/classes")
12311 #t))
12312 (add-before 'check 'copy-test-resources
12313 (lambda _
12314 (copy-recursively "biojava-phylo/src/test/resources"
12315 "build/test-classes")
12316 #t)))))
12317 (propagated-inputs
12318 `(("java-log4j-api" ,java-log4j-api)
12319 ("java-log4j-core" ,java-log4j-core)
12320 ("java-slf4j-api" ,java-slf4j-api)
12321 ("java-slf4j-simple" ,java-slf4j-simple)
12322 ("java-biojava-core" ,java-biojava-core)
12323 ("java-forester" ,java-forester)))
12324 (native-inputs
12325 `(("java-junit" ,java-junit)
12326 ("java-hamcrest-core" ,java-hamcrest-core)))
12327 (home-page "http://biojava.org")
12328 (synopsis "Biojava interface to the forester phylogenomics library")
12329 (description "The phylo module provides a biojava interface layer to the
12330 forester phylogenomics library for constructing phylogenetic trees.")))
12331
12332 (define-public java-biojava-alignment
12333 (package (inherit java-biojava-core)
12334 (name "java-biojava-alignment")
12335 (build-system ant-build-system)
12336 (arguments
12337 `(#:jdk ,icedtea-8
12338 #:jar-name "biojava-alignment.jar"
12339 #:source-dir "biojava-alignment/src/main/java/"
12340 #:test-dir "biojava-alignment/src/test"
12341 #:phases
12342 (modify-phases %standard-phases
12343 (add-before 'build 'copy-resources
12344 (lambda _
12345 (copy-recursively "biojava-alignment/src/main/resources"
12346 "build/classes")
12347 #t))
12348 (add-before 'check 'copy-test-resources
12349 (lambda _
12350 (copy-recursively "biojava-alignment/src/test/resources"
12351 "build/test-classes")
12352 #t)))))
12353 (propagated-inputs
12354 `(("java-log4j-api" ,java-log4j-api)
12355 ("java-log4j-core" ,java-log4j-core)
12356 ("java-slf4j-api" ,java-slf4j-api)
12357 ("java-slf4j-simple" ,java-slf4j-simple)
12358 ("java-biojava-core" ,java-biojava-core)
12359 ("java-biojava-phylo" ,java-biojava-phylo)
12360 ("java-forester" ,java-forester)))
12361 (native-inputs
12362 `(("java-junit" ,java-junit)
12363 ("java-hamcrest-core" ,java-hamcrest-core)))
12364 (home-page "http://biojava.org")
12365 (synopsis "Biojava API for genetic sequence alignment")
12366 (description "The alignment module of BioJava provides an API that
12367 contains
12368
12369 @itemize
12370 @item implementations of dynamic programming algorithms for sequence
12371 alignment;
12372 @item reading and writing of popular alignment file formats;
12373 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12374 @end itemize\n")))
12375
12376 (define-public java-biojava-core-4.0
12377 (package (inherit java-biojava-core)
12378 (name "java-biojava-core")
12379 (version "4.0.0")
12380 (source (origin
12381 (method git-fetch)
12382 (uri (git-reference
12383 (url "https://github.com/biojava/biojava")
12384 (commit (string-append "biojava-" version))))
12385 (file-name (string-append name "-" version "-checkout"))
12386 (sha256
12387 (base32
12388 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
12389
12390 (define-public java-biojava-phylo-4.0
12391 (package (inherit java-biojava-core-4.0)
12392 (name "java-biojava-phylo")
12393 (build-system ant-build-system)
12394 (arguments
12395 `(#:jdk ,icedtea-8
12396 #:jar-name "biojava-phylo.jar"
12397 #:source-dir "biojava-phylo/src/main/java/"
12398 #:test-dir "biojava-phylo/src/test"
12399 #:phases
12400 (modify-phases %standard-phases
12401 (add-before 'build 'copy-resources
12402 (lambda _
12403 (copy-recursively "biojava-phylo/src/main/resources"
12404 "build/classes")
12405 #t))
12406 (add-before 'check 'copy-test-resources
12407 (lambda _
12408 (copy-recursively "biojava-phylo/src/test/resources"
12409 "build/test-classes")
12410 #t)))))
12411 (propagated-inputs
12412 `(("java-log4j-api" ,java-log4j-api)
12413 ("java-log4j-core" ,java-log4j-core)
12414 ("java-slf4j-api" ,java-slf4j-api)
12415 ("java-slf4j-simple" ,java-slf4j-simple)
12416 ("java-biojava-core" ,java-biojava-core-4.0)
12417 ("java-forester" ,java-forester-1.005)))
12418 (native-inputs
12419 `(("java-junit" ,java-junit)
12420 ("java-hamcrest-core" ,java-hamcrest-core)))
12421 (home-page "http://biojava.org")
12422 (synopsis "Biojava interface to the forester phylogenomics library")
12423 (description "The phylo module provides a biojava interface layer to the
12424 forester phylogenomics library for constructing phylogenetic trees.")))
12425
12426 (define-public java-biojava-alignment-4.0
12427 (package (inherit java-biojava-core-4.0)
12428 (name "java-biojava-alignment")
12429 (build-system ant-build-system)
12430 (arguments
12431 `(#:jdk ,icedtea-8
12432 #:jar-name "biojava-alignment.jar"
12433 #:source-dir "biojava-alignment/src/main/java/"
12434 #:test-dir "biojava-alignment/src/test"
12435 #:phases
12436 (modify-phases %standard-phases
12437 (add-before 'build 'copy-resources
12438 (lambda _
12439 (copy-recursively "biojava-alignment/src/main/resources"
12440 "build/classes")
12441 #t))
12442 (add-before 'check 'copy-test-resources
12443 (lambda _
12444 (copy-recursively "biojava-alignment/src/test/resources"
12445 "build/test-classes")
12446 #t)))))
12447 (propagated-inputs
12448 `(("java-log4j-api" ,java-log4j-api)
12449 ("java-log4j-core" ,java-log4j-core)
12450 ("java-slf4j-api" ,java-slf4j-api)
12451 ("java-slf4j-simple" ,java-slf4j-simple)
12452 ("java-biojava-core" ,java-biojava-core-4.0)
12453 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12454 ("java-forester" ,java-forester-1.005)))
12455 (native-inputs
12456 `(("java-junit" ,java-junit)
12457 ("java-hamcrest-core" ,java-hamcrest-core)))
12458 (home-page "http://biojava.org")
12459 (synopsis "Biojava API for genetic sequence alignment")
12460 (description "The alignment module of BioJava provides an API that
12461 contains
12462
12463 @itemize
12464 @item implementations of dynamic programming algorithms for sequence
12465 alignment;
12466 @item reading and writing of popular alignment file formats;
12467 @item a single-, or multi- threaded multiple sequence alignment algorithm.
12468 @end itemize\n")))
12469
12470 (define-public dropseq-tools
12471 (package
12472 (name "dropseq-tools")
12473 (version "1.13")
12474 (source
12475 (origin
12476 (method url-fetch)
12477 (uri "http://mccarrolllab.com/download/1276/")
12478 (file-name (string-append "dropseq-tools-" version ".zip"))
12479 (sha256
12480 (base32
12481 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12482 ;; Delete bundled libraries
12483 (modules '((guix build utils)))
12484 (snippet
12485 '(begin
12486 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
12487 (delete-file-recursively "3rdParty")
12488 #t))))
12489 (build-system ant-build-system)
12490 (arguments
12491 `(#:tests? #f ; test data are not included
12492 #:test-target "test"
12493 #:build-target "all"
12494 #:source-dir "public/src/"
12495 #:jdk ,icedtea-8
12496 #:make-flags
12497 (list (string-append "-Dpicard.executable.dir="
12498 (assoc-ref %build-inputs "java-picard")
12499 "/share/java/"))
12500 #:modules ((ice-9 match)
12501 (srfi srfi-1)
12502 (guix build utils)
12503 (guix build java-utils)
12504 (guix build ant-build-system))
12505 #:phases
12506 (modify-phases %standard-phases
12507 ;; FIXME: fails with "java.io.FileNotFoundException:
12508 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
12509 (delete 'generate-jar-indices)
12510 ;; All dependencies must be linked to "lib", because that's where
12511 ;; they will be searched for when the Class-Path property of the
12512 ;; manifest is computed.
12513 (add-after 'unpack 'record-references
12514 (lambda* (#:key inputs #:allow-other-keys)
12515 (mkdir-p "jar/lib")
12516 (let ((dirs (filter-map (match-lambda
12517 ((name . dir)
12518 (if (and (string-prefix? "java-" name)
12519 (not (string=? name "java-testng")))
12520 dir #f)))
12521 inputs)))
12522 (for-each (lambda (jar)
12523 (symlink jar (string-append "jar/lib/" (basename jar))))
12524 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12525 dirs)))
12526 #t))
12527 ;; There is no installation target
12528 (replace 'install
12529 (lambda* (#:key inputs outputs #:allow-other-keys)
12530 (let* ((out (assoc-ref outputs "out"))
12531 (bin (string-append out "/bin"))
12532 (share (string-append out "/share/java/"))
12533 (lib (string-append share "/lib/"))
12534 (scripts (list "BAMTagHistogram"
12535 "BAMTagofTagCounts"
12536 "BaseDistributionAtReadPosition"
12537 "CollapseBarcodesInPlace"
12538 "CollapseTagWithContext"
12539 "ConvertToRefFlat"
12540 "CreateIntervalsFiles"
12541 "DetectBeadSynthesisErrors"
12542 "DigitalExpression"
12543 "Drop-seq_alignment.sh"
12544 "FilterBAM"
12545 "FilterBAMByTag"
12546 "GatherGeneGCLength"
12547 "GatherMolecularBarcodeDistributionByGene"
12548 "GatherReadQualityMetrics"
12549 "PolyATrimmer"
12550 "ReduceGTF"
12551 "SelectCellsByNumTranscripts"
12552 "SingleCellRnaSeqMetricsCollector"
12553 "TagBamWithReadSequenceExtended"
12554 "TagReadWithGeneExon"
12555 "TagReadWithInterval"
12556 "TrimStartingSequence"
12557 "ValidateReference")))
12558 (for-each mkdir-p (list bin share lib))
12559 (install-file "dist/dropseq.jar" share)
12560 (for-each (lambda (script)
12561 (chmod script #o555)
12562 (install-file script bin))
12563 scripts)
12564 (substitute* (map (lambda (script)
12565 (string-append bin "/" script))
12566 scripts)
12567 (("^java") (which "java"))
12568 (("jar_deploy_dir=.*")
12569 (string-append "jar_deploy_dir=" share "\n"))))
12570 #t))
12571 ;; FIXME: We do this after stripping jars because we don't want it to
12572 ;; copy all these jars and strip them. We only want to install
12573 ;; links. Arguably, this is a problem with the ant-build-system.
12574 (add-after 'strip-jar-timestamps 'install-links
12575 (lambda* (#:key outputs #:allow-other-keys)
12576 (let* ((out (assoc-ref outputs "out"))
12577 (share (string-append out "/share/java/"))
12578 (lib (string-append share "/lib/")))
12579 (for-each (lambda (jar)
12580 (symlink (readlink jar)
12581 (string-append lib (basename jar))))
12582 (find-files "jar/lib" "\\.jar$")))
12583 #t)))))
12584 (inputs
12585 `(("jdk" ,icedtea-8)
12586 ("java-picard" ,java-picard-2.10.3)
12587 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12588 ("java-commons-math3" ,java-commons-math3)
12589 ("java-commons-jexl2" ,java-commons-jexl-2)
12590 ("java-commons-collections4" ,java-commons-collections4)
12591 ("java-commons-lang2" ,java-commons-lang)
12592 ("java-commons-io" ,java-commons-io)
12593 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12594 ("java-guava" ,java-guava)
12595 ("java-la4j" ,java-la4j)
12596 ("java-biojava-core" ,java-biojava-core-4.0)
12597 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12598 ("java-jdistlib" ,java-jdistlib)
12599 ("java-simple-xml" ,java-simple-xml)
12600 ("java-snakeyaml" ,java-snakeyaml)))
12601 (native-inputs
12602 `(("unzip" ,unzip)
12603 ("java-testng" ,java-testng)))
12604 (home-page "http://mccarrolllab.com/dropseq/")
12605 (synopsis "Tools for Drop-seq analyses")
12606 (description "Drop-seq is a technology to enable biologists to
12607 analyze RNA expression genome-wide in thousands of individual cells at
12608 once. This package provides tools to perform Drop-seq analyses.")
12609 (license license:expat)))
12610
12611 (define-public pigx-rnaseq
12612 (package
12613 (name "pigx-rnaseq")
12614 (version "0.0.5")
12615 (source (origin
12616 (method url-fetch)
12617 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
12618 "releases/download/v" version
12619 "/pigx_rnaseq-" version ".tar.gz"))
12620 (sha256
12621 (base32
12622 "05gn658zpj9xki5dbs728z9zxq1mcm25hkwr5vzwqxsfi15l5f2l"))))
12623 (build-system gnu-build-system)
12624 (arguments
12625 `(#:parallel-tests? #f ; not supported
12626 #:phases
12627 (modify-phases %standard-phases
12628 ;; "test.sh" runs STAR, which requires excessive amounts of memory.
12629 (add-after 'unpack 'disable-resource-intensive-test
12630 (lambda _
12631 (substitute* "Makefile.in"
12632 (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
12633 (("^ tests/test_multiqc/test.sh") "")
12634 (("^ test.sh") ""))
12635 #t)))))
12636 (inputs
12637 `(("gzip" ,gzip)
12638 ("snakemake" ,snakemake)
12639 ("fastqc" ,fastqc)
12640 ("multiqc" ,multiqc)
12641 ("star" ,star)
12642 ("trim-galore" ,trim-galore)
12643 ("htseq" ,htseq)
12644 ("samtools" ,samtools)
12645 ("bedtools" ,bedtools)
12646 ("r-minimal" ,r-minimal)
12647 ("r-rmarkdown" ,r-rmarkdown)
12648 ("r-ggplot2" ,r-ggplot2)
12649 ("r-ggrepel" ,r-ggrepel)
12650 ("r-gprofiler" ,r-gprofiler)
12651 ("r-deseq2" ,r-deseq2)
12652 ("r-dt" ,r-dt)
12653 ("r-knitr" ,r-knitr)
12654 ("r-pheatmap" ,r-pheatmap)
12655 ("r-corrplot" ,r-corrplot)
12656 ("r-reshape2" ,r-reshape2)
12657 ("r-plotly" ,r-plotly)
12658 ("r-scales" ,r-scales)
12659 ("r-summarizedexperiment" ,r-summarizedexperiment)
12660 ("r-crosstalk" ,r-crosstalk)
12661 ("r-tximport" ,r-tximport)
12662 ("r-rtracklayer" ,r-rtracklayer)
12663 ("r-rjson" ,r-rjson)
12664 ("salmon" ,salmon)
12665 ("ghc-pandoc" ,ghc-pandoc)
12666 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12667 ("python-wrapper" ,python-wrapper)
12668 ("python-pyyaml" ,python-pyyaml)))
12669 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12670 (synopsis "Analysis pipeline for RNA sequencing experiments")
12671 (description "PiGX RNAseq is an analysis pipeline for preprocessing and
12672 reporting for RNA sequencing experiments. It is easy to use and produces high
12673 quality reports. The inputs are reads files from the sequencing experiment,
12674 and a configuration file which describes the experiment. In addition to
12675 quality control of the experiment, the pipeline produces a differential
12676 expression report comparing samples in an easily configurable manner.")
12677 (license license:gpl3+)))
12678
12679 (define-public pigx-chipseq
12680 (package
12681 (name "pigx-chipseq")
12682 (version "0.0.40")
12683 (source (origin
12684 (method url-fetch)
12685 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
12686 "releases/download/v" version
12687 "/pigx_chipseq-" version ".tar.gz"))
12688 (sha256
12689 (base32
12690 "0y9x62cfwzhsp82imnawyamxp58bcb00yjxdy44spylqnjdlsaj8"))))
12691 (build-system gnu-build-system)
12692 ;; parts of the tests rely on access to the network
12693 (arguments '(#:tests? #f))
12694 (inputs
12695 `(("grep" ,grep)
12696 ("coreutils" ,coreutils)
12697 ("r-minimal" ,r-minimal)
12698 ("r-argparser" ,r-argparser)
12699 ("r-biocparallel" ,r-biocparallel)
12700 ("r-biostrings" ,r-biostrings)
12701 ("r-chipseq" ,r-chipseq)
12702 ("r-data-table" ,r-data-table)
12703 ("r-dplyr" ,r-dplyr)
12704 ("r-genomation" ,r-genomation)
12705 ("r-genomicalignments" ,r-genomicalignments)
12706 ("r-genomicranges" ,r-genomicranges)
12707 ("r-rsamtools" ,r-rsamtools)
12708 ("r-rtracklayer" ,r-rtracklayer)
12709 ("r-s4vectors" ,r-s4vectors)
12710 ("r-stringr" ,r-stringr)
12711 ("r-tibble" ,r-tibble)
12712 ("r-tidyr" ,r-tidyr)
12713 ("r-jsonlite" ,r-jsonlite)
12714 ("r-heatmaply" ,r-heatmaply)
12715 ("r-htmlwidgets" ,r-htmlwidgets)
12716 ("r-ggplot2" ,r-ggplot2)
12717 ("r-plotly" ,r-plotly)
12718 ("r-rmarkdown" ,r-rmarkdown)
12719 ("python-wrapper" ,python-wrapper)
12720 ("python-pyyaml" ,python-pyyaml)
12721 ("python-magic" ,python-magic)
12722 ("python-xlrd" ,python-xlrd)
12723 ("trim-galore" ,trim-galore)
12724 ("macs" ,macs)
12725 ("multiqc" ,multiqc)
12726 ("perl" ,perl)
12727 ("ghc-pandoc" ,ghc-pandoc)
12728 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12729 ("fastqc" ,fastqc)
12730 ("bowtie" ,bowtie)
12731 ("idr" ,idr)
12732 ("snakemake" ,snakemake)
12733 ("samtools" ,samtools)
12734 ("bedtools" ,bedtools)
12735 ("kentutils" ,kentutils)))
12736 (native-inputs
12737 `(("python-pytest" ,python-pytest)))
12738 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12739 (synopsis "Analysis pipeline for ChIP sequencing experiments")
12740 (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
12741 calling and reporting for ChIP sequencing experiments. It is easy to use and
12742 produces high quality reports. The inputs are reads files from the sequencing
12743 experiment, and a configuration file which describes the experiment. In
12744 addition to quality control of the experiment, the pipeline enables to set up
12745 multiple peak calling analysis and allows the generation of a UCSC track hub
12746 in an easily configurable manner.")
12747 (license license:gpl3+)))
12748
12749 (define-public pigx-bsseq
12750 (package
12751 (name "pigx-bsseq")
12752 (version "0.0.10")
12753 (source (origin
12754 (method url-fetch)
12755 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
12756 "releases/download/v" version
12757 "/pigx_bsseq-" version ".tar.gz"))
12758 (sha256
12759 (base32
12760 "0l97wvkq4diq8lcarraj33bby1zzf0w804jwi8mlc5qddp8idwhy"))))
12761 (build-system gnu-build-system)
12762 (arguments
12763 `(#:phases
12764 (modify-phases %standard-phases
12765 (add-before 'check 'set-timezone
12766 ;; The readr package is picky about timezones.
12767 (lambda* (#:key inputs #:allow-other-keys)
12768 (setenv "TZ" "UTC+1")
12769 (setenv "TZDIR"
12770 (string-append (assoc-ref inputs "tzdata")
12771 "/share/zoneinfo"))
12772 #t)))))
12773 (native-inputs
12774 `(("tzdata" ,tzdata)))
12775 (inputs
12776 `(("coreutils" ,coreutils)
12777 ("sed" ,sed)
12778 ("grep" ,grep)
12779 ("r-minimal" ,r-minimal)
12780 ("r-annotationhub" ,r-annotationhub)
12781 ("r-dt" ,r-dt)
12782 ("r-genomation" ,r-genomation)
12783 ("r-methylkit" ,r-methylkit)
12784 ("r-rtracklayer" ,r-rtracklayer)
12785 ("r-rmarkdown" ,r-rmarkdown)
12786 ("r-bookdown" ,r-bookdown)
12787 ("r-ggplot2" ,r-ggplot2)
12788 ("r-ggbio" ,r-ggbio)
12789 ("ghc-pandoc" ,ghc-pandoc)
12790 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12791 ("python-wrapper" ,python-wrapper)
12792 ("python-pyyaml" ,python-pyyaml)
12793 ("snakemake" ,snakemake)
12794 ("bismark" ,bismark)
12795 ("fastqc" ,fastqc)
12796 ("bowtie" ,bowtie)
12797 ("trim-galore" ,trim-galore)
12798 ("cutadapt" ,cutadapt)
12799 ("samtools" ,samtools)))
12800 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12801 (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
12802 (description "PiGx BSseq is a data processing pipeline for raw fastq read
12803 data of bisulfite experiments; it produces reports on aggregate methylation
12804 and coverage and can be used to produce information on differential
12805 methylation and segmentation.")
12806 (license license:gpl3+)))
12807
12808 (define-public pigx-scrnaseq
12809 (package
12810 (name "pigx-scrnaseq")
12811 (version "0.0.7")
12812 (source (origin
12813 (method url-fetch)
12814 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
12815 "releases/download/v" version
12816 "/pigx_scrnaseq-" version ".tar.gz"))
12817 (sha256
12818 (base32
12819 "131zarirv16w8653m0d66jgjnwqfsxqc0hix0rypssz4d83bl51j"))))
12820 (build-system gnu-build-system)
12821 (arguments
12822 `(#:configure-flags
12823 (list (string-append "PICARDJAR=" (assoc-ref %build-inputs "java-picard")
12824 "/share/java/picard.jar")
12825 (string-append "DROPSEQJAR=" (assoc-ref %build-inputs "dropseq-tools")
12826 "/share/java/dropseq.jar"))))
12827 (inputs
12828 `(("coreutils" ,coreutils)
12829 ("perl" ,perl)
12830 ("dropseq-tools" ,dropseq-tools)
12831 ("fastqc" ,fastqc)
12832 ("java-picard" ,java-picard-2.10.3) ; same as for dropseq
12833 ("java" ,icedtea-8)
12834 ("python-wrapper" ,python-wrapper)
12835 ("python-pyyaml" ,python-pyyaml)
12836 ("python-pandas" ,python-pandas)
12837 ("python-magic" ,python-magic)
12838 ("python-numpy" ,python-numpy)
12839 ("python-loompy" ,python-loompy-for-pigx-scrnaseq)
12840 ("ghc-pandoc" ,ghc-pandoc)
12841 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
12842 ("samtools" ,samtools)
12843 ("snakemake" ,snakemake)
12844 ("star" ,star)
12845 ("r-minimal" ,r-minimal)
12846 ("r-argparser" ,r-argparser)
12847 ("r-cowplot" ,r-cowplot)
12848 ("r-data-table" ,r-data-table)
12849 ("r-delayedarray" ,r-delayedarray)
12850 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
12851 ("r-dplyr" ,r-dplyr)
12852 ("r-dropbead" ,r-dropbead)
12853 ("r-dt" ,r-dt)
12854 ("r-genomicalignments" ,r-genomicalignments)
12855 ("r-genomicfiles" ,r-genomicfiles)
12856 ("r-genomicranges" ,r-genomicranges)
12857 ("r-ggplot2" ,r-ggplot2)
12858 ("r-hdf5array" ,r-hdf5array)
12859 ("r-pheatmap" ,r-pheatmap)
12860 ("r-rmarkdown" ,r-rmarkdown)
12861 ("r-rsamtools" ,r-rsamtools)
12862 ("r-rtracklayer" ,r-rtracklayer)
12863 ("r-rtsne" ,r-rtsne)
12864 ("r-scater" ,r-scater)
12865 ("r-scran" ,r-scran)
12866 ("r-singlecellexperiment" ,r-singlecellexperiment)
12867 ("r-stringr" ,r-stringr)
12868 ("r-yaml" ,r-yaml)))
12869 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12870 (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
12871 (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
12872 quality control for single cell RNA sequencing experiments. The inputs are
12873 read files from the sequencing experiment, and a configuration file which
12874 describes the experiment. It produces processed files for downstream analysis
12875 and interactive quality reports. The pipeline is designed to work with UMI
12876 based methods.")
12877 (license license:gpl3+)))
12878
12879 (define-public pigx
12880 (package
12881 (name "pigx")
12882 (version "0.0.3")
12883 (source (origin
12884 (method url-fetch)
12885 (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
12886 "releases/download/v" version
12887 "/pigx-" version ".tar.gz"))
12888 (sha256
12889 (base32
12890 "1i5njdy1clj5ncw45d16p7mwmqvb1ilikl9n797pxklc3f4s7mq7"))))
12891 (build-system gnu-build-system)
12892 (inputs
12893 `(("python" ,python)
12894 ("pigx-bsseq" ,pigx-bsseq)
12895 ("pigx-chipseq" ,pigx-chipseq)
12896 ("pigx-rnaseq" ,pigx-rnaseq)
12897 ("pigx-scrnaseq" ,pigx-scrnaseq)))
12898 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12899 (synopsis "Analysis pipelines for genomics")
12900 (description "PiGx is a collection of genomics pipelines. It includes the
12901 following pipelines:
12902
12903 @itemize
12904 @item PiGx BSseq for raw fastq read data of bisulfite experiments
12905 @item PiGx RNAseq for RNAseq samples
12906 @item PiGx scRNAseq for single cell dropseq analysis
12907 @item PiGx ChIPseq for reads from ChIPseq experiments
12908 @end itemize
12909
12910 All pipelines are easily configured with a simple sample sheet and a
12911 descriptive settings file. The result is a set of comprehensive, interactive
12912 HTML reports with interesting findings about your samples.")
12913 (license license:gpl3+)))
12914
12915 (define-public genrich
12916 (package
12917 (name "genrich")
12918 (version "0.5")
12919 (source (origin
12920 (method git-fetch)
12921 (uri (git-reference
12922 (url "https://github.com/jsh58/Genrich.git")
12923 (commit (string-append "v" version))))
12924 (sha256
12925 (base32
12926 "0x0q6z0208n3cxzqjla4rgjqpyqgwpmz27852lcvzkzaigymq4zp"))))
12927 (build-system gnu-build-system)
12928 (arguments
12929 `(#:tests? #f ; there are none
12930 #:phases
12931 (modify-phases %standard-phases
12932 (delete 'configure)
12933 (replace 'install
12934 (lambda* (#:key outputs #:allow-other-keys)
12935 (install-file "Genrich" (string-append (assoc-ref outputs "out") "/bin"))
12936 #t)))))
12937 (inputs
12938 `(("zlib" ,zlib)))
12939 (home-page "https://github.com/jsh58/Genrich")
12940 (synopsis "Detecting sites of genomic enrichment")
12941 (description "Genrich is a peak-caller for genomic enrichment
12942 assays (e.g. ChIP-seq, ATAC-seq). It analyzes alignment files generated
12943 following the assay and produces a file detailing peaks of significant
12944 enrichment.")
12945 (license license:expat)))
12946
12947 (define-public mantis
12948 (let ((commit "4ffd171632c2cb0056a86d709dfd2bf21bc69b84")
12949 (revision "1"))
12950 (package
12951 (name "mantis")
12952 (version (git-version "0" revision commit))
12953 (source (origin
12954 (method git-fetch)
12955 (uri (git-reference
12956 (url "https://github.com/splatlab/mantis.git")
12957 (commit commit)))
12958 (file-name (git-file-name name version))
12959 (sha256
12960 (base32
12961 "0iqbr0dhmlc8mzpirmm2s4pkzkwdgrcx50yx6cv3wlr2qi064p55"))))
12962 (build-system cmake-build-system)
12963 (arguments '(#:tests? #f)) ; there are none
12964 (inputs
12965 `(("sdsl-lite" ,sdsl-lite)
12966 ("openssl" ,openssl)
12967 ("zlib" ,zlib)))
12968 (home-page "https://github.com/splatlab/mantis")
12969 (synopsis "Large-scale sequence-search index data structure")
12970 (description "Mantis is a space-efficient data structure that can be
12971 used to index thousands of raw-read genomics experiments and facilitate
12972 large-scale sequence searches on those experiments. Mantis uses counting
12973 quotient filters instead of Bloom filters, enabling rapid index builds and
12974 queries, small indexes, and exact results, i.e., no false positives or
12975 negatives. Furthermore, Mantis is also a colored de Bruijn graph
12976 representation, so it supports fast graph traversal and other topological
12977 analyses in addition to large-scale sequence-level searches.")
12978 ;; uses __uint128_t and inline assembly
12979 (supported-systems '("x86_64-linux"))
12980 (license license:bsd-3))))
12981
12982 (define-public r-diversitree
12983 (package
12984 (name "r-diversitree")
12985 (version "0.9-11")
12986 (source
12987 (origin
12988 (method url-fetch)
12989 (uri (cran-uri "diversitree" version))
12990 (sha256
12991 (base32
12992 "1jqfjmmaigq581l4zxysmkhld0xv6izlbr1hihf9zplkix36majc"))))
12993 (build-system r-build-system)
12994 (native-inputs
12995 `(("gfortran" ,gfortran)))
12996 (inputs `(("fftw" ,fftw) ("gsl" ,gsl)))
12997 (propagated-inputs
12998 `(("r-ape" ,r-ape)
12999 ("r-desolve" ,r-desolve)
13000 ("r-rcpp" ,r-rcpp)
13001 ("r-subplex" ,r-subplex)))
13002 (home-page "https://www.zoology.ubc.ca/prog/diversitree")
13003 (synopsis "Comparative 'phylogenetic' analyses of diversification")
13004 (description "This package contains a number of comparative \"phylogenetic\"
13005 methods, mostly focusing on analysing diversification and character evolution.
13006 Contains implementations of \"BiSSE\" (Binary State Speciation and Extinction)
13007 and its unresolved tree extensions, \"MuSSE\" (Multiple State Speciation and
13008 Extinction), \"QuaSSE\", \"GeoSSE\", and \"BiSSE-ness\" Other included methods
13009 include Markov models of discrete and continuous trait evolution and constant
13010 rate speciation and extinction.")
13011 (license license:gpl2+)))
13012
13013 (define-public sjcount
13014 ;; There is no tag for version 3.2, nor is there a release archive.
13015 (let ((commit "292d3917cadb3f6834c81e509c30e61cd7ead6e5")
13016 (revision "1"))
13017 (package
13018 (name "sjcount")
13019 (version (git-version "3.2" revision commit))
13020 (source (origin
13021 (method git-fetch)
13022 (uri (git-reference
13023 (url "https://github.com/pervouchine/sjcount-full.git")
13024 (commit commit)))
13025 (file-name (string-append name "-" version "-checkout"))
13026 (sha256
13027 (base32
13028 "0gdgj35j249f04rqgq8ymcc1xg1vi9kzbajnjqpaq2wpbh8bl234"))))
13029 (build-system gnu-build-system)
13030 (arguments
13031 `(#:tests? #f ; requires a 1.4G test file
13032 #:make-flags
13033 (list (string-append "SAMTOOLS_DIR="
13034 (assoc-ref %build-inputs "samtools")
13035 "/lib/"))
13036 #:phases
13037 (modify-phases %standard-phases
13038 (replace 'configure
13039 (lambda* (#:key inputs #:allow-other-keys)
13040 (substitute* "makefile"
13041 (("-I \\$\\{SAMTOOLS_DIR\\}")
13042 (string-append "-I" (assoc-ref inputs "samtools")
13043 "/include/samtools"))
13044 (("-lz ") "-lz -lpthread "))
13045 #t))
13046 (replace 'install
13047 (lambda* (#:key outputs #:allow-other-keys)
13048 (for-each (lambda (tool)
13049 (install-file tool
13050 (string-append (assoc-ref outputs "out")
13051 "/bin")))
13052 '("j_count" "b_count" "sjcount"))
13053 #t)))))
13054 (inputs
13055 `(("samtools" ,samtools-0.1)
13056 ("zlib" ,zlib)))
13057 (home-page "https://github.com/pervouchine/sjcount-full/")
13058 (synopsis "Annotation-agnostic splice junction counting pipeline")
13059 (description "Sjcount is a utility for fast quantification of splice
13060 junctions in RNA-seq data. It is annotation-agnostic and offset-aware. This
13061 version does count multisplits.")
13062 (license license:gpl3+))))
13063
13064 (define-public minimap2
13065 (package
13066 (name "minimap2")
13067 (version "2.10")
13068 (source
13069 (origin
13070 (method url-fetch)
13071 (uri (string-append "https://github.com/lh3/minimap2/"
13072 "releases/download/v" version "/"
13073 "minimap2-" version ".tar.bz2"))
13074 (sha256
13075 (base32
13076 "080w9066irkbhbyr4nmf19pzkdd2s4v31hpzlajgq2y0drr6zcsj"))))
13077 (build-system gnu-build-system)
13078 (arguments
13079 `(#:tests? #f ; there are none
13080 #:make-flags
13081 (list "CC=gcc"
13082 (let ((system ,(or (%current-target-system)
13083 (%current-system))))
13084 (cond
13085 ((string-prefix? "x86_64" system)
13086 "all")
13087 ((or (string-prefix? "armhf" system)
13088 (string-prefix? "aarch64" system))
13089 "arm_neon=1")
13090 (_ "sse2only=1"))))
13091 #:phases
13092 (modify-phases %standard-phases
13093 (delete 'configure)
13094 (replace 'install
13095 (lambda* (#:key outputs #:allow-other-keys)
13096 (let* ((out (assoc-ref outputs "out"))
13097 (bin (string-append out "/bin"))
13098 (man (string-append out "/share/man/man1")))
13099 (install-file "minimap2" bin)
13100 (mkdir-p man)
13101 (install-file "minimap2.1" man))
13102 #t)))))
13103 (inputs
13104 `(("zlib" ,zlib)))
13105 (home-page "https://lh3.github.io/minimap2/")
13106 (synopsis "Pairwise aligner for genomic and spliced nucleotide sequences")
13107 (description "Minimap2 is a versatile sequence alignment program that
13108 aligns DNA or mRNA sequences against a large reference database. Typical use
13109 cases include:
13110
13111 @enumerate
13112 @item mapping PacBio or Oxford Nanopore genomic reads to the human genome;
13113 @item finding overlaps between long reads with error rate up to ~15%;
13114 @item splice-aware alignment of PacBio Iso-Seq or Nanopore cDNA or Direct RNA
13115 reads against a reference genome;
13116 @item aligning Illumina single- or paired-end reads;
13117 @item assembly-to-assembly alignment;
13118 @item full-genome alignment between two closely related species with
13119 divergence below ~15%.
13120 @end enumerate\n")
13121 (license license:expat)))
13122
13123 (define-public r-circus
13124 (package
13125 (name "r-circus")
13126 (version "0.1.5")
13127 (source
13128 (origin
13129 (method git-fetch)
13130 (uri (git-reference
13131 (url "https://github.com/BIMSBbioinfo/ciRcus.git")
13132 (commit (string-append "v" version))))
13133 (file-name (git-file-name name version))
13134 (sha256
13135 (base32
13136 "0jhjn3ilb057hbf6yzrihj13ifxxs32y7nkby8l3lkm28dg4p97h"))))
13137 (build-system r-build-system)
13138 (propagated-inputs
13139 `(("r-annotationdbi" ,r-annotationdbi)
13140 ("r-annotationhub" ,r-annotationhub)
13141 ("r-biomart" ,r-biomart)
13142 ("r-data-table" ,r-data-table)
13143 ("r-dbi" ,r-dbi)
13144 ("r-genomicfeatures" ,r-genomicfeatures)
13145 ("r-genomicranges" ,r-genomicranges)
13146 ("r-ggplot2" ,r-ggplot2)
13147 ("r-hash" ,r-hash)
13148 ("r-iranges" ,r-iranges)
13149 ("r-rcolorbrewer" ,r-rcolorbrewer)
13150 ("r-rmysql" ,r-rmysql)
13151 ("r-s4vectors" ,r-s4vectors)
13152 ("r-stringr" ,r-stringr)
13153 ("r-summarizedexperiment" ,r-summarizedexperiment)))
13154 (native-inputs
13155 `(("r-knitr" ,r-knitr)))
13156 (home-page "https://github.com/BIMSBbioinfo/ciRcus")
13157 (synopsis "Annotation, analysis and visualization of circRNA data")
13158 (description "Circus is an R package for annotation, analysis and
13159 visualization of circRNA data. Users can annotate their circRNA candidates
13160 with host genes, gene featrues they are spliced from, and discriminate between
13161 known and yet unknown splice junctions. Circular-to-linear ratios of circRNAs
13162 can be calculated, and a number of descriptive plots easily generated.")
13163 (license license:artistic2.0)))
13164
13165 (define-public r-loomr
13166 (let ((commit "df0144bd2bbceca6fadef9edc1bbc5ca672d4739")
13167 (revision "1"))
13168 (package
13169 (name "r-loomr")
13170 (version (git-version "0.2.0" revision commit))
13171 (source
13172 (origin
13173 (method git-fetch)
13174 (uri (git-reference
13175 (url "https://github.com/mojaveazure/loomR.git")
13176 (commit commit)))
13177 (file-name (git-file-name name version))
13178 (sha256
13179 (base32
13180 "1b1g4dlmfdyhn56bz1mkh9ymirri43wiz7rjhs7py3y7bdw1s3yr"))))
13181 (build-system r-build-system)
13182 (propagated-inputs
13183 `(("r-r6" ,r-r6)
13184 ("r-hdf5r" ,r-hdf5r)
13185 ("r-iterators" ,r-iterators)
13186 ("r-itertools" ,r-itertools)
13187 ("r-matrix" ,r-matrix)))
13188 (home-page "https://github.com/mojaveazure/loomR")
13189 (synopsis "R interface for loom files")
13190 (description "This package provides an R interface to access, create,
13191 and modify loom files. loomR aims to be completely compatible with loompy.")
13192 (license license:gpl3))))
13193
13194 (define-public gffread
13195 ;; We cannot use the tagged release because it is not in sync with gclib.
13196 ;; See https://github.com/gpertea/gffread/issues/26
13197 (let ((commit "ba7535fcb3cea55a6e5a491d916e93b454e87fd0")
13198 (revision "1"))
13199 (package
13200 (name "gffread")
13201 (version (git-version "0.9.12" revision commit))
13202 (source
13203 (origin
13204 (method git-fetch)
13205 (uri (git-reference
13206 (url "https://github.com/gpertea/gffread.git")
13207 (commit commit)))
13208 (file-name (git-file-name name version))
13209 (sha256
13210 (base32
13211 "1dl2nbcg96lxpd0drg48ssa8343nf7pw9s9mkrc4mjjmfwsin3ki"))))
13212 (build-system gnu-build-system)
13213 (arguments
13214 `(#:tests? #f ; no check target
13215 #:make-flags
13216 (list "GCLDIR=gclib")
13217 #:phases
13218 (modify-phases %standard-phases
13219 (delete 'configure)
13220 (add-after 'unpack 'copy-gclib-source
13221 (lambda* (#:key inputs #:allow-other-keys)
13222 (mkdir-p "gclib")
13223 (copy-recursively (assoc-ref inputs "gclib-source") "gclib")
13224 #t))
13225 ;; There is no install target
13226 (replace 'install
13227 (lambda* (#:key outputs #:allow-other-keys)
13228 (let* ((out (assoc-ref outputs "out"))
13229 (bin (string-append out "/bin")))
13230 (install-file "gffread" bin))
13231 #t)))))
13232 (native-inputs
13233 `(("gclib-source"
13234 ,(let ((version "0.10.3")
13235 (commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13236 (revision "1"))
13237 (origin
13238 (method git-fetch)
13239 (uri (git-reference
13240 (url "https://github.com/gpertea/gclib.git")
13241 (commit commit)))
13242 (file-name (git-file-name "gclib" version))
13243 (sha256
13244 (base32
13245 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13246 (home-page "https://github.com/gpertea/gffread/")
13247 (synopsis "Parse and convert GFF/GTF files")
13248 (description
13249 "This package provides a GFF/GTF file parsing utility providing format
13250 conversions, region filtering, FASTA sequence extraction and more.")
13251 ;; gffread is under Expat, but gclib is under Artistic 2.0
13252 (license (list license:expat
13253 license:artistic2.0)))))
13254
13255 (define-public find-circ
13256 ;; The last release was in 2015. The license was clarified in 2017, so we
13257 ;; take the latest commit.
13258 (let ((commit "8655dca54970fcf7e92e22fbf57e1188724dda7d")
13259 (revision "1"))
13260 (package
13261 (name "find-circ")
13262 (version (git-version "1.2" revision commit))
13263 (source
13264 (origin
13265 (method git-fetch)
13266 (uri (git-reference
13267 (url "https://github.com/marvin-jens/find_circ.git")
13268 (commit commit)))
13269 (file-name (git-file-name name version))
13270 (sha256
13271 (base32
13272 "0p77pbqbclqr4srms34y1b9b4njybfpjiknc11ki84f3p8skb3cg"))))
13273 (build-system gnu-build-system)
13274 (arguments
13275 `(#:tests? #f ; there are none
13276 #:phases
13277 ;; There is no actual build system.
13278 (modify-phases %standard-phases
13279 (delete 'configure)
13280 (delete 'build)
13281 (replace 'install
13282 (lambda* (#:key outputs #:allow-other-keys)
13283 (let* ((out (assoc-ref outputs "out"))
13284 (bin (string-append out "/bin"))
13285 (path (getenv "PYTHONPATH")))
13286 (for-each (lambda (script)
13287 (install-file script bin)
13288 (wrap-program (string-append bin "/" script)
13289 `("PYTHONPATH" ":" prefix (,path))))
13290 '("cmp_bed.py"
13291 "find_circ.py"
13292 "maxlength.py"
13293 "merge_bed.py"
13294 "unmapped2anchors.py")))
13295 #t)))))
13296 (inputs
13297 `(("python2" ,python-2)
13298 ("python2-pysam" ,python2-pysam)
13299 ("python2-numpy" ,python2-numpy)))
13300 (home-page "https://github.com/marvin-jens/find_circ")
13301 (synopsis "circRNA detection from RNA-seq reads")
13302 (description "This package provides tools to detect head-to-tail
13303 spliced (back-spliced) sequencing reads, indicative of circular RNA (circRNA)
13304 in RNA-seq data.")
13305 (license license:gpl3))))
13306
13307 (define-public python-scanpy
13308 (package
13309 (name "python-scanpy")
13310 (version "1.4")
13311 ;; Fetch from git because the pypi tarball does not include tests.
13312 (source
13313 (origin
13314 (method git-fetch)
13315 (uri (git-reference
13316 (url "https://github.com/theislab/scanpy.git")
13317 (commit version)))
13318 (file-name (git-file-name name version))
13319 (sha256
13320 (base32
13321 "0zn6x6c0cnm1a20i6isigwb51g3pr9zpjk8r1minjqnxi5yc9pm4"))))
13322 (build-system python-build-system)
13323 (arguments
13324 `(#:phases
13325 (modify-phases %standard-phases
13326 (replace 'check
13327 (lambda* (#:key inputs #:allow-other-keys)
13328 ;; These tests require Internet access.
13329 (delete-file-recursively "scanpy/tests/notebooks")
13330 (delete-file "scanpy/tests/test_clustering.py")
13331
13332 ;; TODO: I can't get the plotting tests to work, even with Xvfb.
13333 (delete-file "scanpy/tests/test_plotting.py")
13334 (delete-file "scanpy/tests/test_preprocessing.py")
13335 (delete-file "scanpy/tests/test_read_10x.py")
13336
13337 (setenv "PYTHONPATH"
13338 (string-append (getcwd) ":"
13339 (getenv "PYTHONPATH")))
13340 (invoke "pytest")
13341 #t)))))
13342 (propagated-inputs
13343 `(("python-anndata" ,python-anndata)
13344 ("python-h5py" ,python-h5py)
13345 ("python-igraph" ,python-igraph)
13346 ("python-joblib" ,python-joblib)
13347 ("python-louvain" ,python-louvain)
13348 ("python-matplotlib" ,python-matplotlib)
13349 ("python-natsort" ,python-natsort)
13350 ("python-networkx" ,python-networkx)
13351 ("python-numba" ,python-numba)
13352 ("python-pandas" ,python-pandas)
13353 ("python-scikit-learn" ,python-scikit-learn)
13354 ("python-scipy" ,python-scipy)
13355 ("python-seaborn" ,python-seaborn)
13356 ("python-statsmodels" ,python-statsmodels)
13357 ("python-tables" ,python-tables)))
13358 (native-inputs
13359 `(("python-pytest" ,python-pytest)))
13360 (home-page "https://github.com/theislab/scanpy")
13361 (synopsis "Single-Cell Analysis in Python.")
13362 (description "Scanpy is a scalable toolkit for analyzing single-cell gene
13363 expression data. It includes preprocessing, visualization, clustering,
13364 pseudotime and trajectory inference and differential expression testing. The
13365 Python-based implementation efficiently deals with datasets of more than one
13366 million cells.")
13367 (license license:bsd-3)))
13368
13369 (define-public python-bbknn
13370 (package
13371 (name "python-bbknn")
13372 (version "1.3.1")
13373 (source
13374 (origin
13375 (method url-fetch)
13376 (uri (pypi-uri "bbknn" version))
13377 (sha256
13378 (base32
13379 "1qgdganvj3lyxj84v7alm23b9vqhwpn8z0115qndpnpy90qxynwz"))))
13380 (build-system python-build-system)
13381 (propagated-inputs
13382 `(("python-annoy" ,python-annoy)
13383 ("python-cython" ,python-cython)
13384 ("python-faiss" ,python-faiss)
13385 ("python-numpy" ,python-numpy)
13386 ("python-scanpy" ,python-scanpy)))
13387 (home-page "https://github.com/Teichlab/bbknn")
13388 (synopsis "Batch balanced KNN")
13389 (description "BBKNN is a batch effect removal tool that can be directly
13390 used in the Scanpy workflow. It serves as an alternative to
13391 @code{scanpy.api.pp.neighbors()}, with both functions creating a neighbour
13392 graph for subsequent use in clustering, pseudotime and UMAP visualisation. If
13393 technical artifacts are present in the data, they will make it challenging to
13394 link corresponding cell types across different batches. BBKNN actively
13395 combats this effect by splitting your data into batches and finding a smaller
13396 number of neighbours for each cell within each of the groups. This helps
13397 create connections between analogous cells in different batches without
13398 altering the counts or PCA space.")
13399 (license license:expat)))
13400
13401 (define-public gffcompare
13402 (let ((commit "be56ef4349ea3966c12c6397f85e49e047361c41")
13403 (revision "1"))
13404 (package
13405 (name "gffcompare")
13406 (version (git-version "0.10.15" revision commit))
13407 (source
13408 (origin
13409 (method git-fetch)
13410 (uri (git-reference
13411 (url "https://github.com/gpertea/gffcompare/")
13412 (commit commit)))
13413 (file-name (git-file-name name version))
13414 (sha256
13415 (base32 "0cp5qpxdhw4mxpya5dld8wi3jk00zyklm6rcri426wydinrnfmkg"))))
13416 (build-system gnu-build-system)
13417 (arguments
13418 `(#:tests? #f ; no check target
13419 #:phases
13420 (modify-phases %standard-phases
13421 (delete 'configure)
13422 (add-before 'build 'copy-gclib-source
13423 (lambda* (#:key inputs #:allow-other-keys)
13424 (mkdir "../gclib")
13425 (copy-recursively
13426 (assoc-ref inputs "gclib-source") "../gclib")
13427 #t))
13428 (replace 'install
13429 (lambda* (#:key outputs #:allow-other-keys)
13430 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13431 (install-file "gffcompare" bin)
13432 #t))))))
13433 (native-inputs
13434 `(("gclib-source" ; see 'README.md' of gffcompare
13435 ,(let ((commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13436 (revision "1")
13437 (name "gclib")
13438 (version (git-version "0.10.3" revision commit)))
13439 (origin
13440 (method git-fetch)
13441 (uri (git-reference
13442 (url "https://github.com/gpertea/gclib/")
13443 (commit commit)))
13444 (file-name (git-file-name name version))
13445 (sha256
13446 (base32 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13447 (home-page "https://github.com/gpertea/gffcompare/")
13448 (synopsis "Tool for comparing or classifing transcripts of RNA-Seq")
13449 (description
13450 "@code{gffcompare} is a tool that can:
13451 @enumerate
13452 @item compare and evaluate the accuracy of RNA-Seq transcript assemblers
13453 (Cufflinks, Stringtie);
13454 @item collapse (merge) duplicate transcripts from multiple GTF/GFF3 files (e.g.
13455 resulted from assembly of different samples);
13456 @item classify transcripts from one or multiple GTF/GFF3 files as they relate to
13457 reference transcripts provided in a annotation file (also in GTF/GFF3 format).
13458 @end enumerate")
13459 (license
13460 (list
13461 license:expat ;license for gffcompare
13462 license:artistic2.0))))) ;license for gclib
13463
13464 (define-public python-intervaltree
13465 (package
13466 (name "python-intervaltree")
13467 (version "2.1.0")
13468 (source
13469 (origin
13470 (method url-fetch)
13471 (uri (pypi-uri "intervaltree" version))
13472 (sha256
13473 (base32
13474 "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc"))))
13475 (build-system python-build-system)
13476 ;; FIXME: error when collecting tests
13477 (arguments '(#:tests? #f))
13478 (propagated-inputs
13479 `(("python-sortedcontainers" ,python-sortedcontainers)))
13480 (native-inputs
13481 `(("python-pytest" ,python-pytest)))
13482 (home-page "https://github.com/chaimleib/intervaltree")
13483 (synopsis "Editable interval tree data structure")
13484 (description
13485 "This package provides a mutable, self-balancing interval tree
13486 implementation for Python. Queries may be by point, by range overlap, or by
13487 range envelopment. This library was designed to allow tagging text and time
13488 intervals, where the intervals include the lower bound but not the upper
13489 bound.")
13490 (license license:asl2.0)))
13491
13492 (define-public python-pypairix
13493 (package
13494 (name "python-pypairix")
13495 (version "0.3.6")
13496 (source
13497 (origin
13498 (method url-fetch)
13499 (uri (pypi-uri "pypairix" version))
13500 (sha256
13501 (base32
13502 "0zs92b74s5v4xy2h16s15f3z6l4nnbw8x8zyif7xx5xpafjn0xss"))))
13503 (build-system python-build-system)
13504 ;; FIXME: the tests fail because test.support cannot be loaded:
13505 ;; ImportError: cannot import name 'support'
13506 (arguments '(#:tests? #f))
13507 (inputs
13508 `(("zlib" ,zlib)))
13509 (home-page "https://github.com/4dn-dcic/pairix")
13510 (synopsis "Support for querying pairix-indexed bgzipped text files")
13511 (description
13512 "Pypairix is a Python module for fast querying on a pairix-indexed
13513 bgzipped text file that contains a pair of genomic coordinates per line.")
13514 (license license:expat)))
13515
13516 (define-public python-pyfaidx
13517 (package
13518 (name "python-pyfaidx")
13519 (version "0.5.4.2")
13520 (source
13521 (origin
13522 (method url-fetch)
13523 (uri (pypi-uri "pyfaidx" version))
13524 (sha256
13525 (base32
13526 "0y5zyjksj1rdglj601xd2bbni5abhdh622y3ck76chyzxz9z4rx8"))))
13527 (build-system python-build-system)
13528 (propagated-inputs
13529 `(("python-setuptools" ,python-setuptools)
13530 ("python-six" ,python-six)))
13531 (home-page "http://mattshirley.com")
13532 (synopsis "Random access to fasta subsequences")
13533 (description
13534 "This package provides procedures for efficient pythonic random access to
13535 fasta subsequences.")
13536 (license license:bsd-3)))
13537
13538 (define-public python-cooler
13539 (package
13540 (name "python-cooler")
13541 (version "0.7.11")
13542 (source
13543 (origin
13544 (method url-fetch)
13545 (uri (pypi-uri "cooler" version))
13546 (sha256
13547 (base32
13548 "08k5nxnxa6qsbk15z5z0q01n28042k87wi4905hh95rzqib15mhx"))))
13549 (build-system python-build-system)
13550 (propagated-inputs
13551 `(("python-biopython" ,python-biopython)
13552 ("python-click" ,python-click)
13553 ("python-cytoolz" ,python-cytoolz)
13554 ("python-dask" ,python-dask)
13555 ("python-h5py" ,python-h5py)
13556 ("python-multiprocess" ,python-multiprocess)
13557 ("python-pandas" ,python-pandas)
13558 ("python-pyfaidx" ,python-pyfaidx)
13559 ("python-pypairix" ,python-pypairix)
13560 ("python-pysam" ,python-pysam)
13561 ("python-scipy" ,python-scipy)))
13562 (native-inputs
13563 `(("python-mock" ,python-mock)
13564 ("python-nose" ,python-nose)
13565 ("python-numpydoc" ,python-numpydoc)
13566 ("python-sphinx" ,python-sphinx)))
13567 (home-page "https://github.com/mirnylab/cooler")
13568 (synopsis "Sparse binary format for genomic interaction matrices")
13569 (description
13570 "Cooler is a support library for a sparse, compressed, binary persistent
13571 storage format, called @code{cool}, used to store genomic interaction data,
13572 such as Hi-C contact matrices.")
13573 (license license:bsd-3)))
13574
13575 (define-public python-hicexplorer
13576 (package
13577 (name "python-hicexplorer")
13578 (version "2.1.4")
13579 (source
13580 (origin
13581 ;; The latest version is not available on Pypi.
13582 (method git-fetch)
13583 (uri (git-reference
13584 (url "https://github.com/deeptools/HiCExplorer.git")
13585 (commit version)))
13586 (file-name (git-file-name name version))
13587 (sha256
13588 (base32
13589 "0q5gpbzmrkvygqgw524q36b4nrivcmyi5v194vsx0qw7b3gcmq08"))))
13590 (build-system python-build-system)
13591 (arguments
13592 `(#:phases
13593 (modify-phases %standard-phases
13594 (add-after 'unpack 'loosen-up-requirements
13595 (lambda _
13596 (substitute* "setup.py"
13597 (("==") ">="))
13598 #t)))))
13599 (propagated-inputs
13600 `(("python-biopython" ,python-biopython)
13601 ("python-configparser" ,python-configparser)
13602 ("python-cooler" ,python-cooler)
13603 ("python-future" ,python-future)
13604 ("python-intervaltree" ,python-intervaltree)
13605 ("python-jinja2" ,python-jinja2)
13606 ("python-matplotlib" ,python-matplotlib)
13607 ("python-numpy" ,python-numpy)
13608 ("python-pandas" ,python-pandas)
13609 ("python-pybigwig" ,python-pybigwig)
13610 ("python-pysam" ,python-pysam)
13611 ("python-scipy" ,python-scipy)
13612 ("python-six" ,python-six)
13613 ("python-tables" ,python-tables)
13614 ("python-unidecode" ,python-unidecode)))
13615 (home-page "http://hicexplorer.readthedocs.io")
13616 (synopsis "Process, analyze and visualize Hi-C data")
13617 (description
13618 "HiCExplorer is a powerful and easy to use set of tools to process,
13619 normalize and visualize Hi-C data. HiCExplorer facilitates the creation of
13620 contact matrices, correction of contacts, TAD detection, A/B compartments,
13621 merging, reordering or chromosomes, conversion from different formats
13622 including cooler and detection of long-range contacts. Moreover, it allows
13623 the visualization of multiple contact matrices along with other types of data
13624 like genes, compartments, ChIP-seq coverage tracks (and in general any type of
13625 genomic scores), long range contacts and the visualization of viewpoints.")
13626 (license license:gpl3)))
13627
13628 (define-public python-pygenometracks
13629 (package
13630 (name "python-pygenometracks")
13631 (version "2.0")
13632 (source
13633 (origin
13634 (method url-fetch)
13635 (uri (pypi-uri "pyGenomeTracks" version))
13636 (sha256
13637 (base32
13638 "1fws6bqsyy9kj3qiabhkqx4wd4i775gsxnhszqd3zg7w67sc1ic5"))))
13639 (build-system python-build-system)
13640 (propagated-inputs
13641 `(("python-configparser" ,python-configparser)
13642 ("python-future" ,python-future)
13643 ("python-hicexplorer" ,python-hicexplorer)
13644 ("python-intervaltree" ,python-intervaltree)
13645 ("python-matplotlib" ,python-matplotlib)
13646 ("python-numpy" ,python-numpy)
13647 ("python-pybigwig" ,python-pybigwig)))
13648 (native-inputs
13649 `(("python-pytest" ,python-pytest)))
13650 (home-page "https://pygenometracks.readthedocs.io")
13651 (synopsis "Program and library to plot beautiful genome browser tracks")
13652 (description
13653 "This package aims to produce high-quality genome browser tracks that
13654 are highly customizable. Currently, it is possible to plot: bigwig, bed (many
13655 options), bedgraph, links (represented as arcs), and Hi-C matrices.
13656 pyGenomeTracks can make plots with or without Hi-C data.")
13657 (license license:gpl3+)))
13658
13659 (define-public python-hic2cool
13660 (package
13661 (name "python-hic2cool")
13662 (version "0.4.2")
13663 (source
13664 (origin
13665 (method url-fetch)
13666 (uri (pypi-uri "hic2cool" version))
13667 (sha256
13668 (base32
13669 "0xy6mhfns2lzib1kcr6419jjp6pmh0qx8z8na55lmiwn0ds8q9cl"))))
13670 (build-system python-build-system)
13671 (arguments '(#:tests? #f)) ; no tests included
13672 (propagated-inputs
13673 `(("python-cooler" ,python-cooler)))
13674 (home-page "https://github.com/4dn-dcic/hic2cool")
13675 (synopsis "Converter for .hic and .cool files")
13676 (description
13677 "This package provides a converter between @code{.hic} files (from
13678 juicer) and single-resolution or multi-resolution @code{.cool} files (for
13679 cooler). Both @code{hic} and @code{cool} files describe Hi-C contact
13680 matrices.")
13681 (license license:expat)))
13682
13683 (define-public r-pore
13684 (package
13685 (name "r-pore")
13686 (version "0.24")
13687 (source
13688 (origin
13689 (method url-fetch)
13690 (uri
13691 (string-append "mirror://sourceforge/rpore/" version
13692 "/poRe_" version ".tar.gz"))
13693 (sha256
13694 (base32 "0pih9nljbv8g4x8rkk29i7aqq681b782r5s5ynp4nw9yzqnmmksv"))))
13695 (properties `((upstream-name . "poRe")))
13696 (build-system r-build-system)
13697 (propagated-inputs
13698 `(("r-bit64" ,r-bit64)
13699 ("r-data-table" ,r-data-table)
13700 ("r-rhdf5" ,r-rhdf5)
13701 ("r-shiny" ,r-shiny)
13702 ("r-svdialogs" ,r-svdialogs)))
13703 (home-page "https://sourceforge.net/projects/rpore/")
13704 (synopsis "Visualize Nanopore sequencing data")
13705 (description
13706 "This package provides graphical user interfaces to organize and visualize Nanopore
13707 sequencing data.")
13708 ;; This is free software but the license variant is unclear:
13709 ;; <https://github.com/mw55309/poRe_docs/issues/10>.
13710 (license license:bsd-3)))
13711
13712 (define-public r-xbioc
13713 (let ((revision "1")
13714 (commit "f798c187e376fd1ba27abd559f47bbae7e3e466b"))
13715 (package
13716 (name "r-xbioc")
13717 (version (git-version "0.1.15" revision commit))
13718 (source (origin
13719 (method git-fetch)
13720 (uri (git-reference
13721 (url "https://github.com/renozao/xbioc.git")
13722 (commit commit)))
13723 (file-name (git-file-name name version))
13724 (sha256
13725 (base32
13726 "03hffh2f6z71y6l6dqpa5cql3hdaw7zigdi8sm2dzgx379k9rgrr"))))
13727 (build-system r-build-system)
13728 (propagated-inputs
13729 `(("r-annotationdbi" ,r-annotationdbi)
13730 ("r-assertthat" ,r-assertthat)
13731 ("r-biobase" ,r-biobase)
13732 ("r-biocinstaller" ,r-biocinstaller)
13733 ("r-digest" ,r-digest)
13734 ("r-pkgmaker" ,r-pkgmaker)
13735 ("r-plyr" ,r-plyr)
13736 ("r-reshape2" ,r-reshape2)
13737 ("r-stringr" ,r-stringr)))
13738 (home-page "https://github.com/renozao/xbioc/")
13739 (synopsis "Extra base functions for Bioconductor")
13740 (description "This package provides extra utility functions to perform
13741 common tasks in the analysis of omics data, leveraging and enhancing features
13742 provided by Bioconductor packages.")
13743 (license license:gpl3+))))
13744
13745 (define-public r-cssam
13746 (let ((revision "1")
13747 (commit "9ec58c982fa551af0d80b1a266890d92954833f2"))
13748 (package
13749 (name "r-cssam")
13750 (version (git-version "1.4" revision commit))
13751 (source (origin
13752 (method git-fetch)
13753 (uri (git-reference
13754 (url "https://github.com/shenorrLab/csSAM.git")
13755 (commit commit)))
13756 (file-name (git-file-name name version))
13757 (sha256
13758 (base32
13759 "128syf9v39gk0z3ip000qpsjbg6l1siyq6c8b0hz41dzg5achyb3"))))
13760 (build-system r-build-system)
13761 (propagated-inputs
13762 `(("r-formula" ,r-formula)
13763 ("r-ggplot2" ,r-ggplot2)
13764 ("r-pkgmaker" ,r-pkgmaker)
13765 ("r-plyr" ,r-plyr)
13766 ("r-rngtools" ,r-rngtools)
13767 ("r-scales" ,r-scales)))
13768 (home-page "https://github.com/shenorrLab/csSAM/")
13769 (synopsis "Cell type-specific statistical analysis of microarray")
13770 (description "This package implements the method csSAM that computes
13771 cell-specific differential expression from measured cell proportions using
13772 SAM.")
13773 ;; Any version
13774 (license license:lgpl2.1+))))
13775
13776 (define-public r-bseqsc
13777 (let ((revision "1")
13778 (commit "fef3f3e38dcf3df37103348b5780937982b43b98"))
13779 (package
13780 (name "r-bseqsc")
13781 (version (git-version "1.0" revision commit))
13782 (source (origin
13783 (method git-fetch)
13784 (uri (git-reference
13785 (url "https://github.com/shenorrLab/bseqsc.git")
13786 (commit commit)))
13787 (file-name (git-file-name name version))
13788 (sha256
13789 (base32
13790 "1prw13wa20f7wlc3gkkls66n1kxz8d28qrb8icfqdwdnnv8w5qg8"))))
13791 (build-system r-build-system)
13792 (propagated-inputs
13793 `(("r-abind" ,r-abind)
13794 ("r-annotationdbi" ,r-annotationdbi)
13795 ("r-biobase" ,r-biobase)
13796 ("r-cssam" ,r-cssam)
13797 ("r-dplyr" ,r-dplyr)
13798 ("r-e1071" ,r-e1071)
13799 ("r-edger" ,r-edger)
13800 ("r-ggplot2" ,r-ggplot2)
13801 ("r-nmf" ,r-nmf)
13802 ("r-openxlsx" ,r-openxlsx)
13803 ("r-pkgmaker" ,r-pkgmaker)
13804 ("r-plyr" ,r-plyr)
13805 ("r-preprocesscore" ,r-preprocesscore)
13806 ("r-rngtools" ,r-rngtools)
13807 ("r-scales" ,r-scales)
13808 ("r-stringr" ,r-stringr)
13809 ("r-xbioc" ,r-xbioc)))
13810 (home-page "https://github.com/shenorrLab/bseqsc")
13811 (synopsis "Deconvolution of bulk sequencing experiments using single cell data")
13812 (description "BSeq-sc is a bioinformatics analysis pipeline that
13813 leverages single-cell sequencing data to estimate cell type proportion and
13814 cell type-specific gene expression differences from RNA-seq data from bulk
13815 tissue samples. This is a companion package to the publication \"A
13816 single-cell transcriptomic map of the human and mouse pancreas reveals inter-
13817 and intra-cell population structure.\" Baron et al. Cell Systems (2016)
13818 @url{https://www.ncbi.nlm.nih.gov/pubmed/27667365}.")
13819 (license license:gpl2+))))
13820
13821 (define-public porechop
13822 ;; The recommended way to install is to clone the git repository
13823 ;; https://github.com/rrwick/Porechop#installation
13824 (let ((commit "289d5dca4a5fc327f97b3f8cecb68ecaf1014861")
13825 (revision "1"))
13826 (package
13827 (name "porechop")
13828 (version (git-version "0.2.3" revision commit))
13829 (source
13830 (origin
13831 (method git-fetch)
13832 (uri (git-reference
13833 (url "https://github.com/rrwick/Porechop.git")
13834 (commit commit)))
13835 (file-name (git-file-name name version))
13836 (sha256
13837 (base32 "05ps43gig0d3ia9x5lj84lb00hbsl6ba9n7y7jz927npxbr2ym23"))))
13838 (build-system python-build-system)
13839 (home-page "https://github.com/rrwick/porechop")
13840 (synopsis "Finding, trimming or splitting adapters, in Oxford Nanopore reads")
13841 (description
13842 "The porechop package is a tool for finding and removing adapters from Oxford
13843 Nanopore reads. Adapters on the ends of reads are trimmed off, and when a read
13844 has an adapter in its middle, it is treated as chimeric and chopped into
13845 separate reads. Porechop performs thorough alignments to effectively find
13846 adapters, even at low sequence identity. Porechop also supports demultiplexing
13847 of Nanopore reads that were barcoded with the Native Barcoding Kit, PCR
13848 Barcoding Kit or Rapid Barcoding Kit.")
13849 (license license:gpl3+))))
13850
13851 (define-public poretools
13852 ;; The latest release was in 2016 and the latest commit is from 2017
13853 ;; the recommended way to install is to clone the git repository
13854 ;; https://poretools.readthedocs.io/en/latest/content/installation.html
13855 (let ((commit "e426b1f09e86ac259a00c261c79df91510777407")
13856 (revision "1"))
13857 (package
13858 (name "poretools")
13859 (version (git-version "0.6.0" revision commit))
13860 (source
13861 (origin
13862 (method git-fetch)
13863 (uri (git-reference
13864 (url "https://github.com/arq5x/poretools.git")
13865 (commit commit)))
13866 (file-name (git-file-name name version))
13867 (sha256
13868 (base32 "0bglj833wxpp3cq430p1d3xp085ls221js2y90w7ir2x5ay8l7am"))))
13869 (build-system python-build-system)
13870 ;; requires python >=2.7, <3.0, and the same for python dependencies
13871 (arguments `(#:python ,python-2))
13872 (inputs
13873 `(("hdf5" ,hdf5)))
13874 (propagated-inputs
13875 `(("python-dateutil" ,python2-dateutil)
13876 ("python-h5py" ,python2-h5py)
13877 ("python-matplotlib" ,python2-matplotlib)
13878 ("python-pandas" ,python2-pandas)
13879 ("python-seaborn" ,python2-seaborn)))
13880 (home-page "https://poretools.readthedocs.io")
13881 (synopsis "Toolkit for working with nanopore sequencing data")
13882 (description
13883 "The MinION from Oxford Nanopore Technologies is a nanopore sequencer.
13884 This @code{poretools} package is a flexible toolkit for exploring datasets
13885 generated by nanopore sequencing devices for the purposes of quality control and
13886 downstream analysis. Poretools operates directly on the native FAST5, a variant
13887 of the Hierarchical Data Format (HDF5) standard.")
13888 (license license:expat))))
13889
13890 (define-public r-absfiltergsea
13891 (package
13892 (name "r-absfiltergsea")
13893 (version "1.5.1")
13894 (source
13895 (origin
13896 (method url-fetch)
13897 (uri (cran-uri "AbsFilterGSEA" version))
13898 (sha256
13899 (base32 "15srxkxsvn38kd5frdrwfdf0ad8gskrd0h01wmdf9hglq8fjrp7w"))))
13900 (properties `((upstream-name . "AbsFilterGSEA")))
13901 (build-system r-build-system)
13902 (propagated-inputs
13903 `(("r-biobase" ,r-biobase)
13904 ("r-deseq" ,r-deseq)
13905 ("r-limma" ,r-limma)
13906 ("r-rcpp" ,r-rcpp)
13907 ("r-rcpparmadillo" ,r-rcpparmadillo)))
13908 (home-page "https://cran.r-project.org/web/packages/AbsFilterGSEA/")
13909 (synopsis "Improved false positive control of gene-permuting with absolute filtering")
13910 (description
13911 "This package provides a function that performs gene-permuting of a gene-set
13912 enrichment analysis (GSEA) calculation with or without the absolute filtering.
13913 Without filtering, users can perform (original) two-tailed or one-tailed
13914 absolute GSEA.")
13915 (license license:gpl2)))
13916
13917 (define-public jamm
13918 (package
13919 (name "jamm")
13920 (version "1.0.7.5")
13921 (source
13922 (origin
13923 (method git-fetch)
13924 (uri (git-reference
13925 (url "https://github.com/mahmoudibrahim/JAMM.git")
13926 (commit (string-append "JAMMv" version))))
13927 (file-name (git-file-name name version))
13928 (sha256
13929 (base32
13930 "0ls889jcma1ch9h21jjhnkadgszgqj41842hhcjh6cg88f85qf3i"))))
13931 (build-system gnu-build-system)
13932 (arguments
13933 `(#:tests? #f ; there are none
13934 #:phases
13935 (modify-phases %standard-phases
13936 (delete 'configure)
13937 (delete 'build)
13938 (replace 'install
13939 (lambda* (#:key inputs outputs #:allow-other-keys)
13940 (let* ((out (assoc-ref outputs "out"))
13941 (libexec (string-append out "/libexec/jamm"))
13942 (bin (string-append out "/bin")))
13943 (substitute* '("JAMM.sh"
13944 "SignalGenerator.sh")
13945 (("^sPath=.*")
13946 (string-append "sPath=\"" libexec "\"\n")))
13947 (for-each (lambda (file)
13948 (install-file file libexec))
13949 (list "bincalculator.r"
13950 "peakfinder.r"
13951 "peakhelper.r"
13952 "signalmaker.r"
13953 "xcorr.r"
13954 "xcorrhelper.r"
13955 ;; Perl scripts
13956 "peakfilter.pl"
13957 "readshifter.pl"))
13958
13959 (for-each
13960 (lambda (script)
13961 (chmod script #o555)
13962 (install-file script bin)
13963 (wrap-program (string-append bin "/" script)
13964 `("PATH" ":" prefix
13965 (,(string-append (assoc-ref inputs "coreutils") "/bin")
13966 ,(string-append (assoc-ref inputs "gawk") "/bin")
13967 ,(string-append (assoc-ref inputs "perl") "/bin")
13968 ,(string-append (assoc-ref inputs "r-minimal") "/bin")))
13969 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))
13970 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
13971 (list "JAMM.sh" "SignalGenerator.sh")))
13972 #t)))))
13973 (inputs
13974 `(("bash" ,bash)
13975 ("coreutils" ,coreutils)
13976 ("gawk" ,gawk)
13977 ("perl" ,perl)
13978 ("r-minimal" ,r-minimal)
13979 ;;("r-parallel" ,r-parallel)
13980 ("r-signal" ,r-signal)
13981 ("r-mclust" ,r-mclust)))
13982 (home-page "https://github.com/mahmoudibrahim/JAMM")
13983 (synopsis "Peak finder for NGS datasets")
13984 (description
13985 "JAMM is a peak finder for next generation sequencing datasets (ChIP-Seq,
13986 ATAC-Seq, DNase-Seq, etc.) that can integrate replicates and assign peak
13987 boundaries accurately. JAMM is applicable to both broad and narrow
13988 datasets.")
13989 (license license:gpl3+)))
13990
13991 (define-public ngless
13992 (package
13993 (name "ngless")
13994 (version "0.9.1")
13995 (source
13996 (origin
13997 (method git-fetch)
13998 (uri (git-reference
13999 (url "https://gitlab.com/ngless/ngless.git")
14000 (commit (string-append "v" version))))
14001 (file-name (git-file-name name version))
14002 (sha256
14003 (base32
14004 "0mc2gi7h4lx74zylvyp76mvc0w6706j858ii9vlgzqsw6acpr117"))))
14005 (build-system haskell-build-system)
14006 (arguments
14007 `(#:haddock? #f ; The haddock phase fails with: NGLess/CmdArgs.hs:20:1:
14008 ; error: parse error on input import
14009 ; import Options.Applicative
14010 #:phases
14011 (modify-phases %standard-phases
14012 (add-after 'unpack 'create-cabal-file
14013 (lambda _ (invoke "hpack") #t))
14014 ;; These tools are expected to be installed alongside ngless.
14015 (add-after 'install 'link-tools
14016 (lambda* (#:key inputs outputs #:allow-other-keys)
14017 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
14018 (symlink (string-append (assoc-ref inputs "prodigal")
14019 "/bin/prodigal")
14020 (string-append bin "ngless-" ,version "-prodigal"))
14021 (symlink (string-append (assoc-ref inputs "minimap2")
14022 "/bin/minimap2")
14023 (string-append bin "ngless-" ,version "-minimap2"))
14024 (symlink (string-append (assoc-ref inputs "samtools")
14025 "/bin/samtools")
14026 (string-append bin "ngless-" ,version "-samtools"))
14027 (symlink (string-append (assoc-ref inputs "bwa")
14028 "/bin/bwa")
14029 (string-append bin "ngless-" ,version "-bwa"))
14030 #t))))))
14031 (inputs
14032 `(("prodigal" ,prodigal)
14033 ("bwa" ,bwa)
14034 ("samtools" ,samtools)
14035 ("minimap2" ,minimap2)
14036 ("ghc-aeson" ,ghc-aeson)
14037 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
14038 ("ghc-async" ,ghc-async)
14039 ("ghc-atomic-write" ,ghc-atomic-write)
14040 ("ghc-bytestring-lexing" ,ghc-bytestring-lexing)
14041 ("ghc-chart" ,ghc-chart)
14042 ("ghc-chart-cairo" ,ghc-chart-cairo)
14043 ("ghc-conduit" ,ghc-conduit)
14044 ("ghc-conduit-algorithms" ,ghc-conduit-algorithms)
14045 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
14046 ("ghc-conduit-extra" ,ghc-conduit-extra)
14047 ("ghc-configurator" ,ghc-configurator)
14048 ("ghc-convertible" ,ghc-convertible)
14049 ("ghc-data-default" ,ghc-data-default)
14050 ("ghc-double-conversion" ,ghc-double-conversion)
14051 ("ghc-edit-distance" ,ghc-edit-distance)
14052 ("ghc-either" ,ghc-either)
14053 ("ghc-errors" ,ghc-errors)
14054 ("ghc-extra" ,ghc-extra)
14055 ("ghc-filemanip" ,ghc-filemanip)
14056 ("ghc-file-embed" ,ghc-file-embed)
14057 ("ghc-gitrev" ,ghc-gitrev)
14058 ("ghc-hashtables" ,ghc-hashtables)
14059 ("ghc-http-conduit" ,ghc-http-conduit)
14060 ("ghc-inline-c" ,ghc-inline-c)
14061 ("ghc-inline-c-cpp" ,ghc-inline-c-cpp)
14062 ("ghc-intervalmap" ,ghc-intervalmap)
14063 ("ghc-missingh" ,ghc-missingh)
14064 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
14065 ("ghc-parsec" ,ghc-parsec)
14066 ("ghc-regex" ,ghc-regex)
14067 ("ghc-safe" ,ghc-safe)
14068 ("ghc-safeio" ,ghc-safeio)
14069 ("ghc-strict" ,ghc-strict)
14070 ("ghc-tar" ,ghc-tar)
14071 ("ghc-text" ,ghc-text)
14072 ("ghc-unliftio" ,ghc-unliftio)
14073 ("ghc-unliftio-core" ,ghc-unliftio-core)
14074 ("ghc-vector" ,ghc-vector)
14075 ("ghc-yaml" ,ghc-yaml)
14076 ("ghc-zlib" ,ghc-zlib)))
14077 (propagated-inputs
14078 `(("r-r6" ,r-r6)
14079 ("r-hdf5r" ,r-hdf5r)
14080 ("r-iterators" ,r-iterators)
14081 ("r-itertools" ,r-itertools)
14082 ("r-matrix" ,r-matrix)))
14083 (native-inputs
14084 `(("ghc-hpack" ,ghc-hpack)
14085 ("ghc-quickcheck" ,ghc-quickcheck)
14086 ("ghc-test-framework" ,ghc-test-framework)
14087 ("ghc-test-framework-hunit",ghc-test-framework-hunit)
14088 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
14089 ("ghc-test-framework-th" ,ghc-test-framework-th)))
14090 (home-page "https://gitlab.com/ngless/ngless")
14091 (synopsis "DSL for processing next-generation sequencing data")
14092 (description "Ngless is a domain-specific language for
14093 @dfn{next-generation sequencing} (NGS) data processing.")
14094 (license license:expat)))
14095
14096 (define-public filtlong
14097 ;; The recommended way to install is to clone the git repository
14098 ;; https://github.com/rrwick/Filtlong#installation
14099 ;; and the lastest release is more than nine months old
14100 (let ((commit "d1bb46dfe8bc7efe6257b5ce222c04bfe8aedaab")
14101 (revision "1"))
14102 (package
14103 (name "filtlong")
14104 (version (git-version "0.2.0" revision commit))
14105 (source
14106 (origin
14107 (method git-fetch)
14108 (uri (git-reference
14109 (url "https://github.com/rrwick/Filtlong.git")
14110 (commit commit)))
14111 (file-name (git-file-name name version))
14112 (sha256
14113 (base32 "1xr92r820x8qlkcr3b57iw223yq8vjgyi42jr79w2xgw47qzr575"))))
14114 (build-system gnu-build-system)
14115 (arguments
14116 `(#:tests? #f ; no check target
14117 #:phases
14118 (modify-phases %standard-phases
14119 (delete 'configure)
14120 (replace 'install
14121 (lambda* (#:key outputs #:allow-other-keys)
14122 (let* ((out (assoc-ref outputs "out"))
14123 (bin (string-append out "/bin"))
14124 (scripts (string-append out "/share/filtlong/scripts")))
14125 (install-file "bin/filtlong" bin)
14126 (install-file "scripts/histogram.py" scripts)
14127 (install-file "scripts/read_info_histograms.sh" scripts))
14128 #t))
14129 (add-after 'install 'wrap-program
14130 (lambda* (#:key inputs outputs #:allow-other-keys)
14131 (let* ((out (assoc-ref outputs "out"))
14132 (path (getenv "PYTHONPATH")))
14133 (wrap-program (string-append out
14134 "/share/filtlong/scripts/histogram.py")
14135 `("PYTHONPATH" ":" prefix (,path))))
14136 #t))
14137 (add-before 'check 'patch-tests
14138 (lambda _
14139 (substitute* "scripts/read_info_histograms.sh"
14140 (("awk") (which "gawk")))
14141 #t)))))
14142 (inputs
14143 `(("gawk" ,gawk) ;for read_info_histograms.sh
14144 ("python" ,python-2) ;required for histogram.py
14145 ("zlib" ,zlib)))
14146 (home-page "https://github.com/rrwick/Filtlong/")
14147 (synopsis "Tool for quality filtering of Nanopore and PacBio data")
14148 (description
14149 "The Filtlong package is a tool for filtering long reads by quality.
14150 It can take a set of long reads and produce a smaller, better subset. It uses
14151 both read length (longer is better) and read identity (higher is better) when
14152 choosing which reads pass the filter.")
14153 (license (list license:gpl3 ;filtlong
14154 license:asl2.0))))) ;histogram.py
14155
14156 (define-public nanopolish
14157 ;; The recommended way to install is to clone the git repository
14158 ;; <https://github.com/jts/nanopolish#installing-a-particular-release>.
14159 ;; Also, the differences between release and current version seem to be
14160 ;; significant.
14161 (let ((commit "50e8b5cc62f9b46f5445f5c5e8c5ab7263ea6d9d")
14162 (revision "1"))
14163 (package
14164 (name "nanopolish")
14165 (version (git-version "0.10.2" revision commit))
14166 (source
14167 (origin
14168 (method git-fetch)
14169 (uri (git-reference
14170 (url "https://github.com/jts/nanopolish.git")
14171 (commit commit)
14172 (recursive? #t)))
14173 (file-name (git-file-name name version))
14174 (sha256
14175 (base32 "09j5gz57yr9i34a27vbl72i4g8syv2zzgmsfyjq02yshmnrvkjs6"))
14176 (modules '((guix build utils)))
14177 (snippet
14178 '(begin
14179 (delete-file-recursively "htslib")
14180 #t))))
14181 (build-system gnu-build-system)
14182 (arguments
14183 `(#:make-flags
14184 `("HDF5=noinstall" "EIGEN=noinstall" "HTS=noinstall" "CC=gcc")
14185 #:tests? #f ; no check target
14186 #:phases
14187 (modify-phases %standard-phases
14188 (add-after 'unpack 'find-eigen
14189 (lambda* (#:key inputs #:allow-other-keys)
14190 (setenv "CPATH"
14191 (string-append (assoc-ref inputs "eigen")
14192 "/include/eigen3"))
14193 #t))
14194 (delete 'configure)
14195 (replace 'install
14196 (lambda* (#:key outputs #:allow-other-keys)
14197 (let* ((out (assoc-ref outputs "out"))
14198 (bin (string-append out "/bin"))
14199 (scripts (string-append out "/share/nanopolish/scripts")))
14200
14201 (install-file "nanopolish" bin)
14202 (for-each (lambda (file) (install-file file scripts))
14203 (find-files "scripts" ".*"))
14204 #t)))
14205 (add-after 'install 'wrap-programs
14206 (lambda* (#:key outputs #:allow-other-keys)
14207 (for-each (lambda (file)
14208 (wrap-program file `("PYTHONPATH" ":" prefix (,path))))
14209 (find-files "/share/nanopolish/scripts" "\\.py"))
14210 (for-each (lambda (file)
14211 (wrap-program file `("PERL5LIB" ":" prefix (,path))))
14212 (find-files "/share/nanopolish/scripts" "\\.pl"))
14213 #t)))))
14214 (inputs
14215 `(("eigen" ,eigen)
14216 ("hdf5" ,hdf5)
14217 ("htslib" ,htslib)
14218 ("perl" ,perl)
14219 ("python" ,python-wrapper)
14220 ("python-biopython" ,python-biopython)
14221 ("python-numpy" ,python-numpy)
14222 ("python-pysam" ,python-pysam)
14223 ("python-scikit-learn" , python-scikit-learn)
14224 ("python-scipy" ,python-scipy)
14225 ("zlib" ,zlib)))
14226 (home-page "https://github.com/jts/nanopolish")
14227 (synopsis "Signal-level analysis of Oxford Nanopore sequencing data")
14228 (description
14229 "This package analyses the Oxford Nanopore sequencing data at signal-level.
14230 Nanopolish can calculate an improved consensus sequence for a draft genome
14231 assembly, detect base modifications, call SNPs (Single nucleotide
14232 polymorphisms) and indels with respect to a reference genome and more.")
14233 (license license:expat))))
14234
14235 (define-public cnvkit
14236 (package
14237 (name "cnvkit")
14238 (version "0.9.5")
14239 (source
14240 (origin
14241 (method git-fetch)
14242 (uri (git-reference
14243 (url "https://github.com/etal/cnvkit.git")
14244 (commit (string-append "v" version))))
14245 (file-name (git-file-name name version))
14246 (sha256
14247 (base32 "0g2f78k68yglmj4fsfmgs8idqv3di9aj53fg0ld0hqljg8chhh82"))))
14248 (build-system python-build-system)
14249 (propagated-inputs
14250 `(("python-biopython" ,python-biopython)
14251 ("python-future" ,python-future)
14252 ("python-matplotlib" ,python-matplotlib)
14253 ("python-numpy" ,python-numpy)
14254 ("python-reportlab" ,python-reportlab)
14255 ("python-pandas" ,python-pandas)
14256 ("python-pysam" ,python-pysam)
14257 ("python-pyfaidx" ,python-pyfaidx)
14258 ("python-scipy" ,python-scipy)
14259 ;; R packages
14260 ("r-dnacopy" ,r-dnacopy)))
14261 (home-page "https://cnvkit.readthedocs.org/")
14262 (synopsis "Copy number variant detection from targeted DNA sequencing")
14263 (description
14264 "CNVkit is a Python library and command-line software toolkit to infer
14265 and visualize copy number from high-throughput DNA sequencing data. It is
14266 designed for use with hybrid capture, including both whole-exome and custom
14267 target panels, and short-read sequencing platforms such as Illumina and Ion
14268 Torrent.")
14269 (license license:asl2.0)))
14270
14271 (define-public python-pyfit-sne
14272 (package
14273 (name "python-pyfit-sne")
14274 (version "1.0.1")
14275 (source
14276 (origin
14277 (method git-fetch)
14278 (uri (git-reference
14279 (url "https://github.com/KlugerLab/pyFIt-SNE.git")
14280 (commit version)))
14281 (file-name (git-file-name name version))
14282 (sha256
14283 (base32 "13wh3qkzs56azmmgnxib6xfr29g7xh09sxylzjpni5j0pp0rc5qw"))))
14284 (build-system python-build-system)
14285 (propagated-inputs
14286 `(("python-numpy" ,python-numpy)))
14287 (inputs
14288 `(("fftw" ,fftw)))
14289 (native-inputs
14290 `(("python-cython" ,python-cython)))
14291 (home-page "https://github.com/KlugerLab/pyFIt-SNE")
14292 (synopsis "FFT-accelerated Interpolation-based t-SNE")
14293 (description
14294 "t-Stochastic Neighborhood Embedding (t-SNE) is a highly successful
14295 method for dimensionality reduction and visualization of high dimensional
14296 datasets. A popular implementation of t-SNE uses the Barnes-Hut algorithm to
14297 approximate the gradient at each iteration of gradient descent. This package
14298 is a Cython wrapper for FIt-SNE.")
14299 (license license:bsd-4)))
14300
14301 (define-public bbmap
14302 (package
14303 (name "bbmap")
14304 (version "35.82")
14305 (source (origin
14306 (method url-fetch)
14307 (uri (string-append
14308 "mirror://sourceforge/bbmap/BBMap_" version ".tar.gz"))
14309 (sha256
14310 (base32
14311 "1q4rfhxcb6z3gm8zg2davjz98w22lkf4hm9ikxz9kdl93pil3wkd"))))
14312 (build-system ant-build-system)
14313 (arguments
14314 `(#:build-target "dist"
14315 #:tests? #f ; there are none
14316 #:make-flags
14317 (list (string-append "-Dmpijar="
14318 (assoc-ref %build-inputs "java-openmpi")
14319 "/lib/mpi.jar"))
14320 #:modules ((guix build ant-build-system)
14321 (guix build utils)
14322 (guix build java-utils))
14323 #:phases
14324 (modify-phases %standard-phases
14325 (add-after 'build 'build-jni-library
14326 (lambda _
14327 (with-directory-excursion "jni"
14328 (invoke "make" "-f" "makefile.linux"))))
14329 ;; There is no install target
14330 (replace 'install (install-jars "dist"))
14331 (add-after 'install 'install-scripts-and-documentation
14332 (lambda* (#:key outputs #:allow-other-keys)
14333 (substitute* "calcmem.sh"
14334 (("\\| awk ") (string-append "| " (which "awk") " ")))
14335 (let* ((scripts (find-files "." "\\.sh$"))
14336 (out (assoc-ref outputs "out"))
14337 (bin (string-append out "/bin"))
14338 (doc (string-append out "/share/doc/bbmap"))
14339 (jni (string-append out "/lib/jni")))
14340 (substitute* scripts
14341 (("\\$DIR\"\"docs") doc)
14342 (("^CP=.*")
14343 (string-append "CP=" out "/share/java/BBTools.jar\n"))
14344 (("^NATIVELIBDIR.*")
14345 (string-append "NATIVELIBDIR=" jni "\n"))
14346 (("CMD=\"java")
14347 (string-append "CMD=\"" (which "java"))))
14348 (for-each (lambda (script) (install-file script bin)) scripts)
14349
14350 ;; Install JNI library
14351 (install-file "jni/libbbtoolsjni.so" jni)
14352
14353 ;; Install documentation
14354 (install-file "docs/readme.txt" doc)
14355 (copy-recursively "docs/guides" doc))
14356 #t)))
14357 #:jdk ,openjdk11))
14358 (inputs
14359 `(("gawk" ,gawk)
14360 ("java-eclipse-jdt-core" ,java-eclipse-jdt-core)
14361 ("java-eclipse-jdt-compiler-apt" ,java-eclipse-jdt-compiler-apt)
14362 ("java-openmpi" ,java-openmpi)))
14363 (home-page "http://sourceforge.net/projects/bbmap/")
14364 (synopsis "Aligner and other tools for short sequencing reads")
14365 (description
14366 "This package provides bioinformatic tools to align, deduplicate,
14367 reformat, filter and normalize DNA and RNA-seq data. It includes the
14368 following tools: BBMap, a short read aligner for DNA and RNA-seq data; BBNorm,
14369 a kmer-based error-correction and normalization tool; Dedupe, a tool to
14370 simplify assemblies by removing duplicate or contained subsequences that share
14371 a target percent identity; Reformat, to convert reads between
14372 fasta/fastq/scarf/fasta+qual/sam, interleaved/paired, and ASCII-33/64, at over
14373 500 MB/s; and BBDuk, a tool to filter, trim, or mask reads with kmer matches
14374 to an artifact/contaminant file.")
14375 (license license:bsd-3)))
14376
14377 (define-public velvet
14378 (package
14379 (name "velvet")
14380 (version "1.2.10")
14381 (source (origin
14382 (method url-fetch)
14383 (uri (string-append "https://www.ebi.ac.uk/~zerbino/velvet/"
14384 "velvet_" version ".tgz"))
14385 (sha256
14386 (base32
14387 "0h3njwy66p6bx14r3ar1byb0ccaxmxka4c65rn4iybyiqa4d8kc8"))
14388 ;; Delete bundled libraries
14389 (modules '((guix build utils)))
14390 (snippet
14391 '(begin
14392 (delete-file "Manual.pdf")
14393 (delete-file-recursively "third-party")
14394 #t))))
14395 (build-system gnu-build-system)
14396 (arguments
14397 `(#:make-flags '("OPENMP=t")
14398 #:test-target "test"
14399 #:phases
14400 (modify-phases %standard-phases
14401 (delete 'configure)
14402 (add-after 'unpack 'fix-zlib-include
14403 (lambda _
14404 (substitute* "src/binarySequences.c"
14405 (("../third-party/zlib-1.2.3/zlib.h") "zlib.h"))
14406 #t))
14407 (replace 'install
14408 (lambda* (#:key outputs #:allow-other-keys)
14409 (let* ((out (assoc-ref outputs "out"))
14410 (bin (string-append out "/bin"))
14411 (doc (string-append out "/share/doc/velvet")))
14412 (mkdir-p bin)
14413 (mkdir-p doc)
14414 (install-file "velveth" bin)
14415 (install-file "velvetg" bin)
14416 (install-file "Manual.pdf" doc)
14417 (install-file "Columbus_manual.pdf" doc)
14418 #t))))))
14419 (inputs
14420 `(("openmpi" ,openmpi)
14421 ("zlib" ,zlib)))
14422 (native-inputs
14423 `(("texlive" ,(texlive-union (list texlive-latex-graphics
14424 texlive-latex-hyperref)))))
14425 (home-page "https://www.ebi.ac.uk/~zerbino/velvet/")
14426 (synopsis "Nucleic acid sequence assembler for very short reads")
14427 (description
14428 "Velvet is a de novo genomic assembler specially designed for short read
14429 sequencing technologies, such as Solexa or 454. Velvet currently takes in
14430 short read sequences, removes errors then produces high quality unique
14431 contigs. It then uses paired read information, if available, to retrieve the
14432 repeated areas between contigs.")
14433 (license license:gpl2+)))
14434
14435 (define-public python-velocyto
14436 (package
14437 (name "python-velocyto")
14438 (version "0.17.17")
14439 (source
14440 (origin
14441 (method url-fetch)
14442 (uri (pypi-uri "velocyto" version))
14443 (sha256
14444 (base32
14445 "0fgygyzqgrq32dv6a00biq1p1cwi6kbl5iqblxq1kklj6b2mzmhs"))))
14446 (build-system python-build-system)
14447 (propagated-inputs
14448 `(("python-click" ,python-click)
14449 ("python-cython" ,python-cython)
14450 ("python-h5py" ,python-h5py)
14451 ("python-loompy" ,python-loompy)
14452 ("python-matplotlib" ,python-matplotlib)
14453 ("python-numba" ,python-numba)
14454 ("python-numpy" ,python-numpy)
14455 ("python-pandas" ,python-pandas)
14456 ("python-pysam" ,python-pysam)
14457 ("python-scikit-learn" ,python-scikit-learn)
14458 ("python-scipy" ,python-scipy)))
14459 (home-page "https://github.com/velocyto-team/velocyto.py")
14460 (synopsis "RNA velocity analysis for single cell RNA-seq data")
14461 (description
14462 "Velocyto is a library for the analysis of RNA velocity. Velocyto
14463 includes a command line tool and an analysis pipeline.")
14464 (license license:bsd-2)))
14465
14466 (define-public arriba
14467 (package
14468 (name "arriba")
14469 (version "1.0.1")
14470 (source
14471 (origin
14472 (method url-fetch)
14473 (uri (string-append "https://github.com/suhrig/arriba/releases/"
14474 "download/v" version "/arriba_v" version ".tar.gz"))
14475 (sha256
14476 (base32
14477 "0jx9656ry766vb8z08m1c3im87b0c82qpnjby9wz4kcz8vn87dx2"))))
14478 (build-system gnu-build-system)
14479 (arguments
14480 `(#:tests? #f ; there are none
14481 #:phases
14482 (modify-phases %standard-phases
14483 (replace 'configure
14484 (lambda* (#:key inputs #:allow-other-keys)
14485 (let ((htslib (assoc-ref inputs "htslib")))
14486 (substitute* "Makefile"
14487 (("-I\\$\\(HTSLIB\\)/htslib")
14488 (string-append "-I" htslib "/include/htslib"))
14489 ((" \\$\\(HTSLIB\\)/libhts.a")
14490 (string-append " " htslib "/lib/libhts.so"))))
14491 (substitute* "run_arriba.sh"
14492 (("^STAR ") (string-append (which "STAR") " "))
14493 (("samtools --version-only")
14494 (string-append (which "samtools") " --version-only"))
14495 (("samtools index")
14496 (string-append (which "samtools") " index"))
14497 (("samtools sort")
14498 (string-append (which "samtools") " sort")))
14499 #t))
14500 (replace 'install
14501 (lambda* (#:key outputs #:allow-other-keys)
14502 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14503 (install-file "arriba" bin)
14504 (install-file "run_arriba.sh" bin)
14505 (install-file "draw_fusions.R" bin)
14506 (wrap-program (string-append bin "/draw_fusions.R")
14507 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14508 #t)))))
14509 (inputs
14510 `(("htslib" ,htslib)
14511 ("r-minimal" ,r-minimal)
14512 ("r-circlize" ,r-circlize)
14513 ("r-genomicalignments" ,r-genomicalignments)
14514 ("r-genomicranges" ,r-genomicranges)
14515 ("samtools" ,samtools)
14516 ("star" ,star)
14517 ("zlib" ,zlib)))
14518 (home-page "https://github.com/suhrig/arriba")
14519 (synopsis "Gene fusion detection from RNA-Seq data ")
14520 (description
14521 "Arriba is a command-line tool for the detection of gene fusions from
14522 RNA-Seq data. It was developed for the use in a clinical research setting.
14523 Therefore, short runtimes and high sensitivity were important design criteria.
14524 It is based on the fast STAR aligner and the post-alignment runtime is
14525 typically just around two minutes. In contrast to many other fusion detection
14526 tools which build on STAR, Arriba does not require to reduce the
14527 @code{alignIntronMax} parameter of STAR to detect small deletions.")
14528 ;; All code is under the Expat license with the exception of
14529 ;; "draw_fusions.R", which is under GPLv3.
14530 (license (list license:expat license:gpl3))))
14531
14532 (define-public adapterremoval
14533 (package
14534 (name "adapterremoval")
14535 (version "2.3.0")
14536 (source
14537 (origin
14538 (method git-fetch)
14539 (uri (git-reference
14540 (url "https://github.com/MikkelSchubert/adapterremoval.git")
14541 (commit (string-append "v" version))))
14542 (file-name (git-file-name name version))
14543 (sha256
14544 (base32
14545 "1nf3ki5pfzalhrx2fr1y6pfqfi133yj2m7q4fj9irf5fb94bapwr"))))
14546 (build-system gnu-build-system)
14547 (arguments
14548 `(#:make-flags (list "COLOR_BUILD=no"
14549 (string-append "PREFIX="
14550 (assoc-ref %outputs "out")))
14551 #:test-target "test"
14552 #:phases
14553 (modify-phases %standard-phases
14554 (delete 'configure))))
14555 (inputs
14556 `(("zlib" ,zlib)))
14557 (home-page "https://adapterremoval.readthedocs.io/")
14558 (synopsis "Rapid sequence adapter trimming, identification, and read merging")
14559 (description
14560 "This program searches for and removes remnant adapter sequences from
14561 @dfn{High-Throughput Sequencing} (HTS) data and (optionally) trims low quality
14562 bases from the 3' end of reads following adapter removal. AdapterRemoval can
14563 analyze both single end and paired end data, and can be used to merge
14564 overlapping paired-ended reads into (longer) consensus sequences.
14565 Additionally, the AdapterRemoval may be used to recover a consensus adapter
14566 sequence for paired-ended data, for which this information is not available.")
14567 (license license:gpl3+)))
14568
14569 (define-public pplacer
14570 (let ((commit "807f6f3"))
14571 (package
14572 (name "pplacer")
14573 ;; The commit should be updated with each version change.
14574 (version "1.1.alpha19")
14575 (source
14576 (origin
14577 (method git-fetch)
14578 (uri (git-reference
14579 (url "https://github.com/matsen/pplacer.git")
14580 (commit (string-append "v" version))))
14581 (file-name (git-file-name name version))
14582 (sha256
14583 (base32 "11ppbbbx20p2g9wj3ff64dhnarb12q79v7qh4rk0gj6lkbz4n7cn"))))
14584 (build-system ocaml-build-system)
14585 (arguments
14586 `(#:modules ((guix build ocaml-build-system)
14587 (guix build utils)
14588 (ice-9 ftw))
14589 #:phases
14590 (modify-phases %standard-phases
14591 (delete 'configure)
14592 (add-after 'unpack 'fix-build-with-latest-ocaml
14593 (lambda _
14594 (substitute* "myocamlbuild.ml"
14595 (("dep \\[\"c_pam\"\\]" m)
14596 (string-append "flag [\"ocaml\"; \"compile\"] (A \"-unsafe-string\");\n"
14597 m))
14598 (("let run_and_read" m)
14599 (string-append "
14600 let split s ch =
14601 let x = ref [] in
14602 let rec go s =
14603 let pos = String.index s ch in
14604 x := (String.before s pos)::!x;
14605 go (String.after s (pos + 1))
14606 in
14607 try go s
14608 with Not_found -> !x
14609 let split_nl s = split s '\\n'
14610 let before_space s =
14611 try String.before s (String.index s ' ')
14612 with Not_found -> s
14613
14614 " m))
14615 (("run_and_read \"ocamlfind list \\| cut -d' ' -f1\"" m)
14616 (string-append "List.map before_space (split_nl & " m ")"))
14617 ((" blank_sep_strings &") "")
14618 ((" Lexing.from_string &") ""))
14619 #t))
14620 (add-after 'unpack 'replace-bundled-cddlib
14621 (lambda* (#:key inputs #:allow-other-keys)
14622 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
14623 (local-dir "cddlib_guix"))
14624 (mkdir local-dir)
14625 (with-directory-excursion local-dir
14626 (invoke "tar" "xvf" cddlib-src))
14627 (let ((cddlib-src-folder
14628 (string-append local-dir "/"
14629 (list-ref (scandir local-dir) 2)
14630 "/lib-src")))
14631 (for-each make-file-writable (find-files "cdd_src" ".*"))
14632 (for-each
14633 (lambda (file)
14634 (copy-file file
14635 (string-append "cdd_src/" (basename file))))
14636 (find-files cddlib-src-folder ".*[ch]$")))
14637 #t)))
14638 (add-after 'unpack 'fix-makefile
14639 (lambda _
14640 ;; Remove system calls to 'git'.
14641 (substitute* "Makefile"
14642 (("^DESCRIPT:=pplacer-.*")
14643 (string-append
14644 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
14645 (substitute* "myocamlbuild.ml"
14646 (("git describe --tags --long .*\\\" with")
14647 (string-append
14648 "echo -n v" ,version "-" ,commit "\" with")))
14649 #t))
14650 (replace 'install
14651 (lambda* (#:key outputs #:allow-other-keys)
14652 (let* ((out (assoc-ref outputs "out"))
14653 (bin (string-append out "/bin")))
14654 (copy-recursively "bin" bin))
14655 #t)))))
14656 (inputs
14657 `(("zlib" ,zlib "static")
14658 ("gsl" ,gsl)
14659 ("ocaml-ounit" ,ocaml-ounit)
14660 ("ocaml-batteries" ,ocaml-batteries)
14661 ("ocaml-camlzip" ,camlzip)
14662 ("ocaml-csv" ,ocaml-csv)
14663 ("ocaml-sqlite3" ,ocaml-sqlite3)
14664 ("ocaml-xmlm" ,ocaml-xmlm)
14665 ("ocaml-mcl" ,ocaml-mcl)
14666 ("ocaml-gsl" ,ocaml-gsl-1)))
14667 (native-inputs
14668 `(("cddlib-src" ,(package-source cddlib))
14669 ("ocamlbuild" ,ocamlbuild)
14670 ("pkg-config" ,pkg-config)))
14671 (propagated-inputs
14672 `(("pplacer-scripts" ,pplacer-scripts)))
14673 (synopsis "Phylogenetic placement of biological sequences")
14674 (description
14675 "Pplacer places query sequences on a fixed reference phylogenetic tree
14676 to maximize phylogenetic likelihood or posterior probability according to a
14677 reference alignment. Pplacer is designed to be fast, to give useful
14678 information about uncertainty, and to offer advanced visualization and
14679 downstream analysis.")
14680 (home-page "http://matsen.fhcrc.org/pplacer")
14681 (license license:gpl3))))
14682
14683 ;; This package is installed alongside 'pplacer'. It is a separate package so
14684 ;; that it can use the python-build-system for the scripts that are
14685 ;; distributed alongside the main OCaml binaries.
14686 (define pplacer-scripts
14687 (package
14688 (inherit pplacer)
14689 (name "pplacer-scripts")
14690 (build-system python-build-system)
14691 (arguments
14692 `(#:python ,python-2
14693 #:phases
14694 (modify-phases %standard-phases
14695 (add-after 'unpack 'enter-scripts-dir
14696 (lambda _ (chdir "scripts") #t))
14697 (replace 'check
14698 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t))
14699 (add-after 'install 'wrap-executables
14700 (lambda* (#:key inputs outputs #:allow-other-keys)
14701 (let* ((out (assoc-ref outputs "out"))
14702 (bin (string-append out "/bin")))
14703 (let ((path (string-append
14704 (assoc-ref inputs "hmmer") "/bin:"
14705 (assoc-ref inputs "infernal") "/bin")))
14706 (display path)
14707 (wrap-program (string-append bin "/refpkg_align.py")
14708 `("PATH" ":" prefix (,path))))
14709 (let ((path (string-append
14710 (assoc-ref inputs "hmmer") "/bin")))
14711 (wrap-program (string-append bin "/hrefpkg_query.py")
14712 `("PATH" ":" prefix (,path)))))
14713 #t)))))
14714 (inputs
14715 `(("infernal" ,infernal)
14716 ("hmmer" ,hmmer)))
14717 (propagated-inputs
14718 `(("python-biopython" ,python2-biopython)
14719 ("taxtastic" ,taxtastic)))
14720 (synopsis "Pplacer Python scripts")))
14721
14722 (define-public python2-checkm-genome
14723 (package
14724 (name "python2-checkm-genome")
14725 (version "1.0.13")
14726 (source
14727 (origin
14728 (method url-fetch)
14729 (uri (pypi-uri "checkm-genome" version))
14730 (sha256
14731 (base32
14732 "0bm8gpxjmzxsxxl8lzwqhgx8g1dlnmp6znz7wv3hgb0gdjbf9dzz"))))
14733 (build-system python-build-system)
14734 (arguments
14735 `(#:python ,python-2
14736 #:tests? #f)) ; some tests are interactive
14737 (propagated-inputs
14738 `(("python-dendropy" ,python2-dendropy)
14739 ("python-matplotlib" ,python2-matplotlib)
14740 ("python-numpy" ,python2-numpy)
14741 ("python-pysam" ,python2-pysam)
14742 ("python-scipy" ,python2-scipy)))
14743 (home-page "http://pypi.python.org/pypi/checkm/")
14744 (synopsis "Assess the quality of putative genome bins")
14745 (description
14746 "CheckM provides a set of tools for assessing the quality of genomes
14747 recovered from isolates, single cells, or metagenomes. It provides robust
14748 estimates of genome completeness and contamination by using collocated sets of
14749 genes that are ubiquitous and single-copy within a phylogenetic lineage.
14750 Assessment of genome quality can also be examined using plots depicting key
14751 genomic characteristics (e.g., GC, coding density) which highlight sequences
14752 outside the expected distributions of a typical genome. CheckM also provides
14753 tools for identifying genome bins that are likely candidates for merging based
14754 on marker set compatibility, similarity in genomic characteristics, and
14755 proximity within a reference genome.")
14756 (license license:gpl3+)))
14757
14758 (define-public umi-tools
14759 (package
14760 (name "umi-tools")
14761 (version "1.0.0")
14762 (source
14763 (origin
14764 (method url-fetch)
14765 (uri (pypi-uri "umi_tools" version))
14766 (sha256
14767 (base32
14768 "08y3vz1vcx09whmbsn722lcs6jl9wyrh9i4p3k8j4cb1i32bij4a"))))
14769 (build-system python-build-system)
14770 (inputs
14771 `(("python-setuptools" ,python-setuptools)
14772 ("python-pandas" ,python-pandas)
14773 ("python-future" ,python-future)
14774 ("python-scipy" ,python-scipy)
14775 ("python-matplotlib" ,python-matplotlib)
14776 ("python-regex" ,python-regex)
14777 ("python-pysam" ,python-pysam)))
14778 (native-inputs
14779 `(("python-setuptools" ,python-setuptools)
14780 ("python-cython" ,python-cython)))
14781 (home-page "https://github.com/CGATOxford/UMI-tools")
14782 (synopsis "Tools for analyzing unique modular identifiers")
14783 (description "This package provides tools for dealing with @dfn{Unique
14784 Molecular Identifiers} (UMIs) and @dfn{Random Molecular Tags} (RMTs) in
14785 genetic sequences. There are six tools: the @code{extract} and
14786 @code{whitelist} commands are used to prepare a fastq containg UMIs @code{+/-}
14787 cell barcodes for alignment. The remaining commands, @code{group},
14788 @code{dedup}, and @{count}/@code{count_tab}, are used to identify PCR
14789 duplicates using the UMIs and perform different levels of analysis depending
14790 on the needs of the user.")
14791 (license license:expat)))