1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
3 ;;; Copyright © 2015, 2016, 2017 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 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
9 ;;; Copyright © 2016 Raoul Bonnal <ilpuccio.febo@gmail.com>
11 ;;; This file is part of GNU Guix.
13 ;;; GNU Guix is free software; you can redistribute it and/or modify it
14 ;;; under the terms of the GNU General Public License as published by
15 ;;; the Free Software Foundation; either version 3 of the License, or (at
16 ;;; your option) any later version.
18 ;;; GNU Guix is distributed in the hope that it will be useful, but
19 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;;; GNU General Public License for more details.
23 ;;; You should have received a copy of the GNU General Public License
24 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
26 (define-module (gnu packages bioinformatics)
27 #:use-module ((guix licenses) #:prefix license:)
28 #:use-module (guix packages)
29 #:use-module (guix utils)
30 #:use-module (guix download)
31 #:use-module (guix git-download)
32 #:use-module (guix hg-download)
33 #:use-module (guix build-system ant)
34 #:use-module (guix build-system gnu)
35 #:use-module (guix build-system cmake)
36 #:use-module (guix build-system ocaml)
37 #:use-module (guix build-system perl)
38 #:use-module (guix build-system python)
39 #:use-module (guix build-system r)
40 #:use-module (guix build-system ruby)
41 #:use-module (guix build-system trivial)
42 #:use-module (gnu packages)
43 #:use-module (gnu packages autotools)
44 #:use-module (gnu packages algebra)
45 #:use-module (gnu packages base)
46 #:use-module (gnu packages bash)
47 #:use-module (gnu packages bison)
48 #:use-module (gnu packages boost)
49 #:use-module (gnu packages compression)
50 #:use-module (gnu packages cpio)
51 #:use-module (gnu packages curl)
52 #:use-module (gnu packages documentation)
53 #:use-module (gnu packages datastructures)
54 #:use-module (gnu packages file)
55 #:use-module (gnu packages flex)
56 #:use-module (gnu packages gawk)
57 #:use-module (gnu packages gcc)
58 #:use-module (gnu packages gd)
59 #:use-module (gnu packages gtk)
60 #:use-module (gnu packages glib)
61 #:use-module (gnu packages groff)
62 #:use-module (gnu packages guile)
63 #:use-module (gnu packages haskell)
64 #:use-module (gnu packages image)
65 #:use-module (gnu packages imagemagick)
66 #:use-module (gnu packages java)
67 #:use-module (gnu packages ldc)
68 #:use-module (gnu packages linux)
69 #:use-module (gnu packages logging)
70 #:use-module (gnu packages machine-learning)
71 #:use-module (gnu packages man)
72 #:use-module (gnu packages maths)
73 #:use-module (gnu packages mpi)
74 #:use-module (gnu packages ncurses)
75 #:use-module (gnu packages ocaml)
76 #:use-module (gnu packages pcre)
77 #:use-module (gnu packages parallel)
78 #:use-module (gnu packages pdf)
79 #:use-module (gnu packages perl)
80 #:use-module (gnu packages pkg-config)
81 #:use-module (gnu packages popt)
82 #:use-module (gnu packages protobuf)
83 #:use-module (gnu packages python)
84 #:use-module (gnu packages readline)
85 #:use-module (gnu packages ruby)
86 #:use-module (gnu packages serialization)
87 #:use-module (gnu packages statistics)
88 #:use-module (gnu packages tbb)
89 #:use-module (gnu packages tex)
90 #:use-module (gnu packages texinfo)
91 #:use-module (gnu packages textutils)
92 #:use-module (gnu packages time)
93 #:use-module (gnu packages tls)
94 #:use-module (gnu packages vim)
95 #:use-module (gnu packages web)
96 #:use-module (gnu packages xml)
97 #:use-module (gnu packages xorg)
98 #:use-module (gnu packages zip)
99 #:use-module (srfi srfi-1))
108 (uri (cran-uri "ape" version))
111 "0959fiiy11rzfzrzaknmgrx64bhszj02l0ycz79k5a6bmpfzanlk"))))
112 (build-system r-build-system)
114 `(("r-lattice" ,r-lattice)
116 (home-page "http://ape-package.ird.fr/")
117 (synopsis "Analyses of phylogenetics and evolution")
119 "This package provides functions for reading, writing, plotting, and
120 manipulating phylogenetic trees, analyses of comparative data in a
121 phylogenetic framework, ancestral character analyses, analyses of
122 diversification and macroevolution, computing distances from DNA sequences,
123 and several other tools.")
124 (license license:gpl2+)))
126 (define-public aragorn
133 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
137 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
138 (build-system gnu-build-system)
140 `(#:tests? #f ; there are no tests
142 (modify-phases %standard-phases
146 (zero? (system* "gcc"
152 (string-append "aragorn" ,version ".c")))))
154 (lambda* (#:key outputs #:allow-other-keys)
155 (let* ((out (assoc-ref outputs "out"))
156 (bin (string-append out "/bin"))
157 (man (string-append out "/share/man/man1")))
159 (install-file "aragorn" bin)
161 (install-file "aragorn.1" man))
163 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
164 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
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)))
178 ;; BamM is not available on pypi.
180 "https://github.com/Ecogenomics/BamM/archive/"
182 (file-name (string-append name "-" version ".tar.gz"))
185 "1f35yxp4pc8aadsvbpg6r4kg2jh4fkjci0iby4iyljm6980sac0s"))
186 (modules '((guix build utils)))
189 ;; Delete bundled htslib.
190 (delete-file-recursively "c/htslib-1.3.1")
192 (build-system python-build-system)
194 `(#:python ,python-2 ; BamM is Python 2 only.
195 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
196 ;; been modified from its original form.
198 (let ((htslib (assoc-ref %build-inputs "htslib")))
199 (list "--with-libhts-lib" (string-append htslib "/lib")
200 "--with-libhts-inc" (string-append htslib "/include/htslib")))
202 (modify-phases %standard-phases
203 (add-after 'unpack 'autogen
205 (with-directory-excursion "c"
206 (let ((sh (which "sh")))
207 ;; Use autogen so that 'configure' works.
208 (substitute* "autogen.sh" (("/bin/sh") sh))
209 (setenv "CONFIG_SHELL" sh)
210 (substitute* "configure" (("/bin/sh") sh))
211 (zero? (system* "./autogen.sh"))))))
213 ;; Run tests after installation so compilation only happens once.
215 (add-after 'install 'wrap-executable
216 (lambda* (#:key outputs #:allow-other-keys)
217 (let* ((out (assoc-ref outputs "out"))
218 (path (getenv "PATH")))
219 (wrap-program (string-append out "/bin/bamm")
220 `("PATH" ":" prefix (,path))))
222 (add-after 'wrap-executable 'post-install-check
223 (lambda* (#:key inputs outputs #:allow-other-keys)
225 (string-append (assoc-ref outputs "out")
230 (assoc-ref outputs "out")
232 (string-take (string-take-right
233 (assoc-ref inputs "python") 5) 3)
235 (getenv "PYTHONPATH")))
236 ;; There are 2 errors printed, but they are safe to ignore:
237 ;; 1) [E::hts_open_format] fail to open file ...
238 ;; 2) samtools view: failed to open ...
239 (zero? (system* "nosetests")))))))
241 `(("autoconf" ,autoconf)
242 ("automake" ,automake)
245 ("python-nose" ,python2-nose)
246 ("python-pysam" ,python2-pysam)))
249 ("samtools" ,samtools)
253 ("coreutils" ,coreutils)))
255 `(("python-numpy" ,python2-numpy)))
256 (home-page "http://ecogenomics.github.io/BamM/")
257 (synopsis "Metagenomics-focused BAM file manipulator")
259 "BamM is a C library, wrapped in python, to efficiently generate and
260 parse BAM files, specifically for the analysis of metagenomic data. For
261 instance, it implements several methods to assess contig-wise read coverage.")
262 (license license:lgpl3+)))
264 (define-public bamtools
271 "https://github.com/pezmaster31/bamtools/archive/v"
273 (file-name (string-append name "-" version ".tar.gz"))
276 "0jr024kcrhjb82cm69i7p5fcg5375zlc1h3qh2n1v368hcd0qflk"))))
277 (build-system cmake-build-system)
279 `(#:tests? #f ;no "check" target
281 (modify-phases %standard-phases
283 'configure 'set-ldflags
284 (lambda* (#:key outputs #:allow-other-keys)
288 (assoc-ref outputs "out") "/lib/bamtools")))))))
289 (inputs `(("zlib" ,zlib)))
290 (home-page "https://github.com/pezmaster31/bamtools")
291 (synopsis "C++ API and command-line toolkit for working with BAM data")
293 "BamTools provides both a C++ API and a command-line toolkit for handling
295 (license license:expat)))
297 (define-public bcftools
304 "https://github.com/samtools/bcftools/releases/download/"
305 version "/bcftools-" version ".tar.bz2"))
308 "095ry68vmz9q5s1scjsa698dhgyvgw5aicz24c19iwfbai07mhqj"))
309 (modules '((guix build utils)))
311 ;; Delete bundled htslib.
312 '(delete-file-recursively "htslib-1.3.1"))))
313 (build-system gnu-build-system)
315 `(#:test-target "test"
319 (string-append "prefix=" (assoc-ref %outputs "out"))
320 (string-append "HTSDIR=" (assoc-ref %build-inputs "htslib") "/include")
321 (string-append "HTSLIB=" (assoc-ref %build-inputs "htslib") "/lib/libhts.a")
322 (string-append "BGZIP=" (assoc-ref %build-inputs "htslib") "/bin/bgzip")
323 (string-append "TABIX=" (assoc-ref %build-inputs "htslib") "/bin/tabix"))
325 (modify-phases %standard-phases
326 (add-after 'unpack 'patch-Makefile
328 (substitute* "Makefile"
329 ;; Do not attempt to build htslib.
330 (("^include \\$\\(HTSDIR\\)/htslib\\.mk") "")
331 ;; Link against GSL cblas.
332 (("-lcblas") "-lgslcblas"))
335 (add-before 'check 'patch-tests
337 (substitute* "test/test.pl"
338 (("/bin/bash") (which "bash")))
346 (home-page "https://samtools.github.io/bcftools/")
347 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
349 "BCFtools is a set of utilities that manipulate variant calls in the
350 Variant Call Format (VCF) and its binary counterpart BCF. All commands work
351 transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
352 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
353 (license (list license:gpl3+ license:expat))))
355 (define-public bedops
361 (uri (string-append "https://github.com/bedops/bedops/archive/v"
363 (file-name (string-append name "-" version ".tar.gz"))
366 "1kqbac547wyqma81cyky9n7mkgikjpsfd3nnmcm6hpqwanqgh10v"))))
367 (build-system gnu-build-system)
370 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
373 'unpack 'unpack-tarballs
375 ;; FIXME: Bedops includes tarballs of minimally patched upstream
376 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
377 ;; libraries because at least one of the libraries (zlib) is
378 ;; patched to add a C++ function definition (deflateInit2cpp).
379 ;; Until the Bedops developers offer a way to link against system
380 ;; libraries we have to build the in-tree copies of these three
383 ;; See upstream discussion:
384 ;; https://github.com/bedops/bedops/issues/124
386 ;; Unpack the tarballs to benefit from shebang patching.
387 (with-directory-excursion "third-party"
388 (and (zero? (system* "tar" "xvf" "jansson-2.6.tar.bz2"))
389 (zero? (system* "tar" "xvf" "zlib-1.2.7.tar.bz2"))
390 (zero? (system* "tar" "xvf" "bzip2-1.0.6.tar.bz2"))))
391 ;; Disable unpacking of tarballs in Makefile.
392 (substitute* "system.mk/Makefile.linux"
393 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
394 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
395 (substitute* "third-party/zlib-1.2.7/Makefile.in"
396 (("^SHELL=.*$") "SHELL=bash\n")))
397 (alist-delete 'configure %standard-phases))))
398 (home-page "https://github.com/bedops/bedops")
399 (synopsis "Tools for high-performance genomic feature operations")
401 "BEDOPS is a suite of tools to address common questions raised in genomic
402 studies---mostly with regard to overlap and proximity relationships between
403 data sets. It aims to be scalable and flexible, facilitating the efficient
404 and accurate analysis and management of large-scale genomic data.
406 BEDOPS provides tools that perform highly efficient and scalable Boolean and
407 other set operations, statistical calculations, archiving, conversion and
408 other management of genomic data of arbitrary scale. Tasks can be easily
409 split by chromosome for distributing whole-genome analyses across a
410 computational cluster.")
411 (license license:gpl2+)))
413 (define-public bedtools
419 (uri (string-append "https://github.com/arq5x/bedtools2/archive/v"
421 (file-name (string-append name "-" version ".tar.gz"))
424 "0xvri5hnp2iim1cx6mcd5d9f102p5ql41x69rd6106x1c17pinqm"))))
425 (build-system gnu-build-system)
426 (native-inputs `(("python" ,python-2)))
427 (inputs `(("samtools" ,samtools)
430 '(#:test-target "test"
432 (modify-phases %standard-phases
435 (lambda* (#:key outputs #:allow-other-keys)
436 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
437 (for-each (lambda (file)
438 (install-file file bin))
439 (find-files "bin" ".*")))
441 (home-page "https://github.com/arq5x/bedtools2")
442 (synopsis "Tools for genome analysis and arithmetic")
444 "Collectively, the bedtools utilities are a swiss-army knife of tools for
445 a wide-range of genomics analysis tasks. The most widely-used tools enable
446 genome arithmetic: that is, set theory on the genome. For example, bedtools
447 allows one to intersect, merge, count, complement, and shuffle genomic
448 intervals from multiple files in widely-used genomic file formats such as BAM,
450 (license license:gpl2)))
452 ;; Later releases of bedtools produce files with more columns than
453 ;; what Ribotaper expects.
454 (define-public bedtools-2.18
455 (package (inherit bedtools)
460 (uri (string-append "https://github.com/arq5x/bedtools2/"
461 "archive/v" version ".tar.gz"))
462 (file-name (string-append name "-" version ".tar.gz"))
465 "05vrnr8yp7swfagshzpgqmzk1blnwnq8pq5pckzi1m26w98d63vf"))))))
467 (define-public ribotaper
473 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
474 "files/RiboTaper/RiboTaper_Version_"
478 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
479 (build-system gnu-build-system)
481 `(("bedtools" ,bedtools-2.18)
482 ("samtools" ,samtools-0.1)
483 ("r-minimal" ,r-minimal)
484 ("r-foreach" ,r-foreach)
485 ("r-xnomial" ,r-xnomial)
487 ("r-multitaper" ,r-multitaper)
488 ("r-seqinr" ,r-seqinr)))
489 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
490 (synopsis "Define translated ORFs using ribosome profiling data")
492 "Ribotaper is a method for defining translated @dfn{open reading
493 frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
494 provides the Ribotaper pipeline.")
495 (license license:gpl3+)))
497 (define-public ribodiff
504 (uri (string-append "https://github.com/ratschlab/RiboDiff/"
505 "archive/v" version ".tar.gz"))
506 (file-name (string-append name "-" version ".tar.gz"))
509 "0wpbwmfv05wdjxv7ikm664f7s7p7cqr8jnw99zrda0q67rl50aaj"))))
510 (build-system python-build-system)
514 (modify-phases %standard-phases
515 ;; Generate an installable executable script wrapper.
516 (add-after 'unpack 'patch-setup.py
518 (substitute* "setup.py"
519 (("^(.*)packages=.*" line prefix)
520 (string-append line "\n"
521 prefix "scripts=['scripts/TE.py'],\n")))
524 `(("python-numpy" ,python2-numpy)
525 ("python-matplotlib" ,python2-matplotlib)
526 ("python-scipy" ,python2-scipy)
527 ("python-statsmodels" ,python2-statsmodels)))
529 `(("python-mock" ,python2-mock)
530 ("python-nose" ,python2-nose)))
531 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
532 (synopsis "Detect translation efficiency changes from ribosome footprints")
533 (description "RiboDiff is a statistical tool that detects the protein
534 translational efficiency change from Ribo-Seq (ribosome footprinting) and
535 RNA-Seq data. It uses a generalized linear model to detect genes showing
536 difference in translational profile taking mRNA abundance into account. It
537 facilitates us to decipher the translational regulation that behave
538 independently with transcriptional regulation.")
539 (license license:gpl3+)))
541 (define-public bioawk
547 (uri (string-append "https://github.com/lh3/bioawk/archive/v"
549 (file-name (string-append name "-" version ".tar.gz"))
551 (base32 "1daizxsk17ahi9n58fj8vpgwyhzrzh54bzqhanjanp88kgrz7gjw"))))
552 (build-system gnu-build-system)
558 `(#:tests? #f ; There are no tests to run.
559 ;; Bison must generate files, before other targets can build.
562 (modify-phases %standard-phases
563 (delete 'configure) ; There is no configure phase.
565 (lambda* (#:key outputs #:allow-other-keys)
566 (let* ((out (assoc-ref outputs "out"))
567 (bin (string-append out "/bin"))
568 (man (string-append out "/share/man/man1")))
570 (copy-file "awk.1" (string-append man "/bioawk.1"))
571 (install-file "bioawk" bin)))))))
572 (home-page "https://github.com/lh3/bioawk")
573 (synopsis "AWK with bioinformatics extensions")
574 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
575 support of several common biological data formats, including optionally gzip'ed
576 BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
577 also adds a few built-in functions and a command line option to use TAB as the
578 input/output delimiter. When the new functionality is not used, bioawk is
579 intended to behave exactly the same as the original BWK awk.")
580 (license license:x11)))
582 (define-public python2-pybedtools
584 (name "python2-pybedtools")
589 "https://pypi.python.org/packages/source/p/pybedtools/pybedtools-"
593 "1ldzdxw1p4y3g2ignmggsdypvqkcwqwzhdha4rbgpih048z5p4an"))))
594 (build-system python-build-system)
595 (arguments `(#:python ,python-2)) ; no Python 3 support
597 `(("python-matplotlib" ,python2-matplotlib)))
599 `(("bedtools" ,bedtools)
600 ("samtools" ,samtools)))
602 `(("python-cython" ,python2-cython)
603 ("python-pyyaml" ,python2-pyyaml)
604 ("python-nose" ,python2-nose)))
605 (home-page "https://pythonhosted.org/pybedtools/")
606 (synopsis "Python wrapper for BEDtools programs")
608 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
609 which are widely used for genomic interval manipulation or \"genome algebra\".
610 pybedtools extends BEDTools by offering feature-level manipulations from with
612 (license license:gpl2+)))
614 (define-public python-biom-format
616 (name "python-biom-format")
621 ;; Use GitHub as source because PyPI distribution does not contain
622 ;; test data: https://github.com/biocore/biom-format/issues/693
623 (uri (string-append "https://github.com/biocore/biom-format/archive/"
625 (file-name (string-append name "-" version ".tar.gz"))
628 "08cr7wpahk6zb31h4bs7jmzpvxcqv9s13xz40h6y2h656jvdvnpj"))))
629 (build-system python-build-system)
631 `(("python-numpy" ,python-numpy)
632 ("python-scipy" ,python-scipy)
633 ("python-future" ,python-future)
634 ("python-click" ,python-click)
635 ("python-h5py" ,python-h5py)
636 ("python-pandas" ,python-pandas)))
638 `(("python-nose" ,python-nose)))
639 (home-page "http://www.biom-format.org")
640 (synopsis "Biological Observation Matrix (BIOM) format utilities")
642 "The BIOM file format is designed to be a general-use format for
643 representing counts of observations e.g. operational taxonomic units, KEGG
644 orthology groups or lipid types, in one or more biological samples
645 e.g. microbiome samples, genomes, metagenomes.")
646 (license license:bsd-3)
647 (properties `((python2-variant . ,(delay python2-biom-format))))))
649 (define-public python2-biom-format
650 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
655 (modify-phases %standard-phases
656 ;; Do not require the unmaintained pyqi library.
657 (add-after 'unpack 'remove-pyqi
659 (substitute* "setup.py"
660 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
662 ,@(package-arguments base))))))
664 (define-public bioperl-minimal
665 (let* ((inputs `(("perl-module-build" ,perl-module-build)
666 ("perl-data-stag" ,perl-data-stag)
667 ("perl-libwww" ,perl-libwww)
668 ("perl-uri" ,perl-uri)))
670 (map (compose package-name cadr)
673 (map (compose package-transitive-target-inputs cadr) inputs))))))
675 (name "bioperl-minimal")
680 (uri (string-append "https://github.com/bioperl/bioperl-live/"
682 (string-map (lambda (c)
688 "12phgpxwgkqflkwfb9dcqg7a31dpjlfhar8wcgv0aj5ln4akfz06"))))
689 (build-system perl-build-system)
692 (modify-phases %standard-phases
694 'install 'wrap-programs
695 (lambda* (#:key outputs #:allow-other-keys)
696 ;; Make sure all executables in "bin" find the required Perl
697 ;; modules at runtime. As the PERL5LIB variable contains also
698 ;; the paths of native inputs, we pick the transitive target
699 ;; inputs from %build-inputs.
700 (let* ((out (assoc-ref outputs "out"))
701 (bin (string-append out "/bin/"))
703 (cons (string-append out "/lib/perl5/site_perl")
705 (assoc-ref %build-inputs name))
706 ',transitive-inputs))
708 (for-each (lambda (file)
710 `("PERL5LIB" ":" prefix (,path))))
711 (find-files bin "\\.pl$"))
715 `(("perl-test-most" ,perl-test-most)))
716 (home-page "http://search.cpan.org/dist/BioPerl")
717 (synopsis "Bioinformatics toolkit")
719 "BioPerl is the product of a community effort to produce Perl code which
720 is useful in biology. Examples include Sequence objects, Alignment objects
721 and database searching objects. These objects not only do what they are
722 advertised to do in the documentation, but they also interact - Alignment
723 objects are made from the Sequence objects, Sequence objects have access to
724 Annotation and SeqFeature objects and databases, Blast objects can be
725 converted to Alignment objects, and so on. This means that the objects
726 provide a coordinated and extensible framework to do computational biology.")
727 (license license:perl-license))))
729 (define-public python-biopython
731 (name "python-biopython")
735 ;; use PyPi rather than biopython.org to ease updating
736 (uri (pypi-uri "biopython" version))
739 "07qc7nz0k77y8hf8s18rscvibvm91zw0kkq7ylrhisf8vp8hkp6i"))))
740 (build-system python-build-system)
743 (modify-phases %standard-phases
744 (add-before 'check 'set-home
745 ;; Some tests require a home directory to be set.
746 (lambda _ (setenv "HOME" "/tmp") #t)))))
748 `(("python-numpy" ,python-numpy)))
749 (home-page "http://biopython.org/")
750 (synopsis "Tools for biological computation in Python")
752 "Biopython is a set of tools for biological computation including parsers
753 for bioinformatics files into Python data structures; interfaces to common
754 bioinformatics programs; a standard sequence class and tools for performing
755 common operations on them; code to perform data classification; code for
756 dealing with alignments; code making it easy to split up parallelizable tasks
757 into separate processes; and more.")
758 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
760 (define-public python2-biopython
761 (package-with-python2 python-biopython))
763 ;; An outdated version of biopython is required for seqmagick, see
764 ;; https://github.com/fhcrc/seqmagick/issues/59
765 ;; When that issue has been resolved this package should be removed.
766 (define python2-biopython-1.66
768 (inherit python2-biopython)
772 (uri (pypi-uri "biopython" version))
775 "1gdv92593klimg22icf5j9by7xiq86jnwzkpz4abaa05ylkdf6hp"))))))
777 (define-public bpp-core
778 ;; The last release was in 2014 and the recommended way to install from source
779 ;; is to clone the git repository, so we do this.
780 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
781 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
784 (version (string-append "2.2.0-1." (string-take commit 7)))
788 (url "http://biopp.univ-montp2.fr/git/bpp-core")
790 (file-name (string-append name "-" version "-checkout"))
793 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
794 (build-system cmake-build-system)
796 `(#:parallel-build? #f))
798 `(("gcc" ,gcc-5))) ; Compilation of bpp-phyl fails with GCC 4.9 so we
799 ; compile all of the bpp packages with GCC 5.
800 (home-page "http://biopp.univ-montp2.fr")
801 (synopsis "C++ libraries for Bioinformatics")
803 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
804 analysis, phylogenetics, molecular evolution and population genetics. It is
805 Object Oriented and is designed to be both easy to use and computer efficient.
806 Bio++ intends to help programmers to write computer expensive programs, by
807 providing them a set of re-usable tools.")
808 (license license:cecill-c))))
810 (define-public bpp-phyl
811 ;; The last release was in 2014 and the recommended way to install from source
812 ;; is to clone the git repository, so we do this.
813 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
814 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
817 (version (string-append "2.2.0-1." (string-take commit 7)))
821 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
823 (file-name (string-append name "-" version "-checkout"))
826 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
827 (build-system cmake-build-system)
829 `(#:parallel-build? #f
830 ;; If out-of-source, test data is not copied into the build directory
831 ;; so the tests fail.
832 #:out-of-source? #f))
834 `(("bpp-core" ,bpp-core)
836 ;; GCC 4.8 fails due to an 'internal compiler error', so we use a more
839 (home-page "http://biopp.univ-montp2.fr")
840 (synopsis "Bio++ phylogenetic Library")
842 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
843 analysis, phylogenetics, molecular evolution and population genetics. This
844 library provides phylogenetics-related modules.")
845 (license license:cecill-c))))
847 (define-public bpp-popgen
848 ;; The last release was in 2014 and the recommended way to install from source
849 ;; is to clone the git repository, so we do this.
850 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
851 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
854 (version (string-append "2.2.0-1." (string-take commit 7)))
858 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
860 (file-name (string-append name "-" version "-checkout"))
863 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
864 (build-system cmake-build-system)
866 `(#:parallel-build? #f
867 #:tests? #f)) ; There are no tests.
869 `(("bpp-core" ,bpp-core)
872 (home-page "http://biopp.univ-montp2.fr")
873 (synopsis "Bio++ population genetics library")
875 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
876 analysis, phylogenetics, molecular evolution and population genetics. This
877 library provides population genetics-related modules.")
878 (license license:cecill-c))))
880 (define-public bpp-seq
881 ;; The last release was in 2014 and the recommended way to install from source
882 ;; is to clone the git repository, so we do this.
883 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
884 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
887 (version (string-append "2.2.0-1." (string-take commit 7)))
891 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
893 (file-name (string-append name "-" version "-checkout"))
896 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
897 (build-system cmake-build-system)
899 `(#:parallel-build? #f
900 ;; If out-of-source, test data is not copied into the build directory
901 ;; so the tests fail.
902 #:out-of-source? #f))
904 `(("bpp-core" ,bpp-core)
905 ("gcc" ,gcc-5))) ; Use GCC 5 as per 'bpp-core'.
906 (home-page "http://biopp.univ-montp2.fr")
907 (synopsis "Bio++ sequence library")
909 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
910 analysis, phylogenetics, molecular evolution and population genetics. This
911 library provides sequence-related modules.")
912 (license license:cecill-c))))
914 (define-public bppsuite
915 ;; The last release was in 2014 and the recommended way to install from source
916 ;; is to clone the git repository, so we do this.
917 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
918 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
921 (version (string-append "2.2.0-1." (string-take commit 7)))
925 (url "http://biopp.univ-montp2.fr/git/bppsuite")
927 (file-name (string-append name "-" version "-checkout"))
930 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
931 (build-system cmake-build-system)
933 `(#:parallel-build? #f
934 #:tests? #f)) ; There are no tests.
938 ("texinfo" ,texinfo)))
940 `(("bpp-core" ,bpp-core)
942 ("bpp-phyl" ,bpp-phyl)
943 ("bpp-phyl" ,bpp-popgen)
945 (home-page "http://biopp.univ-montp2.fr")
946 (synopsis "Bioinformatics tools written with the Bio++ libraries")
948 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
949 analysis, phylogenetics, molecular evolution and population genetics. This
950 package provides command line tools using the Bio++ library.")
951 (license license:cecill-c))))
953 (define-public blast+
960 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
961 version "/ncbi-blast-" version "+-src.tar.gz"))
964 "14n9jik6vhiwjd3m7bach4xj1pzfn0szbsbyfxybd9l9cc43b6mb"))
965 (modules '((guix build utils)))
968 ;; Remove bundled bzip2 and zlib
969 (delete-file-recursively "c++/src/util/compress/bzip2")
970 (delete-file-recursively "c++/src/util/compress/zlib")
971 (substitute* "c++/src/util/compress/Makefile.in"
972 (("bzip2 zlib api") "api"))
973 ;; Remove useless msbuild directory
974 (delete-file-recursively
975 "c++/src/build-system/project_tree_builder/msbuild")
977 (build-system gnu-build-system)
979 `(;; There are three(!) tests for this massive library, and all fail with
980 ;; "unparsable timing stats".
981 ;; ERR [127] -- [util/regexp] test_pcre.sh (unparsable timing stats)
982 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
983 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
986 #:parallel-build? #f ; not supported
988 (modify-phases %standard-phases
991 ;; $HOME needs to be set at some point during the configure phase
992 (lambda _ (setenv "HOME" "/tmp") #t))
995 (lambda _ (chdir "c++") #t))
997 'enter-dir 'fix-build-system
1000 (cond ((string=? cmd "date")
1001 ;; make call to "date" deterministic
1006 (format (current-error-port)
1007 "WARNING: Unable to find absolute path for ~s~%"
1011 ;; Rewrite hardcoded paths to various tools
1012 (substitute* (append '("src/build-system/configure.ac"
1013 "src/build-system/configure"
1014 "scripts/common/impl/if_diff.sh"
1015 "scripts/common/impl/run_with_lock.sh"
1016 "src/build-system/Makefile.configurables.real"
1017 "src/build-system/Makefile.in.top"
1018 "src/build-system/Makefile.meta.gmake=no"
1019 "src/build-system/Makefile.meta.in"
1020 "src/build-system/Makefile.meta_l"
1021 "src/build-system/Makefile.meta_p"
1022 "src/build-system/Makefile.meta_r"
1023 "src/build-system/Makefile.mk.in"
1024 "src/build-system/Makefile.requirements"
1025 "src/build-system/Makefile.rules_with_autodep.in")
1026 (find-files "scripts/common/check" "\\.sh$"))
1027 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1028 (or (which* cmd) all)))
1030 (substitute* (find-files "src/build-system" "^config.*")
1031 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1034 ;; rewrite "/var/tmp" in check script
1035 (substitute* "scripts/common/check/check_make_unix.sh"
1036 (("/var/tmp") "/tmp"))
1038 ;; do not reset PATH
1039 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1041 (("action=/bin/") "action=")
1042 (("export PATH") ":"))
1046 (lambda* (#:key inputs outputs #:allow-other-keys)
1047 (let ((out (assoc-ref outputs "out"))
1048 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1049 (include (string-append (assoc-ref outputs "include")
1050 "/include/ncbi-tools++")))
1051 ;; The 'configure' script doesn't recognize things like
1052 ;; '--enable-fast-install'.
1053 (zero? (system* "./configure.orig"
1054 (string-append "--with-build-root=" (getcwd) "/build")
1055 (string-append "--prefix=" out)
1056 (string-append "--libdir=" lib)
1057 (string-append "--includedir=" include)
1058 (string-append "--with-bz2="
1059 (assoc-ref inputs "bzip2"))
1060 (string-append "--with-z="
1061 (assoc-ref inputs "zlib"))
1062 ;; Each library is built twice by default, once
1063 ;; with "-static" in its name, and again
1066 "--with-dll"))))))))
1067 (outputs '("out" ; 19 MB
1075 (home-page "http://blast.ncbi.nlm.nih.gov")
1076 (synopsis "Basic local alignment search tool")
1078 "BLAST is a popular method of performing a DNA or protein sequence
1079 similarity search, using heuristics to produce results quickly. It also
1080 calculates an “expect value” that estimates how many matches would have
1081 occurred at a given score by chance, which can aid a user in judging how much
1082 confidence to have in an alignment.")
1083 ;; Most of the sources are in the public domain, with the following
1086 ;; * ./c++/include/util/bitset/
1087 ;; * ./c++/src/html/ncbi_menu*.js
1089 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1091 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1093 ;; * ./c++/src/corelib/teamcity_*
1094 (license (list license:public-domain
1100 (define-public bless
1106 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1110 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1111 (modules '((guix build utils)))
1114 ;; Remove bundled boost, pigz, zlib, and .git directory
1115 ;; FIXME: also remove bundled sources for murmurhash3 and
1116 ;; kmc once packaged.
1117 (delete-file-recursively "boost")
1118 (delete-file-recursively "pigz")
1119 (delete-file-recursively "google-sparsehash")
1120 (delete-file-recursively "zlib")
1121 (delete-file-recursively ".git")
1123 (build-system gnu-build-system)
1125 '(#:tests? #f ;no "check" target
1127 (list (string-append "ZLIB="
1128 (assoc-ref %build-inputs "zlib")
1130 (string-append "LDFLAGS="
1131 (string-join '("-lboost_filesystem"
1138 (modify-phases %standard-phases
1139 (add-after 'unpack 'do-not-build-bundled-pigz
1140 (lambda* (#:key inputs outputs #:allow-other-keys)
1141 (substitute* "Makefile"
1142 (("cd pigz/pigz-2.3.3; make") ""))
1144 (add-after 'unpack 'patch-paths-to-executables
1145 (lambda* (#:key inputs outputs #:allow-other-keys)
1146 (substitute* "parse_args.cpp"
1147 (("kmc_binary = .*")
1148 (string-append "kmc_binary = \""
1149 (assoc-ref outputs "out")
1151 (("pigz_binary = .*")
1152 (string-append "pigz_binary = \""
1153 (assoc-ref inputs "pigz")
1157 (lambda* (#:key outputs #:allow-other-keys)
1158 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1159 (for-each (lambda (file)
1160 (install-file file bin))
1161 '("bless" "kmc/bin/kmc"))
1163 (delete 'configure))))
1167 `(("openmpi" ,openmpi)
1169 ("sparsehash" ,sparsehash)
1172 (supported-systems '("x86_64-linux"))
1173 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
1174 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1176 "@dfn{Bloom-filter-based error correction solution for high-throughput
1177 sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1178 correction tool for genomic reads produced by @dfn{Next-generation
1179 sequencing} (NGS). BLESS produces accurate correction results with much less
1180 memory compared with previous solutions and is also able to tolerate a higher
1181 false-positive rate. BLESS can extend reads like DNA assemblers to correct
1182 errors at the end of reads.")
1183 (license license:gpl3+)))
1185 (define-public bowtie
1191 (uri (string-append "https://github.com/BenLangmead/bowtie2/archive/v"
1193 (file-name (string-append name "-" version ".tar.gz"))
1196 "1vp5db8i7is57iwjybcdg18f5ivyzlj5g1ix1nlvxainzivhz55g"))
1197 (modules '((guix build utils)))
1199 '(substitute* "Makefile"
1200 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1201 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1202 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
1203 (build-system gnu-build-system)
1204 (inputs `(("perl" ,perl)
1205 ("perl-clone" ,perl-clone)
1206 ("perl-test-deep" ,perl-test-deep)
1207 ("perl-test-simple" ,perl-test-simple)
1208 ("python" ,python-2)
1214 (string-append "prefix=" (assoc-ref %outputs "out")))
1220 (lambda* (#:key outputs #:allow-other-keys)
1222 "scripts/test/simple_tests.pl"
1223 "--bowtie2=./bowtie2"
1224 "--bowtie2-build=./bowtie2-build"))
1225 %standard-phases))))
1226 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1227 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1229 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1230 reads to long reference sequences. It is particularly good at aligning reads
1231 of about 50 up to 100s or 1,000s of characters, and particularly good at
1232 aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1233 genome with an FM Index to keep its memory footprint small: for the human
1234 genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1235 gapped, local, and paired-end alignment modes.")
1236 (supported-systems '("x86_64-linux"))
1237 (license license:gpl3+)))
1239 (define-public tophat
1246 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1250 "168zlzykq622zbgkh90a90f1bdgsxkscq2zxzbj8brq80hbjpyp7"))
1251 (patches (search-patches "tophat-build-with-later-seqan.patch"))
1252 (modules '((guix build utils)))
1255 ;; Remove bundled SeqAn and samtools
1256 (delete-file-recursively "src/SeqAn-1.3")
1257 (delete-file-recursively "src/samtools-0.1.18")
1259 (build-system gnu-build-system)
1261 '(#:parallel-build? #f ; not supported
1263 (modify-phases %standard-phases
1264 (add-after 'unpack 'use-system-samtools
1265 (lambda* (#:key inputs #:allow-other-keys)
1266 (substitute* "src/Makefile.in"
1267 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1268 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1269 (("SAMPROG = samtools_0\\.1\\.18") "")
1270 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1271 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1272 (substitute* '("src/common.cpp"
1274 (("samtools_0.1.18") (which "samtools")))
1275 (substitute* '("src/common.h"
1276 "src/bam2fastx.cpp")
1277 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1278 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1279 (substitute* '("src/bwt_map.h"
1281 "src/align_status.h")
1282 (("#include <bam.h>") "#include <samtools/bam.h>")
1283 (("#include <sam.h>") "#include <samtools/sam.h>"))
1288 ("samtools" ,samtools-0.1)
1289 ("ncurses" ,ncurses)
1290 ("python" ,python-2)
1294 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
1295 (synopsis "Spliced read mapper for RNA-Seq data")
1297 "TopHat is a fast splice junction mapper for nucleotide sequence
1298 reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1299 mammalian-sized genomes using the ultra high-throughput short read
1300 aligner Bowtie, and then analyzes the mapping results to identify
1301 splice junctions between exons.")
1302 ;; TopHat is released under the Boost Software License, Version 1.0
1303 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1304 (license license:boost1.0)))
1312 (uri (string-append "mirror://sourceforge/bio-bwa/bwa-"
1313 version ".tar.bz2"))
1316 "1330dpqncv0px3pbhjzz1gwgg39kkcv2r9qp2xs0sixf8z8wl7bh"))))
1317 (build-system gnu-build-system)
1319 '(#:tests? #f ;no "check" target
1323 (lambda* (#:key outputs #:allow-other-keys)
1324 (let ((bin (string-append
1325 (assoc-ref outputs "out") "/bin"))
1327 (assoc-ref outputs "out") "/share/doc/bwa"))
1329 (assoc-ref outputs "out") "/share/man/man1")))
1330 (install-file "bwa" bin)
1331 (install-file "README.md" doc)
1332 (install-file "bwa.1" man)))
1333 ;; no "configure" script
1334 (alist-delete 'configure %standard-phases))))
1335 (inputs `(("zlib" ,zlib)))
1336 ;; Non-portable SSE instructions are used so building fails on platforms
1337 ;; other than x86_64.
1338 (supported-systems '("x86_64-linux"))
1339 (home-page "http://bio-bwa.sourceforge.net/")
1340 (synopsis "Burrows-Wheeler sequence aligner")
1342 "BWA is a software package for mapping low-divergent sequences against a
1343 large reference genome, such as the human genome. It consists of three
1344 algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1345 designed for Illumina sequence reads up to 100bp, while the rest two for
1346 longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1347 features such as long-read support and split alignment, but BWA-MEM, which is
1348 the latest, is generally recommended for high-quality queries as it is faster
1349 and more accurate. BWA-MEM also has better performance than BWA-backtrack for
1350 70-100bp Illumina reads.")
1351 (license license:gpl3+)))
1353 (define-public bwa-pssm
1354 (package (inherit bwa)
1359 (uri (string-append "https://github.com/pkerpedjiev/bwa-pssm/"
1360 "archive/" version ".tar.gz"))
1361 (file-name (string-append name "-" version ".tar.gz"))
1364 "02p7mpbs4mlxmn84g2x4ghak638vbj4lqix2ipx5g84pz9bhdavg"))))
1365 (build-system gnu-build-system)
1370 (home-page "http://bwa-pssm.binf.ku.dk/")
1371 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1373 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1374 the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1375 existing aligners it is fast and sensitive. Unlike most other aligners,
1376 however, it is also adaptible in the sense that one can direct the alignment
1377 based on known biases within the data set. It is coded as a modification of
1378 the original BWA alignment program and shares the genome index structure as
1379 well as many of the command line options.")
1380 (license license:gpl3+)))
1382 (define-public python2-bx-python
1384 (name "python2-bx-python")
1389 "https://pypi.python.org/packages/source/b/bx-python/bx-python-"
1393 "0ld49idhc5zjdvbhvjq1a2qmpjj7h5v58rqr25dzmfq7g34b50xh"))
1394 (modules '((guix build utils)))
1396 '(substitute* "setup.py"
1397 ;; remove dependency on outdated "distribute" module
1398 (("^from distribute_setup import use_setuptools") "")
1399 (("^use_setuptools\\(\\)") "")))))
1400 (build-system python-build-system)
1402 `(#:tests? #f ;tests fail because test data are not included
1403 #:python ,python-2))
1405 `(("python-numpy" ,python2-numpy)
1408 `(("python-nose" ,python2-nose)))
1409 (home-page "http://bitbucket.org/james_taylor/bx-python/")
1410 (synopsis "Tools for manipulating biological data")
1412 "bx-python provides tools for manipulating biological data, particularly
1413 multiple sequence alignments.")
1414 (license license:expat)))
1416 (define-public python-pysam
1418 (name "python-pysam")
1422 ;; Test data is missing on PyPi.
1424 "https://github.com/pysam-developers/pysam/archive/v"
1426 (file-name (string-append name "-" version ".tar.gz"))
1429 "1mmvn91agr238kwz7226xq0i7k84lg2nxywn9712mzj7gvgqhfy8"))
1430 (modules '((guix build utils)))
1432 ;; Drop bundled htslib. TODO: Also remove samtools and bcftools.
1433 '(delete-file-recursively "htslib"))))
1434 (build-system python-build-system)
1436 `(#:modules ((ice-9 ftw)
1438 (guix build python-build-system)
1441 (modify-phases %standard-phases
1442 (add-before 'build 'set-flags
1443 (lambda* (#:key inputs #:allow-other-keys)
1444 (setenv "HTSLIB_MODE" "external")
1445 (setenv "HTSLIB_LIBRARY_DIR"
1446 (string-append (assoc-ref inputs "htslib") "/lib"))
1447 (setenv "HTSLIB_INCLUDE_DIR"
1448 (string-append (assoc-ref inputs "htslib") "/include"))
1449 (setenv "LDFLAGS" "-lncurses")
1450 (setenv "CFLAGS" "-D_CURSES_LIB=1")
1453 (lambda* (#:key inputs outputs #:allow-other-keys)
1454 ;; Add first subdirectory of "build" directory to PYTHONPATH.
1455 (setenv "PYTHONPATH"
1457 (getenv "PYTHONPATH")
1458 ":" (getcwd) "/build/"
1459 (car (scandir "build"
1460 (negate (cut string-prefix? "." <>))))))
1461 ;; Step out of source dir so python does not import from CWD.
1462 (with-directory-excursion "tests"
1463 (setenv "HOME" "/tmp")
1464 (and (zero? (system* "make" "-C" "pysam_data"))
1465 (zero? (system* "make" "-C" "cbcf_data"))
1466 ;; Running nosetests without explicitly asking for a
1467 ;; single process leads to a crash. Running with multiple
1468 ;; processes fails because the tests are not designed to
1471 ;; FIXME: tests keep timing out on some systems.
1472 ;; (zero? (system* "nosetests" "-v"
1473 ;; "--processes" "1"))
1476 `(("htslib" ,htslib))) ; Included from installed header files.
1478 `(("ncurses" ,ncurses)
1481 `(("python-cython" ,python-cython)
1482 ;; Dependencies below are are for tests only.
1483 ("samtools" ,samtools)
1484 ("bcftools" ,bcftools)
1485 ("python-nose" ,python-nose)))
1486 (home-page "https://github.com/pysam-developers/pysam")
1487 (synopsis "Python bindings to the SAMtools C API")
1489 "Pysam is a Python module for reading and manipulating files in the
1490 SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1491 also includes an interface for tabix.")
1492 (license license:expat)))
1494 (define-public python2-pysam
1495 (package-with-python2 python-pysam))
1497 (define-public python-twobitreader
1499 (name "python-twobitreader")
1503 (uri (pypi-uri "twobitreader" version))
1506 "1q8wnj2kga9nz1lwc4w7qv52smfm536hp6mc8w6s53lhyj0mpi22"))))
1507 (build-system python-build-system)
1509 '(;; Tests are not distributed in the PyPi release.
1510 ;; TODO Try building from the Git repo or asking the upstream maintainer
1511 ;; to distribute the tests on PyPi.
1514 `(("python-sphinx" ,python-sphinx)))
1515 (home-page "https://github.com/benjschiller/twobitreader")
1516 (synopsis "Python library for reading .2bit files")
1518 "twobitreader is a Python library for reading .2bit files as used by the
1519 UCSC genome browser.")
1520 (license license:artistic2.0)))
1522 (define-public python2-twobitreader
1523 (package-with-python2 python-twobitreader))
1525 (define-public python-plastid
1527 (name "python-plastid")
1531 (uri (pypi-uri "plastid" version))
1534 "1sqkz5d3b9kf688mp7k771c87ins42j7j0whmkb49cb3fsg8s8lj"))))
1535 (build-system python-build-system)
1537 ;; Some test files are not included.
1540 `(("python-numpy" ,python-numpy)
1541 ("python-scipy" ,python-scipy)
1542 ("python-pandas" ,python-pandas)
1543 ("python-pysam" ,python-pysam)
1544 ("python-matplotlib" ,python-matplotlib)
1545 ("python-biopython" ,python-biopython)
1546 ("python-twobitreader" ,python-twobitreader)
1547 ("python-termcolor" ,python-termcolor)))
1549 `(("python-cython" ,python-cython)
1550 ("python-nose" ,python-nose)))
1551 (home-page "https://github.com/joshuagryphon/plastid")
1552 (synopsis "Python library for genomic analysis")
1554 "plastid is a Python library for genomic analysis – in particular,
1555 high-throughput sequencing data – with an emphasis on simplicity.")
1556 (license license:bsd-3)))
1558 (define-public python2-plastid
1559 (package-with-python2 python-plastid))
1561 (define-public cd-hit
1567 (uri (string-append "https://github.com/weizhongli/cdhit"
1568 "/releases/download/V" version
1569 "/cd-hit-v" version "-2016-0711.tar.gz"))
1572 "1w8hd4fszgg29nqiz569fldwy012la77nljcmlhglgicws56z54p"))))
1573 (build-system gnu-build-system)
1575 `(#:tests? #f ; there are no tests
1577 ;; Executables are copied directly to the PREFIX.
1578 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin"))
1580 (modify-phases %standard-phases
1581 ;; No "configure" script
1583 ;; Remove sources of non-determinism
1584 (add-after 'unpack 'be-timeless
1586 (substitute* "cdhit-utility.c++"
1587 ((" \\(built on \" __DATE__ \"\\)") ""))
1588 (substitute* "cdhit-common.c++"
1589 (("__DATE__") "\"0\"")
1590 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
1592 ;; The "install" target does not create the target directory
1593 (add-before 'install 'create-target-dir
1594 (lambda* (#:key outputs #:allow-other-keys)
1595 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
1599 (home-page "http://weizhongli-lab.org/cd-hit/")
1600 (synopsis "Cluster and compare protein or nucleotide sequences")
1602 "CD-HIT is a program for clustering and comparing protein or nucleotide
1603 sequences. CD-HIT is designed to be fast and handle extremely large
1605 ;; The manual says: "It can be copied under the GNU General Public License
1606 ;; version 2 (GPLv2)."
1607 (license license:gpl2)))
1609 (define-public clipper
1616 "https://github.com/YeoLab/clipper/archive/"
1618 (file-name (string-append name "-" version ".tar.gz"))
1621 "0pflmsvhbf8izbgwhbhj1i7349sw1f55qpqj8ljmapp16hb0p0qi"))
1622 (modules '((guix build utils)))
1625 ;; remove unnecessary setup dependency
1626 (substitute* "setup.py"
1627 (("setup_requires = .*") ""))
1628 (for-each delete-file
1629 '("clipper/src/peaks.so"
1630 "clipper/src/readsToWiggle.so"))
1631 (delete-file-recursively "dist/")
1633 (build-system python-build-system)
1634 (arguments `(#:python ,python-2)) ; only Python 2 is supported
1637 ("python-pybedtools" ,python2-pybedtools)
1638 ("python-cython" ,python2-cython)
1639 ("python-scikit-learn" ,python2-scikit-learn)
1640 ("python-matplotlib" ,python2-matplotlib)
1641 ("python-pandas" ,python2-pandas)
1642 ("python-pysam" ,python2-pysam)
1643 ("python-numpy" ,python2-numpy)
1644 ("python-scipy" ,python2-scipy)))
1646 `(("python-mock" ,python2-mock) ; for tests
1647 ("python-nose" ,python2-nose) ; for tests
1648 ("python-pytz" ,python2-pytz))) ; for tests
1649 (home-page "https://github.com/YeoLab/clipper")
1650 (synopsis "CLIP peak enrichment recognition")
1652 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
1653 (license license:gpl2)))
1655 (define-public codingquarry
1657 (name "codingquarry")
1662 "mirror://sourceforge/codingquarry/CodingQuarry_v"
1666 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
1667 (build-system gnu-build-system)
1669 '(#:tests? #f ; no "check" target
1671 (modify-phases %standard-phases
1674 (lambda* (#:key outputs #:allow-other-keys)
1675 (let* ((out (assoc-ref outputs "out"))
1676 (bin (string-append out "/bin"))
1677 (doc (string-append out "/share/doc/codingquarry")))
1678 (install-file "INSTRUCTIONS.pdf" doc)
1679 (copy-recursively "QuarryFiles"
1680 (string-append out "/QuarryFiles"))
1681 (install-file "CodingQuarry" bin)
1682 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin)))))))
1683 (inputs `(("openmpi" ,openmpi)))
1684 (native-search-paths
1685 (list (search-path-specification
1686 (variable "QUARRY_PATH")
1687 (files '("QuarryFiles")))))
1688 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
1689 (synopsis "Fungal gene predictor")
1690 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
1691 gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
1692 (home-page "https://sourceforge.net/projects/codingquarry/")
1693 (license license:gpl3+)))
1695 (define-public couger
1702 "http://couger.oit.duke.edu/static/assets/COUGER"
1706 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
1707 (build-system gnu-build-system)
1711 (modify-phases %standard-phases
1716 (lambda* (#:key outputs #:allow-other-keys)
1717 (let* ((out (assoc-ref outputs "out"))
1718 (bin (string-append out "/bin")))
1719 (copy-recursively "src" (string-append out "/src"))
1721 ;; Add "src" directory to module lookup path.
1722 (substitute* "couger"
1724 (string-append "import sys\nsys.path.append(\""
1725 out "\")\nfrom argparse")))
1726 (install-file "couger" bin))
1729 'install 'wrap-program
1730 (lambda* (#:key inputs outputs #:allow-other-keys)
1731 ;; Make sure 'couger' runs with the correct PYTHONPATH.
1732 (let* ((out (assoc-ref outputs "out"))
1733 (path (getenv "PYTHONPATH")))
1734 (wrap-program (string-append out "/bin/couger")
1735 `("PYTHONPATH" ":" prefix (,path))))
1738 `(("python" ,python-2)
1739 ("python2-pillow" ,python2-pillow)
1740 ("python2-numpy" ,python2-numpy)
1741 ("python2-scipy" ,python2-scipy)
1742 ("python2-matplotlib" ,python2-matplotlib)))
1744 `(("r-minimal" ,r-minimal)
1746 ("randomjungle" ,randomjungle)))
1748 `(("unzip" ,unzip)))
1749 (home-page "http://couger.oit.duke.edu")
1750 (synopsis "Identify co-factors in sets of genomic regions")
1752 "COUGER can be applied to any two sets of genomic regions bound by
1753 paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
1754 putative co-factors that provide specificity to each TF. The framework
1755 determines the genomic targets uniquely-bound by each TF, and identifies a
1756 small set of co-factors that best explain the in vivo binding differences
1757 between the two TFs.
1759 COUGER uses classification algorithms (support vector machines and random
1760 forests) with features that reflect the DNA binding specificities of putative
1761 co-factors. The features are generated either from high-throughput TF-DNA
1762 binding data (from protein binding microarray experiments), or from large
1763 collections of DNA motifs.")
1764 (license license:gpl3+)))
1766 (define-public clustal-omega
1768 (name "clustal-omega")
1773 "http://www.clustal.org/omega/clustal-omega-"
1777 "02ibkx0m0iwz8nscg998bh41gg251y56cgh86bvyrii5m8kjgwqf"))))
1778 (build-system gnu-build-system)
1780 `(("argtable" ,argtable)))
1781 (home-page "http://www.clustal.org/omega/")
1782 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
1784 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
1785 program for protein and DNA/RNA. It produces high quality MSAs and is capable
1786 of handling data-sets of hundreds of thousands of sequences in reasonable
1788 (license license:gpl2+)))
1790 (define-public crossmap
1796 (uri (string-append "mirror://sourceforge/crossmap/CrossMap-"
1800 "07y179f63d7qnzdvkqcziwk9bs3k4zhp81q392fp1hwszjdvy22f"))
1801 ;; This patch has been sent upstream already and is available
1802 ;; for download from Sourceforge, but it has not been merged.
1803 (patches (search-patches "crossmap-allow-system-pysam.patch"))
1804 (modules '((guix build utils)))
1805 ;; remove bundled copy of pysam
1807 '(delete-file-recursively "lib/pysam"))))
1808 (build-system python-build-system)
1810 `(#:python ,python-2
1814 (lambda _ (setenv "CROSSMAP_USE_SYSTEM_PYSAM" "1"))
1817 `(("python-numpy" ,python2-numpy)
1818 ("python-pysam" ,python2-pysam)
1821 `(("python-cython" ,python2-cython)
1822 ("python-nose" ,python2-nose)))
1823 (home-page "http://crossmap.sourceforge.net/")
1824 (synopsis "Convert genome coordinates between assemblies")
1826 "CrossMap is a program for conversion of genome coordinates or annotation
1827 files between different genome assemblies. It supports most commonly used
1828 file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
1829 (license license:gpl2+)))
1831 (define-public cufflinks
1837 (uri (string-append "http://cole-trapnell-lab.github.io/"
1838 "cufflinks/assets/downloads/cufflinks-"
1842 "1bnm10p8m7zq4qiipjhjqb24csiqdm1pwc8c795z253r2xk6ncg8"))))
1843 (build-system gnu-build-system)
1847 ;; The includes for "eigen" are located in a subdirectory.
1848 (string-append "EIGEN_CPPFLAGS="
1849 "-I" (assoc-ref %build-inputs "eigen")
1851 ;; Cufflinks must be linked with various boost libraries.
1852 (string-append "LDFLAGS="
1853 (string-join '("-lboost_system"
1854 "-lboost_serialization"
1855 "-lboost_thread"))))
1857 (modify-phases %standard-phases
1858 (add-after 'unpack 'fix-search-for-bam
1860 (substitute* '("ax_bam.m4"
1863 (("<bam/sam\\.h>") "<samtools/sam.h>")
1864 (("<bam/bam\\.h>") "<samtools/bam.h>")
1865 (("<bam/version\\.hpp>") "<samtools/version.h>"))
1868 (list (string-append "--with-bam="
1869 (assoc-ref %build-inputs "samtools")))))
1872 ("samtools" ,samtools-0.1)
1875 ("python" ,python-2)
1877 (home-page "http://cole-trapnell-lab.github.io/cufflinks/")
1878 (synopsis "Transcriptome assembly and RNA-Seq expression analysis")
1880 "Cufflinks assembles RNA transcripts, estimates their abundances,
1881 and tests for differential expression and regulation in RNA-Seq
1882 samples. It accepts aligned RNA-Seq reads and assembles the
1883 alignments into a parsimonious set of transcripts. Cufflinks then
1884 estimates the relative abundances of these transcripts based on how
1885 many reads support each one, taking into account biases in library
1886 preparation protocols.")
1887 (license license:boost1.0)))
1889 (define-public cutadapt
1896 "https://github.com/marcelm/cutadapt/archive/v"
1898 (file-name (string-append name "-" version ".tar.gz"))
1901 "19smhh6444ikn4jlmyhvffw4m5aw7yg07rqsk7arg8dkwyga1i4v"))))
1902 (build-system python-build-system)
1905 (modify-phases %standard-phases
1906 ;; The tests must be run after installation.
1908 (add-after 'install 'check
1909 (lambda* (#:key inputs outputs #:allow-other-keys)
1910 (setenv "PYTHONPATH"
1912 (getenv "PYTHONPATH")
1913 ":" (assoc-ref outputs "out")
1915 (string-take (string-take-right
1916 (assoc-ref inputs "python") 5) 3)
1918 (zero? (system* "nosetests" "-P" "tests")))))))
1920 `(("python-xopen" ,python-xopen)))
1922 `(("python-cython" ,python-cython)
1923 ("python-nose" ,python-nose)))
1924 (home-page "https://cutadapt.readthedocs.io/en/stable/")
1925 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
1927 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
1928 other types of unwanted sequence from high-throughput sequencing reads.")
1929 (license license:expat)))
1931 (define-public libbigwig
1937 (uri (string-append "https://github.com/dpryan79/libBigWig/"
1938 "archive/" version ".tar.gz"))
1939 (file-name (string-append name "-" version ".tar.gz"))
1942 "098rjh35pi4a9q83n8wiwvyzykjqj6l8q189p1xgfw4ghywdlvw1"))))
1943 (build-system gnu-build-system)
1945 `(#:test-target "test"
1948 (string-append "prefix=" (assoc-ref %outputs "out")))
1950 (modify-phases %standard-phases
1952 (add-before 'check 'disable-curl-test
1954 (substitute* "Makefile"
1955 (("./test/testRemote.*") ""))
1957 ;; This has been fixed with the upstream commit 4ff6959cd8a0, but
1958 ;; there has not yet been a release containing this change.
1959 (add-before 'install 'create-target-dirs
1960 (lambda* (#:key outputs #:allow-other-keys)
1961 (let ((out (assoc-ref outputs "out")))
1962 (mkdir-p (string-append out "/lib"))
1963 (mkdir-p (string-append out "/include"))
1969 `(("doxygen" ,doxygen)))
1970 (home-page "https://github.com/dpryan79/libBigWig")
1971 (synopsis "C library for handling bigWig files")
1973 "This package provides a C library for parsing local and remote BigWig
1975 (license license:expat)))
1977 (define-public python-pybigwig
1979 (name "python-pybigwig")
1983 (uri (pypi-uri "pyBigWig" version))
1986 "0yrpdxg3y0sny25x4w22lv1k47jzccqjmg7j4bp0hywklvp0hg7d"))
1987 (modules '((guix build utils)))
1990 ;; Delete bundled libBigWig sources
1991 (delete-file-recursively "libBigWig")))))
1992 (build-system python-build-system)
1995 (modify-phases %standard-phases
1996 (add-after 'unpack 'link-with-libBigWig
1997 (lambda* (#:key inputs #:allow-other-keys)
1998 (substitute* "setup.py"
1999 (("libs=\\[") "libs=[\"BigWig\", "))
2002 `(("libbigwig" ,libbigwig)
2005 (home-page "https://github.com/dpryan79/pyBigWig")
2006 (synopsis "Access bigWig files in Python using libBigWig")
2008 "This package provides Python bindings to the libBigWig library for
2009 accessing bigWig files.")
2010 (license license:expat)))
2012 (define-public python2-pybigwig
2013 (package-with-python2 python-pybigwig))
2015 (define-public python-dendropy
2017 (name "python-dendropy")
2022 (uri (pypi-uri "DendroPy" version))
2025 "15c7s3d5gf19ljsxvq5advaa752wfi7pwrdjyhzmg85hccyvp47p"))
2026 (patches (search-patches "python-dendropy-fix-tests.patch"))))
2027 (build-system python-build-system)
2028 (home-page "http://packages.python.org/DendroPy/")
2029 (synopsis "Library for phylogenetics and phylogenetic computing")
2031 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
2032 writing, simulation, processing and manipulation of phylogenetic
2033 trees (phylogenies) and characters.")
2034 (license license:bsd-3)
2035 (properties `((python2-variant . ,(delay python2-dendropy))))))
2037 (define-public python2-dendropy
2038 (let ((base (package-with-python2 (strip-python2-variant python-dendropy))))
2042 `(#:python ,python-2
2044 (modify-phases %standard-phases
2046 ;; There is currently a test failure that only happens on some
2047 ;; systems, and only using "setup.py test"
2048 (lambda _ (zero? (system* "nosetests")))))))
2049 (native-inputs `(("python2-nose" ,python2-nose)
2050 ,@(package-native-inputs base))))))
2053 (define-public deeptools
2059 (uri (string-append "https://github.com/fidelram/deepTools/"
2060 "archive/" version ".tar.gz"))
2061 (file-name (string-append name "-" version ".tar.gz"))
2064 "1nmfin0zjdby3vay3r4flvz94dr6qjhj41ax4yz3vx13j6wz8izd"))))
2065 (build-system python-build-system)
2067 `(#:python ,python-2))
2069 `(("python-scipy" ,python2-scipy)
2070 ("python-numpy" ,python2-numpy)
2071 ("python-numpydoc" ,python2-numpydoc)
2072 ("python-matplotlib" ,python2-matplotlib)
2073 ("python-bx-python" ,python2-bx-python)
2074 ("python-pysam" ,python2-pysam)
2075 ("python-pybigwig" ,python2-pybigwig)))
2077 `(("python-mock" ,python2-mock) ;for tests
2078 ("python-nose" ,python2-nose) ;for tests
2079 ("python-pytz" ,python2-pytz))) ;for tests
2080 (home-page "https://github.com/fidelram/deepTools")
2081 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2083 "DeepTools addresses the challenge of handling the large amounts of data
2084 that are now routinely generated from DNA sequencing centers. To do so,
2085 deepTools contains useful modules to process the mapped reads data to create
2086 coverage files in standard bedGraph and bigWig file formats. By doing so,
2087 deepTools allows the creation of normalized coverage files or the comparison
2088 between two files (for example, treatment and control). Finally, using such
2089 normalized and standardized files, multiple visualizations can be created to
2090 identify enrichments with functional annotations of the genome.")
2091 (license license:gpl3+)))
2093 (define-public diamond
2100 "https://github.com/bbuchfink/diamond/archive/v"
2102 (file-name (string-append name "-" version ".tar.gz"))
2105 "1y8a10b695pvgn7kk2s87jdwbdf7iszpnr6139pw8ina1ajs4w8y"))))
2106 (build-system cmake-build-system)
2108 '(#:tests? #f ; no "check" target
2110 (modify-phases %standard-phases
2111 (add-after 'unpack 'remove-native-compilation
2113 (substitute* "CMakeLists.txt" (("-march=native") ""))
2117 (home-page "https://github.com/bbuchfink/diamond")
2118 (synopsis "Accelerated BLAST compatible local sequence aligner")
2120 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2121 translated DNA query sequences against a protein reference database (BLASTP
2122 and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2123 reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2124 data and settings.")
2125 (license license:agpl3+)))
2127 (define-public discrover
2134 (uri (string-append "https://github.com/maaskola/discrover/archive/"
2136 (file-name (string-append name "-" version ".tar.gz"))
2139 "0rah9ja4m0rl5mldd6vag9rwrivw1zrqxssfq8qx64m7961fp68k"))))
2140 (build-system cmake-build-system)
2142 `(#:tests? #f ; there are no tests
2144 (modify-phases %standard-phases
2145 (add-after 'unpack 'add-missing-includes
2147 (substitute* "src/executioninformation.hpp"
2148 (("#define EXECUTIONINFORMATION_HPP" line)
2149 (string-append line "\n#include <random>")))
2150 (substitute* "src/plasma/fasta.hpp"
2151 (("#define FASTA_HPP" line)
2152 (string-append line "\n#include <random>")))
2158 `(("texlive" ,texlive)
2159 ("imagemagick" ,imagemagick)))
2160 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2161 (synopsis "Discover discriminative nucleotide sequence motifs")
2162 (description "Discrover is a motif discovery method to find binding sites
2163 of nucleic acid binding proteins.")
2164 (license license:gpl3+)))
2166 (define-public eigensoft
2167 (let ((revision "1")
2168 (commit "b14d1e202e21e532536ff8004f0419cd5e259dc7"))
2171 (version (string-append "6.1.2-"
2173 (string-take commit 9)))
2178 (url "https://github.com/DReichLab/EIG.git")
2180 (file-name (string-append "eigensoft-" commit "-checkout"))
2183 "0f5m6k2j5c16xc3xbywcs989xyc26ncy1zfzp9j9n55n9r4xcaiq"))
2184 (modules '((guix build utils)))
2185 ;; Remove pre-built binaries.
2187 (delete-file-recursively "bin")
2190 (build-system gnu-build-system)
2192 `(#:tests? #f ; There are no tests.
2193 #:make-flags '("CC=gcc")
2195 (modify-phases %standard-phases
2196 ;; There is no configure phase, but the Makefile is in a
2201 ;; The link flags are incomplete.
2202 (substitute* "Makefile"
2203 (("-lgsl") "-lgsl -lm -llapack -llapacke -lpthread"))
2205 ;; The provided install target only copies executables to
2206 ;; the "bin" directory in the build root.
2207 (add-after 'install 'actually-install
2208 (lambda* (#:key outputs #:allow-other-keys)
2209 (let* ((out (assoc-ref outputs "out"))
2210 (bin (string-append out "/bin")))
2211 (for-each (lambda (file)
2212 (install-file file bin))
2213 (find-files "../bin" ".*"))
2218 ("openblas" ,openblas)
2220 ("gfortran" ,gfortran "lib")))
2221 (home-page "https://github.com/DReichLab/EIG")
2222 (synopsis "Tools for population genetics")
2223 (description "The EIGENSOFT package provides tools for population
2224 genetics and stratification correction. EIGENSOFT implements methods commonly
2225 used in population genetics analyses such as PCA, computation of Tracy-Widom
2226 statistics, and finding related individuals in structured populations. It
2227 comes with a built-in plotting script and supports multiple file formats and
2228 quantitative phenotypes.")
2229 ;; The license of the eigensoft tools is Expat, but since it's
2230 ;; linking with the GNU Scientific Library (GSL) the effective
2231 ;; license is the GPL.
2232 (license license:gpl3+))))
2234 (define-public edirect
2240 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/"
2241 "versions/2016-05-03/edirect.tar.gz"))
2244 "15zsprak5yh8c1yrz4r1knmb5s8qcmdid4xdhkh3lqcv64l60hli"))))
2245 (build-system perl-build-system)
2247 `(#:tests? #f ;no "check" target
2249 (modify-phases %standard-phases
2253 (lambda* (#:key outputs #:allow-other-keys)
2254 (let ((target (string-append (assoc-ref outputs "out")
2257 (install-file "edirect.pl" target)
2260 'install 'wrap-program
2261 (lambda* (#:key inputs outputs #:allow-other-keys)
2262 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2263 (let* ((out (assoc-ref outputs "out"))
2264 (path (getenv "PERL5LIB")))
2265 (wrap-program (string-append out "/bin/edirect.pl")
2266 `("PERL5LIB" ":" prefix (,path)))))))))
2268 `(("perl-html-parser" ,perl-html-parser)
2269 ("perl-encode-locale" ,perl-encode-locale)
2270 ("perl-file-listing" ,perl-file-listing)
2271 ("perl-html-tagset" ,perl-html-tagset)
2272 ("perl-html-tree" ,perl-html-tree)
2273 ("perl-http-cookies" ,perl-http-cookies)
2274 ("perl-http-date" ,perl-http-date)
2275 ("perl-http-message" ,perl-http-message)
2276 ("perl-http-negotiate" ,perl-http-negotiate)
2277 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2278 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2279 ("perl-net-http" ,perl-net-http)
2280 ("perl-uri" ,perl-uri)
2281 ("perl-www-robotrules" ,perl-www-robotrules)
2283 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
2284 (synopsis "Tools for accessing the NCBI's set of databases")
2286 "Entrez Direct (EDirect) is a method for accessing the National Center
2287 for Biotechnology Information's (NCBI) set of interconnected
2288 databases (publication, sequence, structure, gene, variation, expression,
2289 etc.) from a terminal. Functions take search terms from command-line
2290 arguments. Individual operations are combined to build multi-step queries.
2291 Record retrieval and formatting normally complete the process.
2293 EDirect also provides an argument-driven function that simplifies the
2294 extraction of data from document summaries or other results that are returned
2295 in structured XML format. This can eliminate the need for writing custom
2296 software to answer ad hoc questions.")
2297 (license license:public-domain)))
2299 (define-public exonerate
2308 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2309 "exonerate-" version ".tar.gz"))
2312 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2313 (build-system gnu-build-system)
2315 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2317 `(("pkg-config" ,pkg-config)))
2321 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2322 (synopsis "Generic tool for biological sequence alignment")
2324 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2325 the alignment of sequences using a many alignment models, either exhaustive
2326 dynamic programming or a variety of heuristics.")
2327 (license license:gpl3)))
2329 (define-public express
2337 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2338 version "/express-" version "-src.tgz"))
2341 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2342 (build-system cmake-build-system)
2344 `(#:tests? #f ;no "check" target
2347 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2348 (lambda* (#:key inputs #:allow-other-keys)
2349 (substitute* "CMakeLists.txt"
2350 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2351 "set(Boost_USE_STATIC_LIBS OFF)")
2352 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2353 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2354 (substitute* "src/CMakeLists.txt"
2355 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
2356 (string-append (assoc-ref inputs "bamtools") "/lib/bamtools")))
2361 ("bamtools" ,bamtools)
2362 ("protobuf" ,protobuf)
2364 (home-page "http://bio.math.berkeley.edu/eXpress")
2365 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2367 "eXpress is a streaming tool for quantifying the abundances of a set of
2368 target sequences from sampled subsequences. Example applications include
2369 transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2370 analysis (from RNA-Seq), transcription factor binding quantification in
2371 ChIP-Seq, and analysis of metagenomic data.")
2372 (license license:artistic2.0)))
2374 (define-public express-beta-diversity
2376 (name "express-beta-diversity")
2382 "https://github.com/dparks1134/ExpressBetaDiversity/archive/v"
2384 (file-name (string-append name "-" version ".tar.gz"))
2387 "1djvdlmqvjf6h0zq7w36y8cl5cli6rgj86x65znl48agnwmzxfxr"))))
2388 (build-system gnu-build-system)
2391 (modify-phases %standard-phases
2393 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2395 (lambda _ (zero? (system* "../bin/ExpressBetaDiversity"
2397 (add-after 'check 'exit-source (lambda _ (chdir "..") #t))
2399 (lambda* (#:key outputs #:allow-other-keys)
2400 (let ((bin (string-append (assoc-ref outputs "out")
2403 (install-file "scripts/convertToEBD.py" bin)
2404 (install-file "bin/ExpressBetaDiversity" bin)
2407 `(("python" ,python-2)))
2408 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2409 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2411 "Express Beta Diversity (EBD) calculates ecological beta diversity
2412 (dissimilarity) measures between biological communities. EBD implements a
2413 variety of diversity measures including those that make use of phylogenetic
2414 similarity of community members.")
2415 (license license:gpl3+)))
2417 (define-public fasttree
2424 "http://www.microbesonline.org/fasttree/FastTree-"
2428 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
2429 (build-system gnu-build-system)
2431 `(#:tests? #f ; no "check" target
2433 (modify-phases %standard-phases
2437 (lambda* (#:key source #:allow-other-keys)
2438 (and (zero? (system* "gcc"
2440 "-finline-functions"
2447 (zero? (system* "gcc"
2451 "-finline-functions"
2459 (lambda* (#:key outputs #:allow-other-keys)
2460 (let ((bin (string-append (assoc-ref outputs "out")
2463 (install-file "FastTree" bin)
2464 (install-file "FastTreeMP" bin)
2466 (home-page "http://www.microbesonline.org/fasttree")
2467 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2469 "FastTree can handle alignments with up to a million of sequences in a
2470 reasonable amount of time and memory. For large alignments, FastTree is
2471 100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2472 (license license:gpl2+)))
2474 (define-public fastx-toolkit
2476 (name "fastx-toolkit")
2482 "https://github.com/agordon/fastx_toolkit/releases/download/"
2483 version "/fastx_toolkit-" version ".tar.bz2"))
2486 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2487 (build-system gnu-build-system)
2489 `(("libgtextutils" ,libgtextutils)))
2491 `(("pkg-config" ,pkg-config)))
2492 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
2493 (synopsis "Tools for FASTA/FASTQ file preprocessing")
2495 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
2496 FASTA/FASTQ files preprocessing.
2498 Next-Generation sequencing machines usually produce FASTA or FASTQ files,
2499 containing multiple short-reads sequences. The main processing of such
2500 FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
2501 is sometimes more productive to preprocess the files before mapping the
2502 sequences to the genome---manipulating the sequences to produce better mapping
2503 results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
2504 (license license:agpl3+)))
2506 (define-public flexbar
2513 (string-append "mirror://sourceforge/flexbar/"
2514 version "/flexbar_v" version "_src.tgz"))
2517 "13jaykc3y1x8y5nn9j8ljnb79s5y51kyxz46hdmvvjj6qhyympmf"))))
2518 (build-system cmake-build-system)
2520 `(#:configure-flags (list
2521 (string-append "-DFLEXBAR_BINARY_DIR="
2522 (assoc-ref %outputs "out")
2527 (lambda* (#:key outputs #:allow-other-keys)
2528 (setenv "PATH" (string-append
2529 (assoc-ref outputs "out") "/bin:"
2531 (chdir "../flexbar_v2.5_src/test")
2532 (zero? (system* "bash" "flexbar_validate.sh")))
2533 (alist-delete 'install %standard-phases))))
2538 `(("pkg-config" ,pkg-config)
2540 (home-page "http://flexbar.sourceforge.net")
2541 (synopsis "Barcode and adapter removal tool for sequencing platforms")
2543 "Flexbar preprocesses high-throughput nucleotide sequencing data
2544 efficiently. It demultiplexes barcoded runs and removes adapter sequences.
2545 Moreover, trimming and filtering features are provided. Flexbar increases
2546 read mapping rates and improves genome and transcriptome assemblies. It
2547 supports next-generation sequencing data in fasta/q and csfasta/q format from
2548 Illumina, Roche 454, and the SOLiD platform.")
2549 (license license:gpl3)))
2551 (define-public fraggenescan
2553 (name "fraggenescan")
2559 (string-append "mirror://sourceforge/fraggenescan/"
2560 "FragGeneScan" version ".tar.gz"))
2562 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
2563 (build-system gnu-build-system)
2566 (modify-phases %standard-phases
2568 (add-before 'build 'patch-paths
2569 (lambda* (#:key outputs #:allow-other-keys)
2570 (let* ((out (string-append (assoc-ref outputs "out")))
2571 (share (string-append out "/share/fraggenescan/")))
2572 (substitute* "run_FragGeneScan.pl"
2574 (string-append "system(\"" (which "rm")))
2576 (string-append "system(\"" (which "mv")))
2577 (("\\\"awk") (string-append "\"" (which "awk")))
2578 ;; This script and other programs expect the training files
2579 ;; to be in the non-standard location bin/train/XXX. Change
2580 ;; this to be share/fraggenescan/train/XXX instead.
2581 (("^\\$train.file = \\$dir.*")
2582 (string-append "$train_file = \""
2584 "train/\".$FGS_train_file;")))
2585 (substitute* "run_hmm.c"
2586 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
2587 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
2590 (lambda _ (and (zero? (system* "make" "clean"))
2591 (zero? (system* "make" "fgs")))))
2593 (lambda* (#:key outputs #:allow-other-keys)
2594 (let* ((out (string-append (assoc-ref outputs "out")))
2595 (bin (string-append out "/bin/"))
2596 (share (string-append out "/share/fraggenescan/train")))
2597 (install-file "run_FragGeneScan.pl" bin)
2598 (install-file "FragGeneScan" bin)
2599 (copy-recursively "train" share))))
2601 (add-after 'install 'post-install-check
2602 ;; In lieu of 'make check', run one of the examples and check the
2603 ;; output files gets created.
2604 (lambda* (#:key outputs #:allow-other-keys)
2605 (let* ((out (string-append (assoc-ref outputs "out")))
2606 (bin (string-append out "/bin/"))
2607 (frag (string-append bin "run_FragGeneScan.pl")))
2608 (and (zero? (system* frag ; Test complete genome.
2609 "-genome=./example/NC_000913.fna"
2613 (file-exists? "test2.faa")
2614 (file-exists? "test2.ffn")
2615 (file-exists? "test2.gff")
2616 (file-exists? "test2.out")
2617 (zero? (system* ; Test incomplete sequences.
2619 "-genome=./example/NC_000913-fgs.ffn"
2622 "-train=454_30")))))))))
2625 ("python" ,python-2))) ;not compatible with python 3.
2626 (home-page "https://sourceforge.net/projects/fraggenescan/")
2627 (synopsis "Finds potentially fragmented genes in short reads")
2629 "FragGeneScan is a program for predicting bacterial and archaeal genes in
2630 short and error-prone DNA sequencing reads. It can also be applied to predict
2631 genes in incomplete assemblies or complete genomes.")
2632 ;; GPL3+ according to private correspondense with the authors.
2633 (license license:gpl3+)))
2635 (define-public fxtract
2636 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
2644 "https://github.com/ctSkennerton/fxtract/archive/"
2646 (file-name (string-append "ctstennerton-util-"
2647 (string-take util-commit 7)
2651 "0275cfdhis8517hm01is62062swmi06fxzifq7mr3knbbxjlaiwj"))))
2652 (build-system gnu-build-system)
2654 `(#:make-flags (list
2655 (string-append "PREFIX=" (assoc-ref %outputs "out"))
2657 #:test-target "fxtract_test"
2659 (modify-phases %standard-phases
2661 (add-before 'build 'copy-util
2662 (lambda* (#:key inputs #:allow-other-keys)
2664 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
2666 ;; Do not use make install as this requires additional dependencies.
2668 (lambda* (#:key outputs #:allow-other-keys)
2669 (let* ((out (assoc-ref outputs "out"))
2670 (bin (string-append out"/bin")))
2671 (install-file "fxtract" bin)
2677 ;; ctskennerton-util is licensed under GPL2.
2678 `(("ctskennerton-util"
2682 (url "https://github.com/ctSkennerton/util.git")
2683 (commit util-commit)))
2684 (file-name (string-append
2685 "ctstennerton-util-" util-commit "-checkout"))
2688 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
2689 (home-page "https://github.com/ctSkennerton/fxtract")
2690 (synopsis "Extract sequences from FASTA and FASTQ files")
2692 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
2693 or FASTQ) file given a subsequence. It uses a simple substring search for
2694 basic tasks but can change to using POSIX regular expressions, PCRE, hash
2695 lookups or multi-pattern searching as required. By default fxtract looks in
2696 the sequence of each record but can also be told to look in the header,
2697 comment or quality sections.")
2698 ;; 'util' requires SSE instructions.
2699 (supported-systems '("x86_64-linux"))
2700 (license license:expat))))
2702 (define-public gemma
2708 (uri (string-append "https://github.com/xiangzhou/GEMMA/archive/v"
2710 (file-name (string-append name "-" version ".tar.gz"))
2713 "055ynn16gd12pf78n4vr2a9jlwsbwzajpdnf2y2yilg1krfff222"))))
2718 (build-system gnu-build-system)
2720 `(#:make-flags '("FORCE_DYNAMIC=1") ; use shared libs
2722 (modify-phases %standard-phases
2724 (add-before 'build 'bin-mkdir
2728 (lambda* (#:key outputs #:allow-other-keys)
2729 (let ((out (assoc-ref outputs "out")))
2730 (install-file "bin/gemma"
2733 #:tests? #f)) ; no tests included yet
2734 (home-page "https://github.com/xiangzhou/GEMMA")
2735 (synopsis "Tool for genome-wide efficient mixed model association")
2737 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
2738 standard linear mixed model resolver with application in genome-wide
2739 association studies (GWAS).")
2740 (license license:gpl3)))
2749 "https://github.com/nboley/grit/archive/"
2751 (file-name (string-append name "-" version ".tar.gz"))
2754 "157in84dj70wimbind3x7sy1whs3h57qfgcnj2s6lrd38fbrb7mj"))))
2755 (build-system python-build-system)
2757 `(#:python ,python-2
2760 'unpack 'generate-from-cython-sources
2761 (lambda* (#:key inputs outputs #:allow-other-keys)
2762 ;; Delete these C files to force fresh generation from pyx sources.
2763 (delete-file "grit/sparsify_support_fns.c")
2764 (delete-file "grit/call_peaks_support_fns.c")
2765 (substitute* "setup.py"
2766 (("Cython.Setup") "Cython.Build")
2767 ;; Add numpy include path to fix compilation
2769 (string-append "pyx\", ], include_dirs = ['"
2770 (assoc-ref inputs "python-numpy")
2771 "/lib/python2.7/site-packages/numpy/core/include/"
2775 `(("python-scipy" ,python2-scipy)
2776 ("python-numpy" ,python2-numpy)
2777 ("python-pysam" ,python2-pysam)
2778 ("python-networkx" ,python2-networkx)))
2780 `(("python-cython" ,python2-cython)))
2781 (home-page "http://grit-bio.org")
2782 (synopsis "Tool for integrative analysis of RNA-seq type assays")
2784 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
2785 full length transcript models. When none of these data sources are available,
2786 GRIT can be run by providing a candidate set of TES or TSS sites. In
2787 addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
2788 also be run in quantification mode, where it uses a provided GTF file and just
2789 estimates transcript expression.")
2790 (license license:gpl3+)))
2792 (define-public hisat
2799 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
2800 version "-beta-source.zip"))
2803 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
2804 (build-system gnu-build-system)
2806 `(#:tests? #f ;no check target
2807 #:make-flags '("allall"
2808 ;; Disable unsupported `popcnt' instructions on
2809 ;; architectures other than x86_64
2810 ,@(if (string-prefix? "x86_64"
2811 (or (%current-target-system)
2814 '("POPCNT_CAPABILITY=0")))
2817 'unpack 'patch-sources
2819 ;; XXX Cannot use snippet because zip files are not supported
2820 (substitute* "Makefile"
2821 (("^CC = .*$") "CC = gcc")
2822 (("^CPP = .*$") "CPP = g++")
2823 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
2824 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
2825 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
2826 (substitute* '("hisat-build" "hisat-inspect")
2827 (("/usr/bin/env") (which "env"))))
2830 (lambda* (#:key outputs #:allow-other-keys)
2831 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
2832 (for-each (lambda (file)
2833 (install-file file bin))
2836 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))))
2837 (alist-delete 'configure %standard-phases)))))
2839 `(("unzip" ,unzip)))
2844 ;; Non-portable SSE instructions are used so building fails on platforms
2845 ;; other than x86_64.
2846 (supported-systems '("x86_64-linux"))
2847 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
2848 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
2850 "HISAT is a fast and sensitive spliced alignment program for mapping
2851 RNA-seq reads. In addition to one global FM index that represents a whole
2852 genome, HISAT uses a large set of small FM indexes that collectively cover the
2853 whole genome. These small indexes (called local indexes) combined with
2854 several alignment strategies enable effective alignment of RNA-seq reads, in
2855 particular, reads spanning multiple exons.")
2856 (license license:gpl3+)))
2858 (define-public hisat2
2865 ;; FIXME: a better source URL is
2866 ;; (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
2867 ;; "/downloads/hisat2-" version "-source.zip")
2868 ;; with hash "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"
2869 ;; but it is currently unavailable.
2870 (uri "https://github.com/infphilo/hisat2/archive/cba6e8cb.tar.gz")
2871 (file-name (string-append name "-" version ".tar.gz"))
2874 "1mf2hdsyv7cd97xm9mp9a4qws02yrj95y6w6f6cdwnq0klp81r50"))))
2875 (build-system gnu-build-system)
2877 `(#:tests? #f ; no check target
2878 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
2879 #:modules ((guix build gnu-build-system)
2883 (modify-phases %standard-phases
2884 (add-after 'unpack 'make-deterministic
2886 (substitute* "Makefile"
2891 (lambda* (#:key outputs #:allow-other-keys)
2892 (let* ((out (assoc-ref outputs "out"))
2893 (bin (string-append out "/bin/"))
2894 (doc (string-append out "/share/doc/hisat2/")))
2896 (cut install-file <> bin)
2898 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
2900 (install-file "doc/manual.inc.html" doc))
2903 `(("unzip" ,unzip) ; needed for archive from ftp
2905 ("pandoc" ,ghc-pandoc))) ; for documentation
2906 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
2907 (synopsis "Graph-based alignment of genomic sequencing reads")
2908 (description "HISAT2 is a fast and sensitive alignment program for mapping
2909 next-generation sequencing reads (both DNA and RNA) to a population of human
2910 genomes (as well as to a single reference genome). In addition to using one
2911 global @dfn{graph FM} (GFM) index that represents a population of human
2912 genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
2913 the whole genome. These small indexes, combined with several alignment
2914 strategies, enable rapid and accurate alignment of sequencing reads. This new
2915 indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
2916 ;; HISAT2 contains files from Bowtie2, which is released under
2917 ;; GPLv2 or later. The HISAT2 source files are released under
2919 (license license:gpl3+)))
2921 (define-public hmmer
2929 "http://eddylab.org/software/hmmer"
2930 (version-prefix version 1) "/"
2931 version "/hmmer-" version ".tar.gz"))
2934 "0djmgc0pfli0jilfx8hql1axhwhqxqb8rxg2r5rg07aw73sfs5nx"))
2935 (patches (search-patches "hmmer-remove-cpu-specificity.patch"))))
2936 (build-system gnu-build-system)
2937 (native-inputs `(("perl" ,perl)))
2938 (home-page "http://hmmer.org/")
2939 (synopsis "Biosequence analysis using profile hidden Markov models")
2941 "HMMER is used for searching sequence databases for homologs of protein
2942 sequences, and for making protein sequence alignments. It implements methods
2943 using probabilistic models called profile hidden Markov models (profile
2945 (license (list license:gpl3+
2946 ;; The bundled library 'easel' is distributed
2947 ;; under The Janelia Farm Software License.
2948 (license:non-copyleft
2949 "file://easel/LICENSE"
2950 "See easel/LICENSE in the distribution.")))))
2952 (define-public htseq
2959 "https://pypi.python.org/packages/source/H/HTSeq/HTSeq-"
2963 "1i85ppf2j2lj12m0x690qq5nn17xxk23pbbx2c83r8ayb5wngzwv"))))
2964 (build-system python-build-system)
2965 (arguments `(#:python ,python-2)) ; only Python 2 is supported
2966 ;; Numpy needs to be propagated when htseq is used as a Python library.
2968 `(("python-numpy" ,python2-numpy)))
2970 `(("python-pysam" ,python2-pysam)))
2971 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
2972 (synopsis "Analysing high-throughput sequencing data with Python")
2974 "HTSeq is a Python package that provides infrastructure to process data
2975 from high-throughput sequencing assays.")
2976 (license license:gpl3+)))
2978 (define-public java-htsjdk
2980 (name "java-htsjdk")
2985 "https://github.com/samtools/htsjdk/archive/"
2987 (file-name (string-append name "-" version ".tar.gz"))
2990 "0asdk9b8jx2ij7yd6apg9qx03li8q7z3ml0qy2r2qczkra79y6fw"))
2991 (modules '((guix build utils)))
2992 ;; remove build dependency on git
2993 (snippet '(substitute* "build.xml"
2994 (("failifexecutionfails=\"true\"")
2995 "failifexecutionfails=\"false\"")))))
2996 (build-system ant-build-system)
2998 `(#:tests? #f ; test require Internet access
3000 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3001 "/share/java/htsjdk/"))
3002 #:build-target "all"
3004 (modify-phases %standard-phases
3005 ;; The build phase also installs the jars
3006 (delete 'install))))
3007 (home-page "http://samtools.github.io/htsjdk/")
3008 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3010 "HTSJDK is an implementation of a unified Java library for accessing
3011 common file formats, such as SAM and VCF, used for high-throughput
3012 sequencing (HTS) data. There are also an number of useful utilities for
3013 manipulating HTS data.")
3014 (license license:expat)))
3016 (define-public htslib
3023 "https://github.com/samtools/htslib/releases/download/"
3024 version "/htslib-" version ".tar.bz2"))
3027 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))
3028 (build-system gnu-build-system)
3031 (modify-phases %standard-phases
3033 'unpack 'patch-tests
3035 (substitute* "test/test.pl"
3036 (("/bin/bash") (which "bash")))
3042 (home-page "http://www.htslib.org")
3043 (synopsis "C library for reading/writing high-throughput sequencing data")
3045 "HTSlib is a C library for reading/writing high-throughput sequencing
3046 data. It also provides the bgzip, htsfile, and tabix utilities.")
3047 ;; Files under cram/ are released under the modified BSD license;
3048 ;; the rest is released under the Expat license
3049 (license (list license:expat license:bsd-3))))
3058 "https://github.com/nboley/idr/archive/"
3060 (file-name (string-append name "-" version ".tar.gz"))
3063 "1k3x44biak00aiv3hpm1yd6nn4hhp7n0qnbs3zh2q9sw7qr1qj5r"))))
3064 (build-system python-build-system)
3066 `(#:tests? #f)) ; FIXME: "ImportError: No module named 'utility'"
3068 `(("python-scipy" ,python-scipy)
3069 ("python-sympy" ,python-sympy)
3070 ("python-numpy" ,python-numpy)
3071 ("python-matplotlib" ,python-matplotlib)))
3073 `(("python-cython" ,python-cython)))
3074 (home-page "https://github.com/nboley/idr")
3075 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
3077 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
3078 to measure the reproducibility of findings identified from replicate
3079 experiments and provide highly stable thresholds based on reproducibility.")
3080 (license license:gpl3+)))
3082 (define-public jellyfish
3088 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
3089 "releases/download/v" version
3090 "/jellyfish-" version ".tar.gz"))
3093 "0a6xnynqy2ibfbfz86b9g2m2dgm7f1469pmymkpam333gi3p26nk"))))
3094 (build-system gnu-build-system)
3095 (outputs '("out" ;for library
3096 "ruby" ;for Ruby bindings
3097 "python")) ;for Python bindings
3100 (list (string-append "--enable-ruby-binding="
3101 (assoc-ref %outputs "ruby"))
3102 (string-append "--enable-python-binding="
3103 (assoc-ref %outputs "python")))
3105 (modify-phases %standard-phases
3106 (add-before 'check 'set-SHELL-variable
3108 ;; generator_manager.hpp either uses /bin/sh or $SHELL
3110 (setenv "SHELL" (which "bash"))
3116 ("python" ,python-2)))
3117 (synopsis "Tool for fast counting of k-mers in DNA")
3119 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
3120 DNA. A k-mer is a substring of length k, and counting the occurrences of all
3121 such substrings is a central step in many analyses of DNA sequence. Jellyfish
3122 is a command-line program that reads FASTA and multi-FASTA files containing
3123 DNA sequences. It outputs its k-mer counts in a binary format, which can be
3124 translated into a human-readable text format using the @code{jellyfish dump}
3125 command, or queried for specific k-mers with @code{jellyfish query}.")
3126 (home-page "http://www.genome.umd.edu/jellyfish.html")
3127 ;; From their website: JELLYFISH runs on 64-bit Intel-compatible processors
3128 (supported-systems '("x86_64-linux"))
3129 ;; The combined work is published under the GPLv3 or later. Individual
3130 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
3131 (license (list license:gpl3+ license:expat))))
3133 (define-public khmer
3140 (uri (pypi-uri "khmer" version))
3143 "0wb05shqh77v00256qlm68vbbx3kl76fyzihszbz5nhanl4ni33a"))
3144 (patches (search-patches "khmer-use-libraries.patch"))))
3145 (build-system python-build-system)
3148 (modify-phases %standard-phases
3149 (add-after 'unpack 'set-paths
3150 (lambda* (#:key inputs outputs #:allow-other-keys)
3151 ;; Delete bundled libraries.
3152 (delete-file-recursively "third-party/zlib")
3153 (delete-file-recursively "third-party/bzip2")
3154 ;; Replace bundled seqan.
3155 (let* ((seqan-all "third-party/seqan")
3156 (seqan-include (string-append
3157 seqan-all "/core/include")))
3158 (delete-file-recursively seqan-all)
3159 (copy-recursively (string-append (assoc-ref inputs "seqan")
3161 (string-append seqan-include "/seqan")))
3162 ;; We do not replace the bundled MurmurHash as the canonical
3163 ;; repository for this code 'SMHasher' is unsuitable for
3164 ;; providing a library. See
3165 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
3167 (add-after 'unpack 'set-cc
3171 ;; It is simpler to test after installation.
3173 (add-after 'install 'post-install-check
3174 (lambda* (#:key inputs outputs #:allow-other-keys)
3175 (let ((out (assoc-ref outputs "out")))
3180 (assoc-ref outputs "out")
3182 (setenv "PYTHONPATH"
3184 (getenv "PYTHONPATH")
3188 (string-take (string-take-right
3189 (assoc-ref inputs "python") 5) 3)
3191 (with-directory-excursion "build"
3192 (zero? (system* "nosetests" "khmer" "--attr"
3193 "!known_failing")))))))))
3196 ("python-nose" ,python-nose)))
3200 ("python-screed" ,python-screed)
3201 ("python-bz2file" ,python-bz2file)
3202 ;; Tests fail when gcc-5 is used for compilation. Use gcc-4.9 at least
3203 ;; until the next version of khmer (likely 2.1) is released.
3205 (home-page "https://khmer.readthedocs.org/")
3206 (synopsis "K-mer counting, filtering and graph traversal library")
3207 (description "The khmer software is a set of command-line tools for
3208 working with DNA shotgun sequencing data from genomes, transcriptomes,
3209 metagenomes and single cells. Khmer can make de novo assemblies faster, and
3210 sometimes better. Khmer can also identify and fix problems with shotgun
3212 ;; When building on i686, armhf and mips64el, we get the following error:
3213 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
3214 (supported-systems '("x86_64-linux"))
3215 (license license:bsd-3)))
3217 (define-public kaiju
3224 "https://github.com/bioinformatics-centre/kaiju/archive/v"
3226 (file-name (string-append name "-" version ".tar.gz"))
3229 "0afbfalfw9y39bkwnqjrh9bghs118ws1pzj5h8l0nblgn3mbjdks"))))
3230 (build-system gnu-build-system)
3232 `(#:tests? #f ; There are no tests.
3234 (modify-phases %standard-phases
3236 (add-before 'build 'move-to-src-dir
3237 (lambda _ (chdir "src") #t))
3239 (lambda* (#:key inputs outputs #:allow-other-keys)
3240 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
3243 (copy-recursively "bin" bin)
3244 (copy-recursively "util" bin))
3248 (home-page "http://kaiju.binf.ku.dk/")
3249 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
3250 (description "Kaiju is a program for sensitive taxonomic classification
3251 of high-throughput sequencing reads from metagenomic whole genome sequencing
3253 (license license:gpl3+)))
3258 (version "2.1.0.20151222")
3261 (uri (pypi-uri "MACS2" version))
3264 "1r2hcz6irhcq7lwbafjks98jbn34hv05avgbdjnp6w6mlfjkf8x5"))))
3265 (build-system python-build-system)
3267 `(#:python ,python-2 ; only compatible with Python 2.7
3268 #:tests? #f)) ; no test target
3270 `(("python-numpy" ,python2-numpy)))
3271 (home-page "https://github.com/taoliu/MACS/")
3272 (synopsis "Model based analysis for ChIP-Seq data")
3274 "MACS is an implementation of a ChIP-Seq analysis algorithm for
3275 identifying transcript factor binding sites named Model-based Analysis of
3276 ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
3277 the significance of enriched ChIP regions and it improves the spatial
3278 resolution of binding sites through combining the information of both
3279 sequencing tag position and orientation.")
3280 (license license:bsd-3)))
3282 (define-public mafft
3289 "http://mafft.cbrc.jp/alignment/software/mafft-" version
3290 "-without-extensions-src.tgz"))
3291 (file-name (string-append name "-" version ".tgz"))
3294 "0gbsaz6z2qa307kd7wfb06c3y4ikmv1hsdvlns11f6zq4w1z9pwc"))))
3295 (build-system gnu-build-system)
3297 `(#:tests? #f ; no automated tests, though there are tests in the read me
3298 #:make-flags (let ((out (assoc-ref %outputs "out")))
3299 (list (string-append "PREFIX=" out)
3300 (string-append "BINDIR="
3301 (string-append out "/bin"))))
3303 (modify-phases %standard-phases
3304 (add-after 'unpack 'enter-dir
3305 (lambda _ (chdir "core") #t))
3306 (add-after 'enter-dir 'patch-makefile
3308 ;; on advice from the MAFFT authors, there is no need to
3309 ;; distribute mafft-profile, mafft-distance, or
3310 ;; mafft-homologs.rb as they are too "specialised".
3311 (substitute* "Makefile"
3312 ;; remove mafft-homologs.rb from SCRIPTS
3313 (("^SCRIPTS = mafft mafft-homologs.rb")
3315 ;; remove mafft-homologs from MANPAGES
3316 (("^MANPAGES = mafft.1 mafft-homologs.1")
3317 "MANPAGES = mafft.1")
3318 ;; remove mafft-distance from PROGS
3319 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
3320 "PROGS = dvtditr dndfast7 dndblast sextet5")
3321 ;; remove mafft-profile from PROGS
3322 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
3323 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
3324 (("^rm -f mafft-profile mafft-profile.exe") "#")
3325 (("^rm -f mafft-distance mafft-distance.exe") ")#")
3326 ;; do not install MAN pages in libexec folder
3327 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
3328 \\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
3330 (add-after 'enter-dir 'patch-paths
3331 (lambda* (#:key inputs #:allow-other-keys)
3332 (substitute* '("pairash.c"
3334 (("perl") (which "perl"))
3335 (("([\"`| ])awk" _ prefix)
3336 (string-append prefix (which "awk")))
3337 (("grep") (which "grep")))
3340 (add-after 'install 'wrap-programs
3341 (lambda* (#:key outputs #:allow-other-keys)
3342 (let* ((out (assoc-ref outputs "out"))
3343 (bin (string-append out "/bin"))
3344 (path (string-append
3345 (assoc-ref %build-inputs "coreutils") "/bin:")))
3346 (for-each (lambda (file)
3348 `("PATH" ":" prefix (,path))))
3356 ("coreutils" ,coreutils)))
3357 (home-page "http://mafft.cbrc.jp/alignment/software/")
3358 (synopsis "Multiple sequence alignment program")
3360 "MAFFT offers a range of multiple alignment methods for nucleotide and
3361 protein sequences. For instance, it offers L-INS-i (accurate; for alignment
3362 of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
3364 (license (license:non-copyleft
3365 "http://mafft.cbrc.jp/alignment/software/license.txt"
3366 "BSD-3 with different formatting"))))
3375 "https://github.com/marbl/mash/archive/v"
3377 (file-name (string-append name "-" version ".tar.gz"))
3380 "08znbvqq5xknfhmpp3wcj574zvi4p7i8zifi67c9qw9a6ikp42fj"))
3381 (modules '((guix build utils)))
3383 ;; Delete bundled kseq.
3384 ;; TODO: Also delete bundled murmurhash and open bloom filter.
3385 '(delete-file "src/mash/kseq.h"))))
3386 (build-system gnu-build-system)
3388 `(#:tests? #f ; No tests.
3391 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
3392 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
3393 #:make-flags (list "CC=gcc")
3395 (modify-phases %standard-phases
3396 (add-after 'unpack 'fix-includes
3398 (substitute* '("src/mash/Sketch.cpp" "src/mash/CommandFind.cpp")
3399 (("^#include \"kseq\\.h\"")
3400 "#include \"htslib/kseq.h\""))
3402 (add-before 'configure 'autoconf
3403 (lambda _ (zero? (system* "autoconf")))))))
3405 `(("autoconf" ,autoconf)
3406 ;; Capnproto and htslib are statically embedded in the final
3407 ;; application. Therefore we also list their licenses, below.
3408 ("capnproto" ,capnproto)
3409 ("htslib" ,htslib)))
3413 (supported-systems '("x86_64-linux"))
3414 (home-page "https://mash.readthedocs.io")
3415 (synopsis "Fast genome and metagenome distance estimation using MinHash")
3416 (description "Mash is a fast sequence distance estimator that uses the
3417 MinHash algorithm and is designed to work with genomes and metagenomes in the
3418 form of assemblies or reads.")
3419 (license (list license:bsd-3 ; Mash
3420 license:expat ; HTSlib and capnproto
3421 license:public-domain ; MurmurHash 3
3422 license:cpl1.0)))) ; Open Bloom Filter
3424 (define-public metabat
3425 ;; We package from a git commit because compilation of the released version
3427 (let ((commit "cbdca756993e66ae57e50a27970595dda9cbde1b"))
3430 (version (string-append "0.32.4-1." (string-take commit 8)))
3435 (url "https://bitbucket.org/berkeleylab/metabat.git")
3437 (file-name (string-append name "-" version))
3440 "0byia8nsip6zvc4ha0qkxkxxyjf4x7jcvy48q2dvb0pzr989syzr"))
3441 (patches (search-patches "metabat-remove-compilation-date.patch"))))
3442 (build-system gnu-build-system)
3445 (modify-phases %standard-phases
3446 (add-after 'unpack 'fix-includes
3448 (substitute* "src/BamUtils.h"
3449 (("^#include \"bam/bam\\.h\"")
3450 "#include \"samtools/bam.h\"")
3451 (("^#include \"bam/sam\\.h\"")
3452 "#include \"samtools/sam.h\""))
3453 (substitute* "src/KseqReader.h"
3454 (("^#include \"bam/kseq\\.h\"")
3455 "#include \"htslib/kseq.h\""))
3457 (add-after 'unpack 'fix-scons
3458 (lambda* (#:key inputs #:allow-other-keys)
3459 (substitute* "SConstruct"
3460 (("^htslib_dir = 'samtools'")
3461 (string-append "hitslib_dir = '"
3462 (assoc-ref inputs "htslib")
3464 (("^samtools_dir = 'samtools'")
3465 (string-append "samtools_dir = '"
3466 (assoc-ref inputs "htslib")
3468 (("^findStaticOrShared\\('bam', hts_lib")
3469 (string-append "findStaticOrShared('bam', '"
3470 (assoc-ref inputs "samtools")
3472 ;; Do not distribute README.
3473 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
3477 (lambda* (#:key inputs outputs #:allow-other-keys)
3478 (mkdir (assoc-ref outputs "out"))
3479 (zero? (system* "scons"
3482 (assoc-ref outputs "out"))
3485 (assoc-ref inputs "boost"))
3487 ;; Check and install are carried out during build phase.
3489 (delete 'install))))
3493 ("samtools" ,samtools)
3497 `(("scons" ,scons)))
3498 (home-page "https://bitbucket.org/berkeleylab/metabat")
3500 "Reconstruction of single genomes from complex microbial communities")
3502 "Grouping large genomic fragments assembled from shotgun metagenomic
3503 sequences to deconvolute complex microbial communities, or metagenome binning,
3504 enables the study of individual organisms and their interactions. MetaBAT is
3505 an automated metagenome binning software, which integrates empirical
3506 probabilistic distances of genome abundance and tetranucleotide frequency.")
3507 (license (license:non-copyleft "file://license.txt"
3508 "See license.txt in the distribution.")))))
3510 (define-public minced
3517 "https://github.com/ctSkennerton/minced/archive/"
3519 (file-name (string-append name "-" version ".tar.gz"))
3522 "0wxmlsapxfpxfd3ps9636h7i2xy6la8i42mwh0j2lsky63h63jp1"))))
3523 (build-system gnu-build-system)
3525 `(#:test-target "test"
3527 (modify-phases %standard-phases
3529 (add-before 'check 'fix-test
3531 ;; Fix test for latest version.
3532 (substitute* "t/Aquifex_aeolicus_VF5.expected"
3533 (("minced:0.1.6") "minced:0.2.0"))
3535 (replace 'install ; No install target.
3536 (lambda* (#:key inputs outputs #:allow-other-keys)
3537 (let* ((out (assoc-ref outputs "out"))
3538 (bin (string-append out "/bin"))
3539 (wrapper (string-append bin "/minced")))
3540 ;; Minced comes with a wrapper script that tries to figure out where
3541 ;; it is located before running the JAR. Since these paths are known
3542 ;; to us, we build our own wrapper to avoid coreutils dependency.
3543 (install-file "minced.jar" bin)
3544 (with-output-to-file wrapper
3548 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
3549 (assoc-ref inputs "jre") "/bin/java -jar "
3550 bin "/minced.jar \"$@\"\n"))))
3551 (chmod wrapper #o555)))))))
3553 `(("jdk" ,icedtea "jdk")))
3556 ("jre" ,icedtea "out")))
3557 (home-page "https://github.com/ctSkennerton/minced")
3558 (synopsis "Mining CRISPRs in Environmental Datasets")
3560 "MinCED is a program to find Clustered Regularly Interspaced Short
3561 Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
3562 unassembled metagenomic reads, but is mainly designed for full genomes and
3563 assembled metagenomic sequence.")
3564 (license license:gpl3+)))
3573 "https://pypi.python.org/packages/source/m/misopy/misopy-"
3577 "0x446867az8ir0z8c1vjqffkp0ma37wm4sylixnkhgawllzx8v5w"))
3578 (modules '((guix build utils)))
3580 '(substitute* "setup.py"
3581 ;; Use setuptools, or else the executables are not
3583 (("distutils.core") "setuptools")
3584 ;; use "gcc" instead of "cc" for compilation
3586 "cc.set_executables(
3590 linker_so='gcc -shared'); defines")))))
3591 (build-system python-build-system)
3593 `(#:python ,python-2 ; only Python 2 is supported
3594 #:tests? #f)) ; no "test" target
3596 `(("samtools" ,samtools)
3597 ("python-numpy" ,python2-numpy)
3598 ("python-pysam" ,python2-pysam)
3599 ("python-scipy" ,python2-scipy)
3600 ("python-matplotlib" ,python2-matplotlib)))
3602 `(("python-mock" ,python2-mock) ;for tests
3603 ("python-pytz" ,python2-pytz))) ;for tests
3604 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
3605 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
3607 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
3608 the expression level of alternatively spliced genes from RNA-Seq data, and
3609 identifies differentially regulated isoforms or exons across samples. By
3610 modeling the generative process by which reads are produced from isoforms in
3611 RNA-Seq, the MISO model uses Bayesian inference to compute the probability
3612 that a read originated from a particular isoform.")
3613 (license license:gpl2)))
3615 (define-public muscle
3618 (version "3.8.1551")
3620 (method url-fetch/tarbomb)
3622 "http://www.drive5.com/muscle/muscle_src_"
3626 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
3627 (build-system gnu-build-system)
3629 `(#:make-flags (list "LDLIBS = -lm")
3631 (modify-phases %standard-phases
3634 ;; There are no tests, so just test if it runs.
3635 (lambda _ (zero? (system* "./muscle" "-version"))))
3637 (lambda* (#:key outputs #:allow-other-keys)
3638 (let* ((out (assoc-ref outputs "out"))
3639 (bin (string-append out "/bin")))
3640 (install-file "muscle" bin)))))))
3641 (home-page "http://www.drive5.com/muscle")
3642 (synopsis "Multiple sequence alignment program")
3644 "MUSCLE aims to be a fast and accurate multiple sequence alignment
3645 program for nucleotide and protein sequences.")
3646 ;; License information found in 'muscle -h' and usage.cpp.
3647 (license license:public-domain)))
3649 (define-public newick-utils
3650 ;; There are no recent releases so we package from git.
3651 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
3653 (name "newick-utils")
3654 (version (string-append "1.6-1." (string-take commit 8)))
3658 (url "https://github.com/tjunier/newick_utils.git")
3660 (file-name (string-append name "-" version "-checkout"))
3663 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
3664 (build-system gnu-build-system)
3667 (modify-phases %standard-phases
3668 (add-after 'unpack 'autoconf
3669 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
3671 ;; XXX: TODO: Enable Lua and Guile bindings.
3672 ;; https://github.com/tjunier/newick_utils/issues/13
3673 `(("libxml2" ,libxml2)
3677 `(("autoconf" ,autoconf)
3678 ("automake" ,automake)
3679 ("libtool" ,libtool)))
3680 (synopsis "Programs for working with newick format phylogenetic trees")
3682 "Newick-utils is a suite of utilities for processing phylogenetic trees
3683 in Newick format. Functions include re-rooting, extracting subtrees,
3684 trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
3685 (home-page "https://github.com/tjunier/newick_utils")
3686 (license license:bsd-3))))
3695 "https://github.com/wwood/OrfM/releases/download/v"
3696 version "/orfm-" version ".tar.gz"))
3699 "19hwp13n82isdvk16710l9m35cmzf0q3fsrcn3r8c5r67biiz39s"))))
3700 (build-system gnu-build-system)
3701 (inputs `(("zlib" ,zlib)))
3703 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
3704 ("ruby-rspec" ,ruby-rspec)
3706 (synopsis "Simple and not slow open reading frame (ORF) caller")
3708 "An ORF caller finds stretches of DNA that, when translated, are not
3709 interrupted by stop codons. OrfM finds and prints these ORFs.")
3710 (home-page "https://github.com/wwood/OrfM")
3711 (license license:lgpl3+)))
3713 (define-public pplacer
3714 (let ((commit "g807f6f3"))
3717 ;; The commit should be updated with each version change.
3718 (version "1.1.alpha19")
3722 (uri (string-append "https://github.com/matsen/pplacer/archive/v"
3724 (file-name (string-append name "-" version ".tar.gz"))
3726 (base32 "0z1lnd2s8sh6kpzg106wzbh2szw7h0hvq8syd5a6wv4rmyyz6x0f"))))
3727 (build-system ocaml-build-system)
3729 `(#:ocaml ,ocaml-4.01
3730 #:findlib ,ocaml4.01-findlib
3731 #:modules ((guix build ocaml-build-system)
3735 (modify-phases %standard-phases
3737 (add-after 'unpack 'replace-bundled-cddlib
3738 (lambda* (#:key inputs #:allow-other-keys)
3739 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
3740 (local-dir "cddlib_guix"))
3742 (with-directory-excursion local-dir
3743 (system* "tar" "xvf" cddlib-src))
3744 (let ((cddlib-src-folder
3745 (string-append local-dir "/"
3746 (list-ref (scandir local-dir) 2)
3751 (string-append "cdd_src/" (basename file))))
3752 (find-files cddlib-src-folder ".*[ch]$")))
3754 (add-after 'unpack 'fix-makefile
3756 ;; Remove system calls to 'git'.
3757 (substitute* "Makefile"
3758 (("^DESCRIPT:=pplacer-.*")
3760 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
3761 (substitute* "myocamlbuild.ml"
3762 (("git describe --tags --long .*\\\" with")
3764 "echo -n v" ,version "-" ,commit "\" with")))
3767 (lambda* (#:key outputs #:allow-other-keys)
3768 (let* ((out (assoc-ref outputs "out"))
3769 (bin (string-append out "/bin")))
3770 (copy-recursively "bin" bin))
3775 ("ocaml-ounit" ,ocaml4.01-ounit)
3776 ("ocaml-batteries" ,ocaml4.01-batteries)
3777 ("ocaml-camlzip" ,ocaml4.01-camlzip)
3778 ("ocaml-csv" ,ocaml4.01-csv)
3779 ("ocaml-sqlite3" ,ocaml4.01-sqlite3)
3780 ("ocaml-xmlm" ,ocaml4.01-xmlm)
3781 ("ocaml-mcl" ,ocaml4.01-mcl)
3782 ("ocaml-gsl" ,ocaml4.01-gsl)
3783 ("cddlib-src" ,(package-source cddlib))))
3785 `(("pplacer-scripts" ,pplacer-scripts)))
3786 (synopsis "Phylogenetic placement of biological sequences")
3788 "Pplacer places query sequences on a fixed reference phylogenetic tree
3789 to maximize phylogenetic likelihood or posterior probability according to a
3790 reference alignment. Pplacer is designed to be fast, to give useful
3791 information about uncertainty, and to offer advanced visualization and
3792 downstream analysis.")
3793 (home-page "http://matsen.fhcrc.org/pplacer")
3794 (license license:gpl3))))
3796 ;; This package is installed alongside 'pplacer'. It is a separate package so
3797 ;; that it can use the python-build-system for the scripts that are
3798 ;; distributed alongside the main OCaml binaries.
3799 (define pplacer-scripts
3802 (name "pplacer-scripts")
3803 (build-system python-build-system)
3805 `(#:python ,python-2
3807 (modify-phases %standard-phases
3808 (add-after 'unpack 'enter-scripts-dir
3809 (lambda _ (chdir "scripts")))
3812 (zero? (system* "python" "-m" "unittest" "discover" "-v"))))
3813 (add-after 'install 'wrap-executables
3814 (lambda* (#:key inputs outputs #:allow-other-keys)
3815 (let* ((out (assoc-ref outputs "out"))
3816 (bin (string-append out "/bin")))
3817 (let ((path (string-append
3818 (assoc-ref inputs "hmmer") "/bin:"
3819 (assoc-ref inputs "infernal") "/bin")))
3821 (wrap-program (string-append bin "/refpkg_align.py")
3822 `("PATH" ":" prefix (,path))))
3823 (let ((path (string-append
3824 (assoc-ref inputs "hmmer") "/bin")))
3825 (wrap-program (string-append bin "/hrefpkg_query.py")
3826 `("PATH" ":" prefix (,path)))))
3829 `(("infernal" ,infernal)
3832 `(("python-biopython" ,python2-biopython)
3833 ("taxtastic" ,taxtastic)))
3834 (synopsis "Pplacer Python scripts")))
3836 (define-public python2-pbcore
3838 (name "python2-pbcore")
3842 (uri (pypi-uri "pbcore" version))
3845 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
3846 (build-system python-build-system)
3847 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
3849 `(("python-cython" ,python2-cython)
3850 ("python-numpy" ,python2-numpy)
3851 ("python-pysam" ,python2-pysam)
3852 ("python-h5py" ,python2-h5py)))
3854 `(("python-nose" ,python2-nose)
3855 ("python-sphinx" ,python2-sphinx)
3856 ("python-pyxb" ,python2-pyxb)))
3857 (home-page "http://pacificbiosciences.github.io/pbcore/")
3858 (synopsis "Library for reading and writing PacBio data files")
3860 "The pbcore package provides Python APIs for interacting with PacBio data
3861 files and writing bioinformatics applications.")
3862 (license license:bsd-3)))
3864 (define-public python2-warpedlmm
3866 (name "python2-warpedlmm")
3872 "https://pypi.python.org/packages/source/W/WarpedLMM/WarpedLMM-"
3876 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
3877 (build-system python-build-system)
3879 `(#:python ,python-2)) ; requires Python 2.7
3881 `(("python-scipy" ,python2-scipy)
3882 ("python-numpy" ,python2-numpy)
3883 ("python-matplotlib" ,python2-matplotlib)
3884 ("python-fastlmm" ,python2-fastlmm)
3885 ("python-pandas" ,python2-pandas)
3886 ("python-pysnptools" ,python2-pysnptools)))
3888 `(("python-mock" ,python2-mock)
3889 ("python-nose" ,python2-nose)
3891 (home-page "https://github.com/PMBio/warpedLMM")
3892 (synopsis "Implementation of warped linear mixed models")
3894 "WarpedLMM is a Python implementation of the warped linear mixed model,
3895 which automatically learns an optimal warping function (or transformation) for
3896 the phenotype as it models the data.")
3897 (license license:asl2.0)))
3899 (define-public pbtranscript-tofu
3900 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
3902 (name "pbtranscript-tofu")
3903 (version (string-append "2.2.3." (string-take commit 7)))
3907 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
3909 (file-name (string-append name "-" version "-checkout"))
3912 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
3913 (modules '((guix build utils)))
3916 ;; remove bundled Cython sources
3917 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
3919 (build-system python-build-system)
3921 `(#:python ,python-2
3922 ;; FIXME: Tests fail with "No such file or directory:
3923 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
3926 (modify-phases %standard-phases
3927 (add-after 'unpack 'enter-directory
3929 (chdir "pbtranscript-tofu/pbtranscript/")
3931 ;; With setuptools version 18.0 and later this setup.py hack causes
3932 ;; a build error, so we disable it.
3933 (add-after 'enter-directory 'patch-setuppy
3935 (substitute* "setup.py"
3936 (("if 'setuptools.extension' in sys.modules:")
3940 `(("python-numpy" ,python2-numpy)
3941 ("python-bx-python" ,python2-bx-python)
3942 ("python-networkx" ,python2-networkx)
3943 ("python-scipy" ,python2-scipy)
3944 ("python-pbcore" ,python2-pbcore)
3945 ("python-h5py" ,python2-h5py)))
3947 `(("python-cython" ,python2-cython)
3948 ("python-nose" ,python2-nose)))
3949 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
3950 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
3952 "pbtranscript-tofu contains scripts to analyze transcriptome data
3953 generated using the PacBio Iso-Seq protocol.")
3954 (license license:bsd-3))))
3956 (define-public prank
3963 "http://wasabiapp.org/download/prank/prank.source."
3967 "0am4z94fs3w2n5xpfls9zda61vq7qqz4q2i7b9hlsxz5q4j3kfm4"))))
3968 (build-system gnu-build-system)
3971 (modify-phases %standard-phases
3972 (add-after 'unpack 'enter-src-dir
3976 (add-after 'unpack 'remove-m64-flag
3977 ;; Prank will build with the correct 'bit-ness' without this flag
3978 ;; and this allows building on 32-bit machines.
3979 (lambda _ (substitute* "src/Makefile"
3984 (lambda* (#:key outputs #:allow-other-keys)
3985 (let* ((out (assoc-ref outputs "out"))
3986 (bin (string-append out "/bin"))
3987 (man (string-append out "/share/man/man1"))
3988 (path (string-append
3989 (assoc-ref %build-inputs "mafft") "/bin:"
3990 (assoc-ref %build-inputs "exonerate") "/bin:"
3991 (assoc-ref %build-inputs "bppsuite") "/bin")))
3992 (install-file "prank" bin)
3993 (wrap-program (string-append bin "/prank")
3994 `("PATH" ":" prefix (,path)))
3995 (install-file "prank.1" man))
3999 ("exonerate" ,exonerate)
4000 ("bppsuite" ,bppsuite)))
4001 (home-page "http://wasabiapp.org/software/prank/")
4002 (synopsis "Probabilistic multiple sequence alignment program")
4004 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4005 codon and amino-acid sequences. It is based on a novel algorithm that treats
4006 insertions correctly and avoids over-estimation of the number of deletion
4007 events. In addition, PRANK borrows ideas from maximum likelihood methods used
4008 in phylogenetics and correctly takes into account the evolutionary distances
4009 between sequences. Lastly, PRANK allows for defining a potential structure
4010 for sequences to be aligned and then, simultaneously with the alignment,
4011 predicts the locations of structural units in the sequences.")
4012 (license license:gpl2+)))
4014 (define-public proteinortho
4016 (name "proteinortho")
4023 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4024 version "_src.tar.gz"))
4027 "0z4f5cg0cs8ai62hfvp4q6w66q2phcc55nhs4xj5cyhxxivjv2ai"))))
4028 (build-system gnu-build-system)
4030 `(#:test-target "test"
4032 (modify-phases %standard-phases
4034 ;; There is no configure script, so we modify the Makefile directly.
4035 (lambda* (#:key outputs #:allow-other-keys)
4036 (substitute* "Makefile"
4039 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4041 (add-before 'install 'make-install-directory
4042 ;; The install directory is not created during 'make install'.
4043 (lambda* (#:key outputs #:allow-other-keys)
4044 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4046 (add-after 'install 'wrap-programs
4047 (lambda* (#:key inputs outputs #:allow-other-keys)
4048 (let* ((path (getenv "PATH"))
4049 (out (assoc-ref outputs "out"))
4050 (binary (string-append out "/bin/proteinortho5.pl")))
4051 (wrap-program binary `("PATH" ":" prefix (,path))))
4055 ("python" ,python-2)
4056 ("blast+" ,blast+)))
4057 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4058 (synopsis "Detect orthologous genes across species")
4060 "Proteinortho is a tool to detect orthologous genes across different
4061 species. For doing so, it compares similarities of given gene sequences and
4062 clusters them to find significant groups. The algorithm was designed to handle
4063 large-scale data and can be applied to hundreds of species at once.")
4064 (license license:gpl2+)))
4066 (define-public pyicoteo
4073 (uri (string-append "https://bitbucket.org/regulatorygenomicsupf/"
4074 "pyicoteo/get/v" version ".tar.bz2"))
4075 (file-name (string-append name "-" version ".tar.bz2"))
4078 "0d6087f29xp8wxwlj111c3sylli98n0l8ry58c51ixzq0zfm50wa"))))
4079 (build-system python-build-system)
4081 `(#:python ,python-2 ; does not work with Python 3
4082 #:tests? #f)) ; there are no tests
4084 `(("python2-matplotlib" ,python2-matplotlib)))
4085 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4086 (synopsis "Analyze high-throughput genetic sequencing data")
4088 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4089 sequencing data. It works with genomic coordinates. There are currently six
4090 different command-line tools:
4093 @item pyicoregion: for generating exploratory regions automatically;
4094 @item pyicoenrich: for differential enrichment between two conditions;
4095 @item pyicoclip: for calling CLIP-Seq peaks without a control;
4096 @item pyicos: for genomic coordinates manipulation;
4097 @item pyicoller: for peak calling on punctuated ChIP-Seq;
4098 @item pyicount: to count how many reads from N experiment files overlap in a
4100 @item pyicotrocol: to combine operations from pyicoteo.
4102 (license license:gpl3+)))
4104 (define-public prodigal
4111 "https://github.com/hyattpd/Prodigal/archive/v"
4113 (file-name (string-append name "-" version ".tar.gz"))
4116 "17srxkqd3jc77xk15pfbgg1a9xahqg7337w95mrsia7mpza4l2c9"))))
4117 (build-system gnu-build-system)
4119 `(#:tests? #f ;no check target
4120 #:make-flags (list (string-append "INSTALLDIR="
4121 (assoc-ref %outputs "out")
4124 (modify-phases %standard-phases
4125 (delete 'configure))))
4126 (home-page "http://prodigal.ornl.gov")
4127 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
4129 "Prodigal runs smoothly on finished genomes, draft genomes, and
4130 metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
4131 format. It runs quickly, in an unsupervised fashion, handles gaps, handles
4132 partial genes, and identifies translation initiation sites.")
4133 (license license:gpl3+)))
4135 (define-public roary
4143 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
4147 "03dfr2cd5fp80bcr65923zpdzrasvcxl7c2vgh8373v25a1yfap7"))))
4148 (build-system perl-build-system)
4151 (modify-phases %standard-phases
4156 ;; The tests are not run by default, so we run each test file
4158 (setenv "PATH" (string-append (getcwd) "/bin" ":"
4160 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
4161 (getenv "PERL5LIB")))
4162 (zero? (length (filter (lambda (file)
4163 (display file)(display "\n")
4164 (not (zero? (system* "perl" file))))
4165 (find-files "t" ".*\\.t$"))))))
4167 ;; There is no 'install' target in the Makefile.
4168 (lambda* (#:key outputs #:allow-other-keys)
4169 (let* ((out (assoc-ref outputs "out"))
4170 (bin (string-append out "/bin"))
4171 (perl (string-append out "/lib/perl5/site_perl"))
4172 (roary-plots "contrib/roary_plots"))
4175 (copy-recursively "bin" bin)
4176 (copy-recursively "lib" perl)
4178 (add-after 'install 'wrap-programs
4179 (lambda* (#:key inputs outputs #:allow-other-keys)
4180 (let* ((out (assoc-ref outputs "out"))
4181 (perl5lib (getenv "PERL5LIB"))
4182 (path (getenv "PATH")))
4183 (for-each (lambda (prog)
4184 (let ((binary (string-append out "/" prog)))
4185 (wrap-program binary
4186 `("PERL5LIB" ":" prefix
4187 (,(string-append perl5lib ":" out
4188 "/lib/perl5/site_perl"))))
4189 (wrap-program binary
4191 (,(string-append path ":" out "/bin"))))))
4192 (find-files "bin" ".*[^R]$"))
4194 (string-append out "/bin/roary-create_pan_genome_plots.R"))
4195 (r-site-lib (getenv "R_LIBS_SITE"))
4197 (string-append (assoc-ref inputs "coreutils") "/bin")))
4199 `("R_LIBS_SITE" ":" prefix
4200 (,(string-append r-site-lib ":" out "/site-library/"))))
4203 (,(string-append coreutils-path ":" out "/bin"))))))
4206 `(("perl-env-path" ,perl-env-path)
4207 ("perl-test-files" ,perl-test-files)
4208 ("perl-test-most" ,perl-test-most)
4209 ("perl-test-output" ,perl-test-output)))
4211 `(("perl-array-utils" ,perl-array-utils)
4212 ("bioperl" ,bioperl-minimal)
4213 ("perl-exception-class" ,perl-exception-class)
4214 ("perl-file-find-rule" ,perl-file-find-rule)
4215 ("perl-file-grep" ,perl-file-grep)
4216 ("perl-file-slurper" ,perl-file-slurper)
4217 ("perl-file-which" ,perl-file-which)
4218 ("perl-graph" ,perl-graph)
4219 ("perl-graph-readwrite" ,perl-graph-readwrite)
4220 ("perl-log-log4perl" ,perl-log-log4perl)
4221 ("perl-moose" ,perl-moose)
4222 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
4223 ("perl-text-csv" ,perl-text-csv)
4224 ("bedtools" ,bedtools)
4228 ("parallel" ,parallel)
4231 ("fasttree" ,fasttree)
4235 ("r-minimal" ,r-minimal)
4236 ("r-ggplot2" ,r-ggplot2)
4237 ("coreutils" ,coreutils)))
4238 (home-page "http://sanger-pathogens.github.io/Roary")
4239 (synopsis "High speed stand-alone pan genome pipeline")
4241 "Roary is a high speed stand alone pan genome pipeline, which takes
4242 annotated assemblies in GFF3 format (produced by the Prokka program) and
4243 calculates the pan genome. Using a standard desktop PC, it can analyse
4244 datasets with thousands of samples, without compromising the quality of the
4245 results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
4246 single processor. Roary is not intended for metagenomics or for comparing
4247 extremely diverse sets of genomes.")
4248 (license license:gpl3)))
4250 (define-public raxml
4259 "https://github.com/stamatak/standard-RAxML/archive/v"
4261 (file-name (string-append name "-" version ".tar.gz"))
4264 "13s7aspfdcfr6asynwdg1x6vznys6pzap5f8wsffbnnwpkkg9ya8"))))
4265 (build-system gnu-build-system)
4267 `(#:tests? #f ; There are no tests.
4268 ;; Use 'standard' Makefile rather than SSE or AVX ones.
4269 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
4271 (modify-phases %standard-phases
4274 (lambda* (#:key outputs #:allow-other-keys)
4275 (let* ((out (assoc-ref outputs "out"))
4276 (bin (string-append out "/bin"))
4277 (executable "raxmlHPC-HYBRID"))
4278 (install-file executable bin)
4279 (symlink (string-append bin "/" executable) "raxml"))
4282 `(("openmpi" ,openmpi)))
4283 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
4284 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
4286 "RAxML is a tool for phylogenetic analysis and post-analysis of large
4288 (license license:gpl2+)))
4298 (string-append "http://deweylab.biostat.wisc.edu/rsem/src/rsem-"
4301 (base32 "0nzdc0j0hjllhsd5f2xli95dafm3nawskigs140xzvjk67xh0r9q"))
4302 (patches (search-patches "rsem-makefile.patch"))
4303 (modules '((guix build utils)))
4306 ;; remove bundled copy of boost
4307 (delete-file-recursively "boost")
4309 (build-system gnu-build-system)
4311 `(#:tests? #f ;no "check" target
4313 (modify-phases %standard-phases
4314 ;; No "configure" script.
4315 ;; Do not build bundled samtools library.
4318 (substitute* "Makefile"
4319 (("^all : sam/libbam.a") "all : "))
4322 (lambda* (#:key outputs #:allow-other-keys)
4323 (let* ((out (string-append (assoc-ref outputs "out")))
4324 (bin (string-append out "/bin/"))
4325 (perl (string-append out "/lib/perl5/site_perl")))
4328 (for-each (lambda (file)
4329 (install-file file bin))
4330 (find-files "." "rsem-.*"))
4331 (install-file "rsem_perl_utils.pm" perl))
4334 'install 'wrap-program
4335 (lambda* (#:key outputs #:allow-other-keys)
4336 (let ((out (assoc-ref outputs "out")))
4337 (for-each (lambda (prog)
4338 (wrap-program (string-append out "/bin/" prog)
4339 `("PERL5LIB" ":" prefix
4340 (,(string-append out "/lib/perl5/site_perl")))))
4341 '("rsem-plot-transcript-wiggles"
4342 "rsem-calculate-expression"
4343 "rsem-generate-ngvector"
4345 "rsem-prepare-reference")))
4349 ("ncurses" ,ncurses)
4350 ("r-minimal" ,r-minimal)
4352 ("samtools" ,samtools-0.1)
4354 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
4355 (synopsis "Estimate gene expression levels from RNA-Seq data")
4357 "RSEM is a software package for estimating gene and isoform expression
4358 levels from RNA-Seq data. The RSEM package provides a user-friendly
4359 interface, supports threads for parallel computation of the EM algorithm,
4360 single-end and paired-end read data, quality scores, variable-length reads and
4361 RSPD estimation. In addition, it provides posterior mean and 95% credibility
4362 interval estimates for expression levels. For visualization, it can generate
4363 BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
4364 (license license:gpl3+)))
4366 (define-public rseqc
4374 (string-append "mirror://sourceforge/rseqc/"
4375 "RSeQC-" version ".tar.gz"))
4377 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
4378 (modules '((guix build utils)))
4381 ;; remove bundled copy of pysam
4382 (delete-file-recursively "lib/pysam")
4383 (substitute* "setup.py"
4384 ;; remove dependency on outdated "distribute" module
4385 (("^from distribute_setup import use_setuptools") "")
4386 (("^use_setuptools\\(\\)") "")
4387 ;; do not use bundled copy of pysam
4388 (("^have_pysam = False") "have_pysam = True"))))))
4389 (build-system python-build-system)
4390 (arguments `(#:python ,python-2))
4392 `(("python-cython" ,python2-cython)
4393 ("python-pysam" ,python2-pysam)
4394 ("python-numpy" ,python2-numpy)
4397 `(("python-nose" ,python2-nose)))
4398 (home-page "http://rseqc.sourceforge.net/")
4399 (synopsis "RNA-seq quality control package")
4401 "RSeQC provides a number of modules that can comprehensively evaluate
4402 high throughput sequence data, especially RNA-seq data. Some basic modules
4403 inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
4404 while RNA-seq specific modules evaluate sequencing saturation, mapped reads
4405 distribution, coverage uniformity, strand specificity, etc.")
4406 (license license:gpl3+)))
4409 ;; There are no release tarballs. According to the installation
4410 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
4411 ;; stable release is identified by this changeset ID.
4412 (let ((changeset "2329130")
4416 (version (string-append "0-" revision "." changeset))
4420 (url "https://bitbucket.org/libsleipnir/sleipnir")
4421 (changeset changeset)))
4424 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
4425 (build-system gnu-build-system)
4427 `(#:modules ((srfi srfi-1)
4428 (guix build gnu-build-system)
4431 (let ((dirs '("SeekMiner"
4437 (modify-phases %standard-phases
4438 (add-before 'configure 'bootstrap
4440 (zero? (system* "bash" "gen_auto"))))
4441 (add-after 'build 'build-additional-tools
4442 (lambda* (#:key make-flags #:allow-other-keys)
4443 (every (lambda (dir)
4444 (with-directory-excursion (string-append "tools/" dir)
4445 (zero? (apply system* "make" make-flags))))
4447 (add-after 'install 'install-additional-tools
4448 (lambda* (#:key make-flags #:allow-other-keys)
4449 (fold (lambda (dir result)
4450 (with-directory-excursion (string-append "tools/" dir)
4452 (zero? (apply system*
4453 `("make" ,@make-flags "install"))))))
4459 ("readline" ,readline)
4460 ("gengetopt" ,gengetopt)
4461 ("log4cpp" ,log4cpp)))
4463 `(("autoconf" ,autoconf)
4464 ("automake" ,automake)
4466 (home-page "http://seek.princeton.edu")
4467 (synopsis "Gene co-expression search engine")
4469 "SEEK is a computational gene co-expression search engine. SEEK provides
4470 biologists with a way to navigate the massive human expression compendium that
4471 now contains thousands of expression datasets. SEEK returns a robust ranking
4472 of co-expressed genes in the biological area of interest defined by the user's
4473 query genes. It also prioritizes thousands of expression datasets according
4474 to the user's query of interest.")
4475 (license license:cc-by3.0))))
4477 (define-public samtools
4485 (string-append "mirror://sourceforge/samtools/samtools/"
4486 version "/samtools-" version ".tar.bz2"))
4489 "0znnnxc467jbf1as2dpskrjhfh8mbll760j6w6rdkwlwbqsp8gbc"))))
4490 (build-system gnu-build-system)
4492 `(#:modules ((ice-9 ftw)
4494 (guix build gnu-build-system)
4496 #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
4497 #:configure-flags (list "--with-ncurses")
4500 'unpack 'patch-tests
4502 (substitute* "test/test.pl"
4503 ;; The test script calls out to /bin/bash
4504 (("/bin/bash") (which "bash")))
4507 'install 'install-library
4508 (lambda* (#:key outputs #:allow-other-keys)
4509 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
4510 (install-file "libbam.a" lib)
4513 'install 'install-headers
4514 (lambda* (#:key outputs #:allow-other-keys)
4515 (let ((include (string-append (assoc-ref outputs "out")
4516 "/include/samtools/")))
4517 (for-each (lambda (file)
4518 (install-file file include))
4519 (scandir "." (lambda (name) (string-match "\\.h$" name))))
4521 %standard-phases)))))
4522 (native-inputs `(("pkg-config" ,pkg-config)))
4523 (inputs `(("ncurses" ,ncurses)
4527 (home-page "http://samtools.sourceforge.net")
4528 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
4530 "Samtools implements various utilities for post-processing nucleotide
4531 sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
4532 variant calling (in conjunction with bcftools), and a simple alignment
4534 (license license:expat)))
4536 (define-public samtools-0.1
4537 ;; This is the most recent version of the 0.1 line of samtools. The input
4538 ;; and output formats differ greatly from that used and produced by samtools
4539 ;; 1.x and is still used in many bioinformatics pipelines.
4540 (package (inherit samtools)
4546 (string-append "mirror://sourceforge/samtools/samtools/"
4547 version "/samtools-" version ".tar.bz2"))
4549 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
4551 `(#:tests? #f ;no "check" target
4552 ,@(substitute-keyword-arguments (package-arguments samtools)
4553 ((#:make-flags flags)
4554 `(cons "LIBCURSES=-lncurses" ,flags))
4556 `(modify-phases ,phases
4558 (lambda* (#:key outputs #:allow-other-keys)
4559 (let ((bin (string-append
4560 (assoc-ref outputs "out") "/bin")))
4562 (install-file "samtools" bin)
4564 (delete 'patch-tests)
4565 (delete 'configure))))))))
4567 (define-public mosaik
4568 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
4573 ;; There are no release tarballs nor tags.
4576 (url "https://github.com/wanpinglee/MOSAIK.git")
4578 (file-name (string-append name "-" version))
4581 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
4582 (build-system gnu-build-system)
4584 `(#:tests? #f ; no tests
4585 #:make-flags (list "CC=gcc")
4587 (modify-phases %standard-phases
4589 (lambda _ (chdir "src") #t))
4591 (lambda* (#:key outputs #:allow-other-keys)
4592 (let ((bin (string-append (assoc-ref outputs "out")
4595 (copy-recursively "../bin" bin)
4600 (supported-systems '("x86_64-linux"))
4601 (home-page "https://github.com/wanpinglee/MOSAIK")
4602 (synopsis "Map nucleotide sequence reads to reference genomes")
4604 "MOSAIK is a program for mapping second and third-generation sequencing
4605 reads to a reference genome. MOSAIK can align reads generated by all the
4606 major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
4607 Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
4608 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
4609 ;; code released into the public domain:
4610 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
4611 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
4612 (license (list license:gpl2+ license:public-domain)))))
4614 (define-public ngs-sdk
4622 (string-append "https://github.com/ncbi/ngs/archive/"
4624 (file-name (string-append name "-" version ".tar.gz"))
4627 "1wiyf4c6nm2j87pv015cbi0qny5byf3pbvcw3likifz5dl56ag40"))))
4628 (build-system gnu-build-system)
4630 `(#:parallel-build? #f ; not supported
4631 #:tests? #f ; no "check" target
4635 (lambda* (#:key outputs #:allow-other-keys)
4636 (let ((out (assoc-ref outputs "out")))
4637 ;; The 'configure' script doesn't recognize things like
4638 ;; '--enable-fast-install'.
4639 (zero? (system* "./configure"
4640 (string-append "--build-prefix=" (getcwd) "/build")
4641 (string-append "--prefix=" out)))))
4644 (lambda _ (chdir "ngs-sdk") #t)
4645 %standard-phases))))
4646 (native-inputs `(("perl" ,perl)))
4647 ;; According to the test
4648 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
4649 ;; in ngs-sdk/setup/konfigure.perl
4650 (supported-systems '("i686-linux" "x86_64-linux"))
4651 (home-page "https://github.com/ncbi/ngs")
4652 (synopsis "API for accessing Next Generation Sequencing data")
4654 "NGS is a domain-specific API for accessing reads, alignments and pileups
4655 produced from Next Generation Sequencing. The API itself is independent from
4656 any particular back-end implementation, and supports use of multiple back-ends
4658 (license license:public-domain)))
4660 (define-public java-ngs
4661 (package (inherit ngs-sdk)
4664 `(,@(substitute-keyword-arguments
4665 `(#:modules ((guix build gnu-build-system)
4669 ,@(package-arguments ngs-sdk))
4671 `(modify-phases ,phases
4672 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
4674 `(("jdk" ,icedtea "jdk")
4675 ("ngs-sdk" ,ngs-sdk)))
4676 (synopsis "Java bindings for NGS SDK")))
4678 (define-public ncbi-vdb
4686 (string-append "https://github.com/ncbi/ncbi-vdb/archive/"
4688 (file-name (string-append name "-" version ".tar.gz"))
4691 "1acn4bv81mfl137qnbn9995mjjhwd36pm0b7qli1iw5skrxa9j8m"))))
4692 (build-system gnu-build-system)
4694 `(#:parallel-build? #f ; not supported
4695 #:tests? #f ; no "check" target
4697 (modify-phases %standard-phases
4699 (lambda* (#:key inputs outputs #:allow-other-keys)
4700 (let ((out (assoc-ref outputs "out")))
4701 ;; Override include path for libmagic
4702 (substitute* "setup/package.prl"
4703 (("name => 'magic', Include => '/usr/include'")
4704 (string-append "name=> 'magic', Include => '"
4705 (assoc-ref inputs "libmagic")
4708 ;; Install kdf5 library (needed by sra-tools)
4709 (substitute* "build/Makefile.install"
4710 (("LIBRARIES_TO_INSTALL =")
4711 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
4713 (substitute* "build/Makefile.env"
4714 (("CFLAGS =" prefix)
4715 (string-append prefix "-msse2 ")))
4717 ;; Override search path for ngs-java
4718 (substitute* "setup/package.prl"
4719 (("/usr/local/ngs/ngs-java")
4720 (assoc-ref inputs "java-ngs")))
4722 ;; The 'configure' script doesn't recognize things like
4723 ;; '--enable-fast-install'.
4726 (string-append "--build-prefix=" (getcwd) "/build")
4727 (string-append "--prefix=" (assoc-ref outputs "out"))
4728 (string-append "--debug")
4729 (string-append "--with-xml2-prefix="
4730 (assoc-ref inputs "libxml2"))
4731 (string-append "--with-ngs-sdk-prefix="
4732 (assoc-ref inputs "ngs-sdk"))
4733 (string-append "--with-hdf5-prefix="
4734 (assoc-ref inputs "hdf5")))))))
4735 (add-after 'install 'install-interfaces
4736 (lambda* (#:key outputs #:allow-other-keys)
4737 ;; Install interface libraries. On i686 the interface libraries
4738 ;; are installed to "linux/gcc/i386", so we need to use the Linux
4739 ;; architecture name ("i386") instead of the target system prefix
4741 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
4742 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
4743 ,(system->linux-architecture
4744 (or (%current-target-system)
4747 (string-append (assoc-ref outputs "out")
4749 ;; Install interface headers
4750 (copy-recursively "interfaces"
4751 (string-append (assoc-ref outputs "out")
4754 ;; These files are needed by sra-tools.
4755 (add-after 'install 'install-configuration-files
4756 (lambda* (#:key outputs #:allow-other-keys)
4757 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
4759 (install-file "libs/kfg/default.kfg" target)
4760 (install-file "libs/kfg/certs.kfg" target))
4763 `(("libxml2" ,libxml2)
4764 ("ngs-sdk" ,ngs-sdk)
4765 ("java-ngs" ,java-ngs)
4768 (native-inputs `(("perl" ,perl)))
4769 ;; NCBI-VDB requires SSE capability.
4770 (supported-systems '("i686-linux" "x86_64-linux"))
4771 (home-page "https://github.com/ncbi/ncbi-vdb")
4772 (synopsis "Database engine for genetic information")
4774 "The NCBI-VDB library implements a highly compressed columnar data
4775 warehousing engine that is most often used to store genetic information.
4776 Databases are stored in a portable image within the file system, and can be
4777 accessed/downloaded on demand across HTTP.")
4778 (license license:public-domain)))
4780 (define-public plink
4788 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
4789 version "-src.zip"))
4791 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
4792 (patches (search-patches "plink-1.07-unclobber-i.patch"
4793 "plink-endian-detection.patch"))))
4794 (build-system gnu-build-system)
4796 '(#:tests? #f ;no "check" target
4797 #:make-flags (list (string-append "LIB_LAPACK="
4798 (assoc-ref %build-inputs "lapack")
4799 "/lib/liblapack.so")
4802 ;; disable phoning home
4805 (modify-phases %standard-phases
4806 ;; no "configure" script
4809 (lambda* (#:key outputs #:allow-other-keys)
4810 (let ((bin (string-append (assoc-ref outputs "out")
4812 (install-file "plink" bin)
4816 ("lapack" ,lapack)))
4818 `(("unzip" ,unzip)))
4819 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
4820 (synopsis "Whole genome association analysis toolset")
4822 "PLINK is a whole genome association analysis toolset, designed to
4823 perform a range of basic, large-scale analyses in a computationally efficient
4824 manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
4825 so there is no support for steps prior to this (e.g. study design and
4826 planning, generating genotype or CNV calls from raw data). Through
4827 integration with gPLINK and Haploview, there is some support for the
4828 subsequent visualization, annotation and storage of results.")
4829 ;; Code is released under GPLv2, except for fisher.h, which is under
4831 (license (list license:gpl2 license:lgpl2.1+))))
4833 (define-public smithlab-cpp
4834 (let ((revision "1")
4835 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
4837 (name "smithlab-cpp")
4838 (version (string-append "0." revision "." (string-take commit 7)))
4842 (url "https://github.com/smithlabcode/smithlab_cpp.git")
4844 (file-name (string-append name "-" version "-checkout"))
4847 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
4848 (build-system gnu-build-system)
4850 `(#:modules ((guix build gnu-build-system)
4853 #:tests? #f ;no "check" target
4855 (modify-phases %standard-phases
4856 (add-after 'unpack 'use-samtools-headers
4858 (substitute* '("SAM.cpp"
4860 (("sam.h") "samtools/sam.h"))
4863 (lambda* (#:key outputs #:allow-other-keys)
4864 (let* ((out (assoc-ref outputs "out"))
4865 (lib (string-append out "/lib"))
4866 (include (string-append out "/include/smithlab-cpp")))
4869 (for-each (cut install-file <> lib)
4870 (find-files "." "\\.o$"))
4871 (for-each (cut install-file <> include)
4872 (find-files "." "\\.hpp$")))
4874 (delete 'configure))))
4876 `(("samtools" ,samtools-0.1)
4878 (home-page "https://github.com/smithlabcode/smithlab_cpp")
4879 (synopsis "C++ helper library for functions used in Smith lab projects")
4881 "Smithlab CPP is a C++ library that includes functions used in many of
4882 the Smith lab bioinformatics projects, such as a wrapper around Samtools data
4883 structures, classes for genomic regions, mapped sequencing reads, etc.")
4884 (license license:gpl3+))))
4886 (define-public preseq
4892 (uri (string-append "https://github.com/smithlabcode/"
4893 "preseq/archive/v" version ".tar.gz"))
4894 (file-name (string-append name "-" version ".tar.gz"))
4896 (base32 "08r684l50pnxjpvmhzjgqq56yv9rfw90k8vx0nsrnrzk8mf9hsdq"))
4897 (modules '((guix build utils)))
4899 ;; Remove bundled samtools.
4900 '(delete-file-recursively "samtools"))))
4901 (build-system gnu-build-system)
4903 `(#:tests? #f ;no "check" target
4905 (modify-phases %standard-phases
4906 (delete 'configure))
4908 (list (string-append "PREFIX="
4909 (assoc-ref %outputs "out"))
4910 (string-append "LIBBAM="
4911 (assoc-ref %build-inputs "samtools")
4913 (string-append "SMITHLAB_CPP="
4914 (assoc-ref %build-inputs "smithlab-cpp")
4917 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
4920 ("samtools" ,samtools-0.1)
4921 ("smithlab-cpp" ,smithlab-cpp)
4923 (home-page "http://smithlabresearch.org/software/preseq/")
4924 (synopsis "Program for analyzing library complexity")
4926 "The preseq package is aimed at predicting and estimating the complexity
4927 of a genomic sequencing library, equivalent to predicting and estimating the
4928 number of redundant reads from a given sequencing depth and how many will be
4929 expected from additional sequencing using an initial sequencing experiment.
4930 The estimates can then be used to examine the utility of further sequencing,
4931 optimize the sequencing depth, or to screen multiple libraries to avoid low
4932 complexity samples.")
4933 (license license:gpl3+)))
4935 (define-public python-screed
4937 (name "python-screed")
4942 (uri (pypi-uri "screed" version))
4945 "18czszp9fkx3j6jr7y5kp6dfialscgddk05mw1zkhh2zhn0jd8i0"))))
4946 (build-system python-build-system)
4949 (modify-phases %standard-phases
4952 (setenv "PYTHONPATH"
4953 (string-append (getenv "PYTHONPATH") ":."))
4954 (zero? (system* "nosetests" "--attr" "!known_failing")))))))
4956 `(("python-nose" ,python-nose)))
4958 `(("python-bz2file" ,python-bz2file)))
4959 (home-page "https://github.com/dib-lab/screed/")
4960 (synopsis "Short read sequence database utilities")
4961 (description "Screed parses FASTA and FASTQ files and generates databases.
4962 Values such as sequence name, sequence description, sequence quality and the
4963 sequence itself can be retrieved from these databases.")
4964 (license license:bsd-3)))
4966 (define-public python2-screed
4967 (package-with-python2 python-screed))
4969 (define-public sra-tools
4977 (string-append "https://github.com/ncbi/sra-tools/archive/"
4979 (file-name (string-append name "-" version ".tar.gz"))
4982 "1camsijmvv2s45mb4iyf44ghl4gkd4rl0viphpcgl3ccchy32a0g"))))
4983 (build-system gnu-build-system)
4985 `(#:parallel-build? #f ; not supported
4986 #:tests? #f ; no "check" target
4988 (list (string-append "DEFAULT_CRT="
4989 (assoc-ref %build-inputs "ncbi-vdb")
4991 (string-append "DEFAULT_KFG="
4992 (assoc-ref %build-inputs "ncbi-vdb")
4994 (string-append "VDB_LIBDIR="
4995 (assoc-ref %build-inputs "ncbi-vdb")
4996 ,(if (string-prefix? "x86_64"
4997 (or (%current-target-system)
5002 (modify-phases %standard-phases
5004 (lambda* (#:key inputs outputs #:allow-other-keys)
5005 ;; The build system expects a directory containing the sources and
5006 ;; raw build output of ncbi-vdb, including files that are not
5007 ;; installed. Since we are building against an installed version of
5008 ;; ncbi-vdb, the following modifications are needed.
5009 (substitute* "setup/konfigure.perl"
5010 ;; Make the configure script look for the "ilib" directory of
5011 ;; "ncbi-vdb" without first checking for the existence of a
5012 ;; matching library in its "lib" directory.
5013 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
5014 "my $f = File::Spec->catdir($ilibdir, $ilib);")
5015 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
5016 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
5017 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
5020 (substitute* "tools/copycat/Makefile"
5021 (("smagic-static") "lmagic"))
5023 ;; The 'configure' script doesn't recognize things like
5024 ;; '--enable-fast-install'.
5027 (string-append "--build-prefix=" (getcwd) "/build")
5028 (string-append "--prefix=" (assoc-ref outputs "out"))
5029 (string-append "--debug")
5030 (string-append "--with-fuse-prefix="
5031 (assoc-ref inputs "fuse"))
5032 (string-append "--with-magic-prefix="
5033 (assoc-ref inputs "libmagic"))
5034 ;; TODO: building with libxml2 fails with linker errors
5035 ;; (string-append "--with-xml2-prefix="
5036 ;; (assoc-ref inputs "libxml2"))
5037 (string-append "--with-ncbi-vdb-sources="
5038 (assoc-ref inputs "ncbi-vdb"))
5039 (string-append "--with-ncbi-vdb-build="
5040 (assoc-ref inputs "ncbi-vdb"))
5041 (string-append "--with-ngs-sdk-prefix="
5042 (assoc-ref inputs "ngs-sdk"))
5043 (string-append "--with-hdf5-prefix="
5044 (assoc-ref inputs "hdf5"))))))
5045 ;; This version of sra-tools fails to build with glibc because of a
5046 ;; naming conflict. glibc-2.25/include/bits/mathcalls.h already
5047 ;; contains a definition of "canonicalize", so we rename it.
5049 ;; See upstream bug report:
5050 ;; https://github.com/ncbi/sra-tools/issues/67
5051 (add-after 'unpack 'patch-away-glibc-conflict
5053 (substitute* "tools/bam-loader/bam.c"
5054 (("canonicalize\\(" line)
5055 (string-append "sra_tools_" line)))
5057 (native-inputs `(("perl" ,perl)))
5059 `(("ngs-sdk" ,ngs-sdk)
5060 ("ncbi-vdb" ,ncbi-vdb)
5065 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
5066 (synopsis "Tools and libraries for reading and writing sequencing data")
5068 "The SRA Toolkit from NCBI is a collection of tools and libraries for
5069 reading of sequencing files from the Sequence Read Archive (SRA) database and
5070 writing files into the .sra format.")
5071 (license license:public-domain)))
5073 (define-public seqan
5079 (uri (string-append "http://packages.seqan.de/seqan-library/"
5080 "seqan-library-" version ".tar.bz2"))
5083 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
5084 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
5085 ;; makes sense to split the outputs.
5086 (outputs '("out" "doc"))
5087 (build-system trivial-build-system)
5089 `(#:modules ((guix build utils))
5092 (use-modules (guix build utils))
5093 (let ((tar (assoc-ref %build-inputs "tar"))
5094 (bzip (assoc-ref %build-inputs "bzip2"))
5095 (out (assoc-ref %outputs "out"))
5096 (doc (assoc-ref %outputs "doc")))
5097 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
5098 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
5099 (chdir (string-append "seqan-library-" ,version))
5100 (copy-recursively "include" (string-append out "/include"))
5101 (copy-recursively "share" (string-append doc "/share"))))))
5103 `(("source" ,source)
5106 (home-page "http://www.seqan.de")
5107 (synopsis "Library for nucleotide sequence analysis")
5109 "SeqAn is a C++ library of efficient algorithms and data structures for
5110 the analysis of sequences with the focus on biological data. It contains
5111 algorithms and data structures for string representation and their
5112 manipulation, online and indexed string search, efficient I/O of
5113 bioinformatics file formats, sequence alignment, and more.")
5114 (license license:bsd-3)))
5116 (define-public seqmagick
5124 "https://pypi.python.org/packages/source/s/seqmagick/seqmagick-"
5128 "0cgn477n74gsl4qdaakrrhi953kcsd4q3ivk2lr18x74s3g4ma1d"))))
5129 (build-system python-build-system)
5131 ;; python2 only, see https://github.com/fhcrc/seqmagick/issues/56
5132 `(#:python ,python-2
5134 (modify-phases %standard-phases
5135 ;; Current test in setup.py does not work as of 0.6.1,
5136 ;; so use nose to run tests instead for now. See
5137 ;; https://github.com/fhcrc/seqmagick/issues/55
5138 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
5140 ;; biopython-1.66 is required due to
5141 ;; https://github.com/fhcrc/seqmagick/issues/59
5142 ;; When that issue is resolved the 'python2-biopython-1.66' package
5143 ;; should be removed.
5144 `(("python-biopython" ,python2-biopython-1.66)))
5146 `(("python-nose" ,python2-nose)))
5147 (home-page "https://github.com/fhcrc/seqmagick")
5148 (synopsis "Tools for converting and modifying sequence files")
5150 "Bioinformaticians often have to convert sequence files between formats
5151 and do little manipulations on them, and it's not worth writing scripts for
5152 that. Seqmagick is a utility to expose the file format conversion in
5153 BioPython in a convenient way. Instead of having a big mess of scripts, there
5154 is one that takes arguments.")
5155 (license license:gpl3)))
5157 (define-public seqtk
5164 "https://github.com/lh3/seqtk/archive/v"
5166 (file-name (string-append name "-" version ".tar.gz"))
5169 "0ywdyzpmfiz2wp6ampbzqg4y8bj450nfgqarpamg045b8mk32lxx"))
5170 (modules '((guix build utils)))
5173 ;; Remove extraneous header files, as is done in the seqtk
5175 (for-each (lambda (file) (delete-file file))
5176 (list "ksort.h" "kstring.h" "kvec.h"))
5178 (build-system gnu-build-system)
5181 (modify-phases %standard-phases
5184 ;; There are no tests, so we just run a sanity check.
5185 (lambda _ (zero? (system* "./seqtk" "seq"))))
5187 (lambda* (#:key outputs #:allow-other-keys)
5188 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5189 (install-file "seqtk" bin)))))))
5192 (home-page "https://github.com/lh3/seqtk")
5193 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
5195 "Seqtk is a fast and lightweight tool for processing sequences in the
5196 FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
5197 optionally compressed by gzip.")
5198 (license license:expat)))
5200 (define-public snap-aligner
5202 (name "snap-aligner")
5203 (version "1.0beta.18")
5207 "https://github.com/amplab/snap/archive/v"
5209 (file-name (string-append name "-" version ".tar.gz"))
5212 "1vnsjwv007k1fl1q7d681kbwn6bc66cgw6h16hym6gvyy71qv2ly"))))
5213 (build-system gnu-build-system)
5216 (modify-phases %standard-phases
5218 (replace 'check (lambda _ (zero? (system* "./unit_tests"))))
5220 (lambda* (#:key outputs #:allow-other-keys)
5221 (let* ((out (assoc-ref outputs "out"))
5222 (bin (string-append out "/bin")))
5223 (install-file "snap-aligner" bin)
5224 (install-file "SNAPCommand" bin)
5228 (home-page "http://snap.cs.berkeley.edu/")
5229 (synopsis "Short read DNA sequence aligner")
5231 "SNAP is a fast and accurate aligner for short DNA reads. It is
5232 optimized for modern read lengths of 100 bases or higher, and takes advantage
5233 of these reads to align data quickly through a hash-based indexing scheme.")
5234 ;; 32-bit systems are not supported by the unpatched code.
5235 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
5236 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
5237 ;; systems without a lot of memory cannot make good use of this program.
5238 (supported-systems '("x86_64-linux"))
5239 (license license:asl2.0)))
5241 (define-public sortmerna
5249 "https://github.com/biocore/sortmerna/archive/"
5251 (file-name (string-append name "-" version ".tar.gz"))
5254 "1ghaghvd82af9j5adavxh77g7hm247d1r69m3fbi6f1jdivj5ldk"))))
5255 (build-system gnu-build-system)
5256 (outputs '("out" ;for binaries
5257 "db")) ;for sequence databases
5260 (modify-phases %standard-phases
5262 (lambda* (#:key outputs #:allow-other-keys)
5263 (let* ((out (assoc-ref outputs "out"))
5264 (bin (string-append out "/bin"))
5265 (db (assoc-ref outputs "db"))
5267 (string-append db "/share/sortmerna/rRNA_databases")))
5268 (install-file "sortmerna" bin)
5269 (install-file "indexdb_rna" bin)
5270 (for-each (lambda (file)
5271 (install-file file share))
5272 (find-files "rRNA_databases" ".*fasta"))
5276 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
5277 (synopsis "Biological sequence analysis tool for NGS reads")
5279 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
5280 and operational taxonomic unit (OTU) picking of next generation
5281 sequencing (NGS) reads. The core algorithm is based on approximate seeds and
5282 allows for fast and sensitive analyses of nucleotide sequences. The main
5283 application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
5284 (license license:lgpl3)))
5292 (uri (string-append "https://github.com/alexdobin/STAR/archive/"
5294 (file-name (string-append name "-" version ".tar.gz"))
5297 "013wirlz8lllgjyagl48l75n1isxyabqb3sj7qlsl0x1rmvqw99a"))
5298 (modules '((guix build utils)))
5301 (substitute* "source/Makefile"
5303 ;; Remove pre-built binaries and bundled htslib sources.
5304 (delete-file-recursively "bin/MacOSX_x86_64")
5305 (delete-file-recursively "bin/Linux_x86_64")
5306 (delete-file-recursively "bin/Linux_x86_64_static")
5307 (delete-file-recursively "source/htslib")
5309 (build-system gnu-build-system)
5311 '(#:tests? #f ;no check target
5312 #:make-flags '("STAR")
5314 (modify-phases %standard-phases
5315 (add-after 'unpack 'enter-source-dir
5316 (lambda _ (chdir "source") #t))
5317 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
5319 (substitute* "Makefile"
5320 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
5322 (substitute* '("BAMfunctions.cpp"
5327 "bamRemoveDuplicates.cpp")
5328 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
5329 (string-append "#include <" header ">")))
5330 (substitute* "IncludeDefine.h"
5331 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
5332 (string-append "<" header ">")))
5335 (lambda* (#:key outputs #:allow-other-keys)
5336 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5337 (install-file "STAR" bin))
5339 (delete 'configure))))
5341 `(("vim" ,vim))) ; for xxd
5343 `(("htslib" ,htslib)
5345 (home-page "https://github.com/alexdobin/STAR")
5346 (synopsis "Universal RNA-seq aligner")
5348 "The Spliced Transcripts Alignment to a Reference (STAR) software is
5349 based on a previously undescribed RNA-seq alignment algorithm that uses
5350 sequential maximum mappable seed search in uncompressed suffix arrays followed
5351 by seed clustering and stitching procedure. In addition to unbiased de novo
5352 detection of canonical junctions, STAR can discover non-canonical splices and
5353 chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
5355 ;; Only 64-bit systems are supported according to the README.
5356 (supported-systems '("x86_64-linux" "mips64el-linux"))
5357 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
5358 (license license:gpl3+)))
5360 (define-public subread
5366 (uri (string-append "mirror://sourceforge/subread/subread-"
5367 version "/subread-" version "-source.tar.gz"))
5370 "0gn5zhbvllks0mmdg3qlmsbg91p2mpdc2wixwfqpi85yzfrh8hcy"))))
5371 (build-system gnu-build-system)
5373 `(#:tests? #f ;no "check" target
5374 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
5375 ;; optimizations by default, so we override these flags such that x86_64
5376 ;; flags are only added when the build target is an x86_64 system.
5378 (list (let ((system ,(or (%current-target-system)
5380 (flags '("-ggdb" "-fomit-frame-pointer"
5381 "-ffast-math" "-funroll-loops"
5382 "-fmessage-length=0"
5383 "-O9" "-Wall" "-DMAKE_FOR_EXON"
5385 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
5386 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
5387 (if (string-prefix? "x86_64" system)
5388 (string-append "CCFLAGS=" (string-join (append flags flags64)))
5389 (string-append "CCFLAGS=" (string-join flags))))
5390 "-f" "Makefile.Linux"
5391 "CC=gcc ${CCFLAGS}")
5395 (lambda _ (chdir "src") #t)
5398 (lambda* (#:key outputs #:allow-other-keys)
5399 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5401 (copy-recursively "../bin" bin)))
5402 ;; no "configure" script
5403 (alist-delete 'configure %standard-phases)))))
5404 (inputs `(("zlib" ,zlib)))
5405 (home-page "http://bioinf.wehi.edu.au/subread-package/")
5406 (synopsis "Tool kit for processing next-gen sequencing data")
5408 "The subread package contains the following tools: subread aligner, a
5409 general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
5410 and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
5411 features; exactSNP: a SNP caller that discovers SNPs by testing signals
5412 against local background noises.")
5413 (license license:gpl3+)))
5415 (define-public stringtie
5421 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
5422 "stringtie-" version ".tar.gz"))
5425 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
5426 (modules '((guix build utils)))
5429 (delete-file-recursively "samtools-0.1.18")
5431 (build-system gnu-build-system)
5433 `(#:tests? #f ;no test suite
5435 (modify-phases %standard-phases
5436 ;; no configure script
5438 (add-before 'build 'use-system-samtools
5440 (substitute* "Makefile"
5441 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
5443 (substitute* '("gclib/GBam.h"
5445 (("#include \"(bam|sam|kstring).h\"" _ header)
5446 (string-append "#include <samtools/" header ".h>")))
5448 (add-after 'unpack 'remove-duplicate-typedef
5450 ;; This typedef conflicts with the typedef in
5451 ;; glibc-2.25/include/bits/types.h
5452 (substitute* "gclib/GThreads.h"
5453 (("typedef long long __intmax_t;") ""))
5456 (lambda* (#:key outputs #:allow-other-keys)
5457 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
5458 (install-file "stringtie" bin)
5461 `(("samtools" ,samtools-0.1)
5463 (home-page "http://ccb.jhu.edu/software/stringtie/")
5464 (synopsis "Transcript assembly and quantification for RNA-Seq data")
5466 "StringTie is a fast and efficient assembler of RNA-Seq sequence
5467 alignments into potential transcripts. It uses a novel network flow algorithm
5468 as well as an optional de novo assembly step to assemble and quantitate
5469 full-length transcripts representing multiple splice variants for each gene
5470 locus. Its input can include not only the alignments of raw reads used by
5471 other transcript assemblers, but also alignments of longer sequences that have
5472 been assembled from those reads. To identify differentially expressed genes
5473 between experiments, StringTie's output can be processed either by the
5474 Cuffdiff or Ballgown programs.")
5475 (license license:artistic2.0)))
5477 (define-public taxtastic
5483 (uri (pypi-uri "taxtastic" version))
5486 "0s79z8kfl853x7l4h8ms05k31q87aw62nrchlk20w9n227j35929"))))
5487 (build-system python-build-system)
5489 `(#:python ,python-2
5491 (modify-phases %standard-phases
5494 (zero? (system* "python" "-m" "unittest" "discover" "-v")))))))
5496 `(("python-sqlalchemy" ,python2-sqlalchemy)
5497 ("python-decorator" ,python2-decorator)
5498 ("python-biopython" ,python2-biopython)
5499 ("python-pandas" ,python2-pandas)))
5500 (home-page "https://github.com/fhcrc/taxtastic")
5501 (synopsis "Tools for taxonomic naming and annotation")
5503 "Taxtastic is software written in python used to build and maintain
5504 reference packages i.e. collections of reference trees, reference alignments,
5505 profiles, and associated taxonomic information.")
5506 (license license:gpl3+)))
5508 (define-public vcftools
5515 "https://github.com/vcftools/vcftools/releases/download/v"
5516 version "/vcftools-" version ".tar.gz"))
5519 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
5520 (build-system gnu-build-system)
5522 `(#:tests? #f ; no "check" target
5524 "CFLAGS=-O2" ; override "-m64" flag
5525 (string-append "PREFIX=" (assoc-ref %outputs "out"))
5526 (string-append "MANDIR=" (assoc-ref %outputs "out")
5527 "/share/man/man1"))))
5529 `(("pkg-config" ,pkg-config)))
5533 (home-page "https://vcftools.github.io/")
5534 (synopsis "Tools for working with VCF files")
5536 "VCFtools is a program package designed for working with VCF files, such
5537 as those generated by the 1000 Genomes Project. The aim of VCFtools is to
5538 provide easily accessible methods for working with complex genetic variation
5539 data in the form of VCF files.")
5540 ;; The license is declared as LGPLv3 in the README and
5541 ;; at https://vcftools.github.io/license.html
5542 (license license:lgpl3)))
5544 (define-public infernal
5550 (uri (string-append "http://eddylab.org/software/infernal/"
5551 "infernal-" version ".tar.gz"))
5554 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
5555 (build-system gnu-build-system)
5557 `(("perl" ,perl))) ; for tests
5558 (home-page "http://eddylab.org/infernal/")
5559 (synopsis "Inference of RNA alignments")
5560 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
5561 searching DNA sequence databases for RNA structure and sequence similarities.
5562 It is an implementation of a special case of profile stochastic context-free
5563 grammars called @dfn{covariance models} (CMs). A CM is like a sequence
5564 profile, but it scores a combination of sequence consensus and RNA secondary
5565 structure consensus, so in many cases, it is more capable of identifying RNA
5566 homologs that conserve their secondary structure more than their primary
5568 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
5569 (supported-systems '("i686-linux" "x86_64-linux"))
5570 (license license:bsd-3)))
5572 (define-public r-centipede
5574 (name "r-centipede")
5578 (uri (string-append "http://download.r-forge.r-project.org/"
5579 "src/contrib/CENTIPEDE_" version ".tar.gz"))
5582 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
5583 (build-system r-build-system)
5584 (home-page "http://centipede.uchicago.edu/")
5585 (synopsis "Predict transcription factor binding sites")
5587 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
5588 of the genome that are bound by particular transcription factors. It starts
5589 by identifying a set of candidate binding sites, and then aims to classify the
5590 sites according to whether each site is bound or not bound by a transcription
5591 factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
5592 between two different types of motif instances using as much relevant
5593 information as possible.")
5594 (license (list license:gpl2+ license:gpl3+))))
5596 (define-public r-vegan
5603 (uri (cran-uri "vegan" version))
5606 "15zcxfix2d854897k1lr0sfmj2n00339nlsppcr3zrb238lb2mi5"))))
5607 (build-system r-build-system)
5609 `(("gfortran" ,gfortran)
5610 ("r-knitr" ,r-knitr)))
5612 `(("r-cluster" ,r-cluster)
5613 ("r-lattice" ,r-lattice)
5616 ("r-permute" ,r-permute)))
5617 (home-page "https://cran.r-project.org/web/packages/vegan")
5618 (synopsis "Functions for community ecology")
5620 "The vegan package provides tools for descriptive community ecology. It
5621 has most basic functions of diversity analysis, community ordination and
5622 dissimilarity analysis. Most of its multivariate tools can be used for other
5623 data types as well.")
5624 (license license:gpl2+)))
5626 (define-public r-annotate
5633 (uri (bioconductor-uri "annotate" version))
5636 "03hmbvp3i6lvd307fqdg7akxi2qp322rlky3bzw0zccgm0i0221g"))))
5637 (build-system r-build-system)
5639 `(("r-annotationdbi" ,r-annotationdbi)
5640 ("r-biobase" ,r-biobase)
5641 ("r-biocgenerics" ,r-biocgenerics)
5643 ("r-rcurl" ,r-rcurl)
5645 ("r-xtable" ,r-xtable)))
5647 "http://bioconductor.org/packages/annotate")
5648 (synopsis "Annotation for microarrays")
5649 (description "This package provides R environments for the annotation of
5651 (license license:artistic2.0)))
5653 (define-public r-geneplotter
5655 (name "r-geneplotter")
5660 (uri (bioconductor-uri "geneplotter" version))
5663 "0a0ajns21db5rrjl16bq6wawggsnxr00fg184pc38nmfghv4z4b6"))))
5664 (build-system r-build-system)
5666 `(("r-annotate" ,r-annotate)
5667 ("r-annotationdbi" ,r-annotationdbi)
5668 ("r-biobase" ,r-biobase)
5669 ("r-biocgenerics" ,r-biocgenerics)
5670 ("r-lattice" ,r-lattice)
5671 ("r-rcolorbrewer" ,r-rcolorbrewer)))
5672 (home-page "http://bioconductor.org/packages/geneplotter")
5673 (synopsis "Graphics functions for genomic data")
5675 "This package provides functions for plotting genomic data.")
5676 (license license:artistic2.0)))
5678 (define-public r-genefilter
5680 (name "r-genefilter")
5685 (uri (bioconductor-uri "genefilter" version))
5688 "0sf2hdi9nv6r83vn1y65m4jiba8pffddpj46d6yjn5rlsixplmqg"))))
5689 (build-system r-build-system)
5691 `(("gfortran" ,gfortran)))
5693 `(("r-annotate" ,r-annotate)
5694 ("r-annotationdbi" ,r-annotationdbi)
5695 ("r-biobase" ,r-biobase)
5696 ("r-s4vectors" ,r-s4vectors)
5697 ("r-survival" ,r-survival)))
5698 (home-page "http://bioconductor.org/packages/genefilter")
5699 (synopsis "Filter genes from high-throughput experiments")
5701 "This package provides basic functions for filtering genes from
5702 high-throughput sequencing experiments.")
5703 (license license:artistic2.0)))
5705 (define-public r-deseq2
5712 (uri (bioconductor-uri "DESeq2" version))
5715 "0m0apn3xi4kdkinsj4xkw5cwysicyjr6xxlxhpa4scyv589am1s5"))))
5716 (properties `((upstream-name . "DESeq2")))
5717 (build-system r-build-system)
5719 `(("r-biobase" ,r-biobase)
5720 ("r-biocgenerics" ,r-biocgenerics)
5721 ("r-biocparallel" ,r-biocparallel)
5722 ("r-genefilter" ,r-genefilter)
5723 ("r-geneplotter" ,r-geneplotter)
5724 ("r-genomicranges" ,r-genomicranges)
5725 ("r-ggplot2" ,r-ggplot2)
5726 ("r-hmisc" ,r-hmisc)
5727 ("r-iranges" ,r-iranges)
5728 ("r-locfit" ,r-locfit)
5730 ("r-rcpparmadillo" ,r-rcpparmadillo)
5731 ("r-s4vectors" ,r-s4vectors)
5732 ("r-summarizedexperiment" ,r-summarizedexperiment)))
5733 (home-page "http://bioconductor.org/packages/DESeq2")
5734 (synopsis "Differential gene expression analysis")
5736 "This package provides functions to estimate variance-mean dependence in
5737 count data from high-throughput nucleotide sequencing assays and test for
5738 differential expression based on a model using the negative binomial
5740 (license license:lgpl3+)))
5742 (define-public r-annotationforge
5744 (name "r-annotationforge")
5749 (uri (bioconductor-uri "AnnotationForge" version))
5752 "01kd86vvgpa4a5zivcy4g6z8rhcykasdskrz8yqsqz211sd1xsr3"))))
5754 `((upstream-name . "AnnotationForge")))
5755 (build-system r-build-system)
5757 `(("r-annotationdbi" ,r-annotationdbi)
5758 ("r-biobase" ,r-biobase)
5759 ("r-biocgenerics" ,r-biocgenerics)
5761 ("r-rcurl" ,r-rcurl)
5762 ("r-rsqlite" ,r-rsqlite)
5763 ("r-s4vectors" ,r-s4vectors)
5765 (home-page "http://bioconductor.org/packages/AnnotationForge")
5766 (synopsis "Code for building annotation database packages")
5768 "This package provides code for generating Annotation packages and their
5769 databases. Packages produced are intended to be used with AnnotationDbi.")
5770 (license license:artistic2.0)))
5772 (define-public r-rbgl
5779 (uri (bioconductor-uri "RBGL" version))
5782 "11db6kvz453ypj9ds3xpjqzwrrjck84ijn4wlhkfyz2dzdgd5ryv"))))
5783 (properties `((upstream-name . "RBGL")))
5784 (build-system r-build-system)
5785 (propagated-inputs `(("r-graph" ,r-graph)))
5786 (home-page "http://www.bioconductor.org/packages/RBGL")
5787 (synopsis "Interface to the Boost graph library")
5789 "This package provides a fairly extensive and comprehensive interface to
5790 the graph algorithms contained in the Boost library.")
5791 (license license:artistic2.0)))
5793 (define-public r-gseabase
5800 (uri (bioconductor-uri "GSEABase" version))
5803 "1c6i6g4fj3b8wjyxyygr7i3v8sxrq1ffb2bbicya5ah2gdaclfad"))))
5804 (properties `((upstream-name . "GSEABase")))
5805 (build-system r-build-system)
5807 `(("r-annotate" ,r-annotate)
5808 ("r-annotationdbi" ,r-annotationdbi)
5809 ("r-biobase" ,r-biobase)
5810 ("r-biocgenerics" ,r-biocgenerics)
5811 ("r-graph" ,r-graph)
5813 (home-page "http://bioconductor.org/packages/GSEABase")
5814 (synopsis "Gene set enrichment data structures and methods")
5816 "This package provides classes and methods to support @dfn{Gene Set
5817 Enrichment Analysis} (GSEA).")
5818 (license license:artistic2.0)))
5820 (define-public r-category
5827 (uri (bioconductor-uri "Category" version))
5830 "0swcmihyjg0fhaaydl9hm24aj9zffw3bibza9y6sqs6jaqd97f09"))))
5831 (properties `((upstream-name . "Category")))
5832 (build-system r-build-system)
5834 `(("r-annotate" ,r-annotate)
5835 ("r-annotationdbi" ,r-annotationdbi)
5836 ("r-biobase" ,r-biobase)
5837 ("r-biocgenerics" ,r-biocgenerics)
5838 ("r-genefilter" ,r-genefilter)
5839 ("r-graph" ,r-graph)
5840 ("r-gseabase" ,r-gseabase)
5841 ("r-matrix" ,r-matrix)
5843 ("r-rsqlite" ,r-rsqlite)))
5844 (home-page "http://bioconductor.org/packages/Category")
5845 (synopsis "Category analysis")
5847 "This package provides a collection of tools for performing category
5849 (license license:artistic2.0)))
5851 (define-public r-gostats
5858 (uri (bioconductor-uri "GOstats" version))
5861 "0qvqjgfnd9ap4rikvyxa9p4dhcnccvkw8phzv88vghh6pq463d62"))))
5862 (properties `((upstream-name . "GOstats")))
5863 (build-system r-build-system)
5865 `(("r-annotate" ,r-annotate)
5866 ("r-annotationdbi" ,r-annotationdbi)
5867 ("r-annotationforge" ,r-annotationforge)
5868 ("r-biobase" ,r-biobase)
5869 ("r-category" ,r-category)
5870 ("r-go-db" ,r-go-db)
5871 ("r-graph" ,r-graph)
5872 ("r-rbgl" ,r-rbgl)))
5873 (home-page "http://bioconductor.org/packages/GOstats")
5874 (synopsis "Tools for manipulating GO and microarrays")
5876 "This package provides a set of tools for interacting with GO and
5877 microarray data. A variety of basic manipulation tools for graphs, hypothesis
5878 testing and other simple calculations.")
5879 (license license:artistic2.0)))
5881 (define-public r-shortread
5883 (name "r-shortread")
5888 (uri (bioconductor-uri "ShortRead" version))
5891 "0ayk3d5625ymb5g2gycq6banzqmyd642xrwjzhdshz2dwid7kly8"))))
5892 (properties `((upstream-name . "ShortRead")))
5893 (build-system r-build-system)
5897 `(("r-biobase" ,r-biobase)
5898 ("r-biocgenerics" ,r-biocgenerics)
5899 ("r-biocparallel" ,r-biocparallel)
5900 ("r-biostrings" ,r-biostrings)
5901 ("r-genomeinfodb" ,r-genomeinfodb)
5902 ("r-genomicalignments" ,r-genomicalignments)
5903 ("r-genomicranges" ,r-genomicranges)
5904 ("r-hwriter" ,r-hwriter)
5905 ("r-iranges" ,r-iranges)
5906 ("r-lattice" ,r-lattice)
5907 ("r-latticeextra" ,r-latticeextra)
5908 ("r-rsamtools" ,r-rsamtools)
5909 ("r-s4vectors" ,r-s4vectors)
5910 ("r-xvector" ,r-xvector)
5911 ("r-zlibbioc" ,r-zlibbioc)))
5912 (home-page "http://bioconductor.org/packages/ShortRead")
5913 (synopsis "FASTQ input and manipulation tools")
5915 "This package implements sampling, iteration, and input of FASTQ files.
5916 It includes functions for filtering and trimming reads, and for generating a
5917 quality assessment report. Data are represented as
5918 @code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
5919 purposes. The package also contains legacy support for early single-end,
5920 ungapped alignment formats.")
5921 (license license:artistic2.0)))
5923 (define-public r-systempiper
5925 (name "r-systempiper")
5930 (uri (bioconductor-uri "systemPipeR" version))
5933 "0c3m5rq63ypv15yca97yag5d4vgd7xj9by2a4sd8z0pcmpajz0hw"))))
5934 (properties `((upstream-name . "systemPipeR")))
5935 (build-system r-build-system)
5937 `(("r-annotate" ,r-annotate)
5938 ("r-batchjobs" ,r-batchjobs)
5939 ("r-biocgenerics" ,r-biocgenerics)
5940 ("r-biostrings" ,r-biostrings)
5941 ("r-deseq2" ,r-deseq2)
5942 ("r-edger" ,r-edger)
5943 ("r-genomicfeatures" ,r-genomicfeatures)
5944 ("r-genomicranges" ,r-genomicranges)
5945 ("r-ggplot2" ,r-ggplot2)
5946 ("r-go-db" ,r-go-db)
5947 ("r-gostats" ,r-gostats)
5948 ("r-limma" ,r-limma)
5949 ("r-pheatmap" ,r-pheatmap)
5950 ("r-rjson" ,r-rjson)
5951 ("r-rsamtools" ,r-rsamtools)
5952 ("r-shortread" ,r-shortread)
5953 ("r-summarizedexperiment" ,r-summarizedexperiment)
5954 ("r-variantannotation" ,r-variantannotation)))
5955 (home-page "https://github.com/tgirke/systemPipeR")
5956 (synopsis "Next generation sequencing workflow and reporting environment")
5958 "This R package provides tools for building and running automated
5959 end-to-end analysis workflows for a wide range of @dfn{next generation
5960 sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
5961 Important features include a uniform workflow interface across different NGS
5962 applications, automated report generation, and support for running both R and
5963 command-line software, such as NGS aligners or peak/variant callers, on local
5964 computers or compute clusters. Efficient handling of complex sample sets and
5965 experimental designs is facilitated by a consistently implemented sample
5966 annotation infrastructure.")
5967 (license license:artistic2.0)))
5969 (define-public r-grohmm
5976 (uri (bioconductor-uri "groHMM" version))
5979 "16k1kp4sbhh0vp7dzywafq52csq42ksqfrqfy4bdv1qbd7536dpd"))))
5980 (properties `((upstream-name . "groHMM")))
5981 (build-system r-build-system)
5983 `(("r-genomeinfodb" ,r-genomeinfodb)
5984 ("r-genomicalignments" ,r-genomicalignments)
5985 ("r-genomicranges" ,r-genomicranges)
5986 ("r-iranges" ,r-iranges)
5988 ("r-rtracklayer" ,r-rtracklayer)
5989 ("r-s4vectors" ,r-s4vectors)))
5990 (home-page "https://github.com/Kraus-Lab/groHMM")
5991 (synopsis "GRO-seq analysis pipeline")
5993 "This package provides a pipeline for the analysis of GRO-seq data.")
5994 (license license:gpl3+)))
5996 (define-public r-txdb-hsapiens-ucsc-hg19-knowngene
5998 (name "r-txdb-hsapiens-ucsc-hg19-knowngene")
6002 ;; We cannot use bioconductor-uri here because this tarball is
6003 ;; located under "data/annotation/" instead of "bioc/".
6004 (uri (string-append "http://bioconductor.org/packages/"
6005 "release/data/annotation/src/contrib"
6006 "/TxDb.Hsapiens.UCSC.hg19.knownGene_"
6010 "1sajhcqqwazgz2lqbik7rd935i7kpnh08zxbp2ra10j72yqy4g86"))))
6012 `((upstream-name . "TxDb.Hsapiens.UCSC.hg19.knownGene")))
6013 (build-system r-build-system)
6014 ;; As this package provides little more than a very large data file it
6015 ;; doesn't make sense to build substitutes.
6016 (arguments `(#:substitutable? #f))
6018 `(("r-genomicfeatures" ,r-genomicfeatures)))
6020 "http://bioconductor.org/packages/TxDb.Hsapiens.UCSC.hg19.knownGene/")
6021 (synopsis "Annotation package for human genome in TxDb format")
6023 "This package provides an annotation database of Homo sapiens genome
6024 data. It is derived from the UCSC hg19 genome and based on the \"knownGene\"
6025 track. The database is exposed as a @code{TxDb} object.")
6026 (license license:artistic2.0)))
6028 (define-public vsearch
6036 "https://github.com/torognes/vsearch/archive/v"
6038 (file-name (string-append name "-" version ".tar.gz"))
6041 "0hc110ycqpa54nr6x173qg7190hk08qp7yz7zzqxlsypqnpc5zzp"))
6042 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
6045 ;; Remove bundled cityhash sources. The vsearch source is adjusted
6046 ;; for this in the patch.
6047 (delete-file "src/city.h")
6048 (delete-file "src/citycrc.h")
6049 (delete-file "src/city.cc")
6051 (build-system gnu-build-system)
6054 (modify-phases %standard-phases
6055 (add-before 'configure 'autogen
6056 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
6060 ("cityhash" ,cityhash)))
6062 `(("autoconf" ,autoconf)
6063 ("automake" ,automake)))
6064 (synopsis "Sequence search tools for metagenomics")
6066 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
6067 dereplication, pairwise alignment, shuffling, subsampling, sorting and
6068 masking. The tool takes advantage of parallelism in the form of SIMD
6069 vectorization as well as multiple threads to perform accurate alignments at
6070 high speed. VSEARCH uses an optimal global aligner (full dynamic programming
6071 Needleman-Wunsch).")
6072 (home-page "https://github.com/torognes/vsearch")
6073 ;; vsearch uses non-portable SSE intrinsics so building fails on other
6075 (supported-systems '("x86_64-linux"))
6076 ;; Dual licensed; also includes public domain source.
6077 (license (list license:gpl3 license:bsd-2))))
6079 (define-public pardre
6082 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
6087 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
6091 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
6092 (build-system gnu-build-system)
6094 `(#:tests? #f ; no tests included
6096 (modify-phases %standard-phases
6099 (lambda* (#:key outputs #:allow-other-keys)
6100 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
6101 (install-file "ParDRe" bin)
6104 `(("openmpi" ,openmpi)
6106 (synopsis "Parallel tool to remove duplicate DNA reads")
6108 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
6109 Duplicate reads can be seen as identical or nearly identical sequences with
6110 some mismatches. This tool lets users avoid the analysis of unnecessary
6111 reads, reducing the time of subsequent procedures with the
6112 dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
6113 in order to exploit the parallel capabilities of multicore clusters. It is
6114 faster than multithreaded counterparts (end of 2015) for the same number of
6115 cores and, thanks to the message-passing technology, it can be executed on
6117 (home-page "https://sourceforge.net/projects/pardre/")
6118 (license license:gpl3+)))
6120 (define-public ruby-bio-kseq
6122 (name "ruby-bio-kseq")
6127 (uri (rubygems-uri "bio-kseq" version))
6130 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
6131 (build-system ruby-build-system)
6133 `(#:test-target "spec"))
6135 `(("bundler" ,bundler)
6136 ("ruby-rspec" ,ruby-rspec)
6137 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6140 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
6142 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
6143 FASTQ parsing code. It provides a fast iterator over sequences and their
6145 (home-page "https://github.com/gusevfe/bio-kseq")
6146 (license license:expat)))
6148 (define-public bio-locus
6155 (uri (rubygems-uri "bio-locus" version))
6158 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
6159 (build-system ruby-build-system)
6161 `(("ruby-rspec" ,ruby-rspec)))
6162 (synopsis "Tool for fast querying of genome locations")
6164 "Bio-locus is a tabix-like tool for fast querying of genome
6165 locations. Many file formats in bioinformatics contain records that
6166 start with a chromosome name and a position for a SNP, or a start-end
6167 position for indels. Bio-locus allows users to store this chr+pos or
6168 chr+pos+alt information in a database.")
6169 (home-page "https://github.com/pjotrp/bio-locus")
6170 (license license:expat)))
6172 (define-public bio-blastxmlparser
6174 (name "bio-blastxmlparser")
6178 (uri (rubygems-uri "bio-blastxmlparser" version))
6181 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
6182 (build-system ruby-build-system)
6184 `(("ruby-bio-logger" ,ruby-bio-logger)
6185 ("ruby-nokogiri" ,ruby-nokogiri)))
6187 `(("ruby-rspec" ,ruby-rspec)))
6188 (synopsis "Fast big data BLAST XML parser and library")
6190 "Very fast parallel big-data BLAST XML file parser which can be used as
6191 command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
6192 generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
6193 (home-page "https://github.com/pjotrp/blastxmlparser")
6194 (license license:expat)))
6196 (define-public bioruby
6203 (uri (rubygems-uri "bio" version))
6206 "0hdl0789c9n4mprnx5pgd46bfwl8d000rqpamj5h6kkjgspijv49"))))
6207 (build-system ruby-build-system)
6209 `(("ruby-libxml" ,ruby-libxml)))
6211 `(("which" ,which))) ; required for test phase
6214 (modify-phases %standard-phases
6215 (add-before 'build 'patch-test-command
6217 (substitute* '("test/functional/bio/test_command.rb")
6218 (("/bin/sh") (which "sh")))
6219 (substitute* '("test/functional/bio/test_command.rb")
6220 (("/bin/ls") (which "ls")))
6221 (substitute* '("test/functional/bio/test_command.rb")
6222 (("which") (which "which")))
6223 (substitute* '("test/functional/bio/test_command.rb",
6224 "test/data/command/echoarg2.sh")
6225 (("/bin/echo") (which "echo")))
6227 (synopsis "Ruby library, shell and utilities for bioinformatics")
6228 (description "BioRuby comes with a comprehensive set of Ruby development
6229 tools and libraries for bioinformatics and molecular biology. BioRuby has
6230 components for sequence analysis, pathway analysis, protein modelling and
6231 phylogenetic analysis; it supports many widely used data formats and provides
6232 easy access to databases, external programs and public web services, including
6233 BLAST, KEGG, GenBank, MEDLINE and GO.")
6234 (home-page "http://bioruby.org/")
6235 ;; Code is released under Ruby license, except for setup
6236 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
6237 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
6239 (define-public r-acsnminer
6241 (name "r-acsnminer")
6242 (version "0.16.8.25")
6245 (uri (cran-uri "ACSNMineR" version))
6248 "0gh604s8qall6zfjlwcg2ilxjvz08dplf9k5g47idhv43scm748l"))))
6249 (properties `((upstream-name . "ACSNMineR")))
6250 (build-system r-build-system)
6252 `(("r-ggplot2" ,r-ggplot2)
6253 ("r-gridextra" ,r-gridextra)))
6254 (home-page "http://cran.r-project.org/web/packages/ACSNMineR")
6255 (synopsis "Gene enrichment analysis")
6257 "This package provides tools to compute and represent gene set enrichment
6258 or depletion from your data based on pre-saved maps from the @dfn{Atlas of
6259 Cancer Signalling Networks} (ACSN) or user imported maps. The gene set
6260 enrichment can be run with hypergeometric test or Fisher exact test, and can
6261 use multiple corrections. Visualization of data can be done either by
6262 barplots or heatmaps.")
6263 (license license:gpl2+)))
6265 (define-public r-biocgenerics
6267 (name "r-biocgenerics")
6271 (uri (bioconductor-uri "BiocGenerics" version))
6274 "0qbmz2qxwwi30xpxpvp2h1h7l494rbbz5d9pls5cfhqdv3wnpzsv"))))
6276 `((upstream-name . "BiocGenerics")))
6277 (build-system r-build-system)
6278 (home-page "http://bioconductor.org/packages/BiocGenerics")
6279 (synopsis "S4 generic functions for Bioconductor")
6281 "This package provides S4 generic functions needed by many Bioconductor
6283 (license license:artistic2.0)))
6285 (define-public r-biocinstaller
6287 (name "r-biocinstaller")
6291 (uri (bioconductor-uri "BiocInstaller" version))
6294 "0njw2q3lq1rrjx8qzw5d2130l72bmd3g2z8qlxqmkdcbmmgliyj2"))))
6296 `((upstream-name . "BiocInstaller")))
6297 (build-system r-build-system)
6298 (home-page "http://bioconductor.org/packages/BiocInstaller")
6299 (synopsis "Install Bioconductor packages")
6300 (description "This package is used to install and update R packages from
6301 Bioconductor, CRAN, and Github.")
6302 (license license:artistic2.0)))
6304 (define-public r-biocviews
6306 (name "r-biocviews")
6310 (uri (bioconductor-uri "biocViews" version))
6313 "17hi8w0w63f5yc43kid5pbld3ca78sj6n8x9dmkbl8h48818xbga"))))
6315 `((upstream-name . "biocViews")))
6316 (build-system r-build-system)
6318 `(("r-biobase" ,r-biobase)
6319 ("r-graph" ,r-graph)
6321 ("r-rcurl" ,r-rcurl)
6323 ("r-knitr" ,r-knitr)
6324 ("r-runit" ,r-runit)))
6325 (home-page "http://bioconductor.org/packages/biocViews")
6326 (synopsis "Bioconductor package categorization helper")
6327 (description "The purpose of biocViews is to create HTML pages that
6328 categorize packages in a Bioconductor package repository according to keywords,
6329 also known as views, in a controlled vocabulary.")
6330 (license license:artistic2.0)))
6332 (define-public r-bookdown
6338 (uri (cran-uri "bookdown" version))
6341 "0r9bchzg7im6psc3jphvshzbidc5bv5xaih1qg7b5518jy4iyvb9"))))
6342 (build-system r-build-system)
6344 `(("r-htmltools" ,r-htmltools)
6345 ("r-knitr" ,r-knitr)
6346 ("r-rmarkdown" ,r-rmarkdown)
6347 ("r-yaml" ,r-yaml)))
6348 (home-page "https://github.com/rstudio/bookdown")
6349 (synopsis "Authoring books and technical documents with R markdown")
6350 (description "This package provides output formats and utilities for
6351 authoring books and technical documents with R Markdown.")
6352 (license license:gpl3)))
6354 (define-public r-biocstyle
6356 (name "r-biocstyle")
6360 (uri (bioconductor-uri "BiocStyle" version))
6363 "1n2c8rj920wmk3q2khmjfnhn5i4b3lmhx1whnghk0zk3jf88hvbi"))))
6365 `((upstream-name . "BiocStyle")))
6366 (build-system r-build-system)
6368 `(("r-bookdown" ,r-bookdown)
6369 ("r-knitr" ,r-knitr)
6370 ("r-rmarkdown" ,r-rmarkdown)
6371 ("r-yaml" ,r-yaml)))
6372 (home-page "http://bioconductor.org/packages/BiocStyle")
6373 (synopsis "Bioconductor formatting styles")
6374 (description "This package provides standard formatting styles for
6375 Bioconductor PDF and HTML documents. Package vignettes illustrate use and
6377 (license license:artistic2.0)))
6379 (define-public r-bioccheck
6381 (name "r-bioccheck")
6385 (uri (bioconductor-uri "BiocCheck" version))
6388 "01zkw5hggzvn0wj4msac71k1mknq4h2inn1c2hwqgw4cy1675wl0"))))
6390 `((upstream-name . "BiocCheck")))
6391 (build-system r-build-system)
6394 (modify-phases %standard-phases
6395 ;; This package can be used by calling BiocCheck(<package>) from
6396 ;; within R, or by running R CMD BiocCheck <package>. This phase
6397 ;; makes sure the latter works. For this to work, the BiocCheck
6398 ;; script must be somewhere on the PATH (not the R bin directory).
6399 (add-after 'install 'install-bioccheck-subcommand
6400 (lambda* (#:key outputs #:allow-other-keys)
6401 (let* ((out (assoc-ref outputs "out"))
6402 (dest-dir (string-append out "/bin"))
6404 (string-append out "/site-library/BiocCheck/script/")))
6406 (symlink (string-append script-dir "/checkBadDeps.R")
6407 (string-append dest-dir "/checkBadDeps.R"))
6408 (symlink (string-append script-dir "/BiocCheck")
6409 (string-append dest-dir "/BiocCheck")))
6412 `(("which" ,which)))
6414 `(("r-codetools" ,r-codetools)
6415 ("r-graph" ,r-graph)
6417 ("r-optparse" ,r-optparse)
6418 ("r-biocinstaller" ,r-biocinstaller)
6419 ("r-biocviews" ,r-biocviews)))
6420 (home-page "http://bioconductor.org/packages/BiocCheck")
6421 (synopsis "Executes Bioconductor-specific package checks")
6422 (description "This package contains tools to perform additional quality
6423 checks on R packages that are to be submitted to the Bioconductor repository.")
6424 (license license:artistic2.0)))
6426 (define-public r-getopt
6433 (uri (cran-uri "getopt" version))
6436 "00f57vgnzmg7cz80rjmjz1556xqcmx8nhrlbbhaq4w7gl2ibl87r"))))
6437 (build-system r-build-system)
6438 (home-page "https://github.com/trevorld/getopt")
6439 (synopsis "Command-line option processor for R")
6441 "This package is designed to be used with Rscript to write shebang
6442 scripts that accept short and long options. Many users will prefer to
6443 use the packages @code{optparse} or @code{argparse} which add extra
6444 features like automatically generated help options and usage texts,
6445 support for default values, positional argument support, etc.")
6446 (license license:gpl2+)))
6448 (define-public r-optparse
6455 (uri (cran-uri "optparse" version))
6458 "1g8as89r91xxi5j5azsd6vrfrhg84mnfx2683j7pacdp8s33radw"))))
6459 (build-system r-build-system)
6461 `(("r-getopt" ,r-getopt)))
6463 "https://github.com/trevorld/optparse")
6464 (synopsis "Command line option parser")
6466 "This package provides a command line parser inspired by Python's
6467 @code{optparse} library to be used with Rscript to write shebang scripts
6468 that accept short and long options.")
6469 (license license:gpl2+)))
6471 (define-public r-dnacopy
6477 (uri (bioconductor-uri "DNAcopy" version))
6480 "0112ry62z18m7rdyrn3gvbxq2f6m44cawhcfb1f02z9xzlsj0k28"))))
6482 `((upstream-name . "DNAcopy")))
6483 (build-system r-build-system)
6485 `(("gfortran" ,gfortran)))
6486 (home-page "https://bioconductor.org/packages/DNAcopy")
6487 (synopsis "Implementation of a circular binary segmentation algorithm")
6488 (description "This package implements the circular binary segmentation (CBS)
6489 algorithm to segment DNA copy number data and identify genomic regions with
6490 abnormal copy number.")
6491 (license license:gpl2+)))
6493 (define-public r-s4vectors
6495 (name "r-s4vectors")
6499 (uri (bioconductor-uri "S4Vectors" version))
6502 "0ywwrs4d752xfk0p0w122kvi0xvp6nmxnyynchbsa8zciqymhgv8"))))
6504 `((upstream-name . "S4Vectors")))
6505 (build-system r-build-system)
6507 `(("r-biocgenerics" ,r-biocgenerics)))
6508 (home-page "http://bioconductor.org/packages/S4Vectors")
6509 (synopsis "S4 implementation of vectors and lists")
6511 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
6512 classes and a set of generic functions that extend the semantic of ordinary
6513 vectors and lists in R. Package developers can easily implement vector-like
6514 or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
6515 In addition, a few low-level concrete subclasses of general interest (e.g.
6516 @code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
6517 S4Vectors package itself.")
6518 (license license:artistic2.0)))
6520 (define-public r-seqinr
6527 (uri (cran-uri "seqinr" version))
6530 "13d0qxm2244wgdl2dy2s8vnrnf5fx4n47if9gkb49dqx6c0sx8s2"))))
6531 (build-system r-build-system)
6533 `(("r-ade4" ,r-ade4)
6534 ("r-segmented" ,r-segmented)))
6537 (home-page "http://seqinr.r-forge.r-project.org/")
6538 (synopsis "Biological sequences retrieval and analysis")
6540 "This package provides tools for exploratory data analysis and data
6541 visualization of biological sequence (DNA and protein) data. It also includes
6542 utilities for sequence data management under the ACNUC system.")
6543 (license license:gpl2+)))
6545 (define-public r-iranges
6551 (uri (bioconductor-uri "IRanges" version))
6554 "0zp4mxm9h1p4krj7m7cinkvwa2ibqkq59jwpan97yvhb4z8q0d6n"))))
6556 `((upstream-name . "IRanges")))
6557 (build-system r-build-system)
6559 `(("r-biocgenerics" ,r-biocgenerics)
6560 ("r-s4vectors" ,r-s4vectors)))
6561 (home-page "http://bioconductor.org/packages/IRanges")
6562 (synopsis "Infrastructure for manipulating intervals on sequences")
6564 "This package provides efficient low-level and highly reusable S4 classes
6565 for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
6566 generally, data that can be organized sequentially (formally defined as
6567 @code{Vector} objects), as well as views on these @code{Vector} objects.
6568 Efficient list-like classes are also provided for storing big collections of
6569 instances of the basic classes. All classes in the package use consistent
6570 naming and share the same rich and consistent \"Vector API\" as much as
6572 (license license:artistic2.0)))
6574 (define-public r-genomeinfodbdata
6576 (name "r-genomeinfodbdata")
6580 ;; We cannot use bioconductor-uri here because this tarball is
6581 ;; located under "data/annotation/" instead of "bioc/".
6582 (uri (string-append "https://bioconductor.org/packages/release/"
6583 "data/annotation/src/contrib/GenomeInfoDbData_"
6587 "120qvhb0pvkzd65lsgja62vyrgc37si6fh68q4cg4w5x9f04jw25"))))
6589 `((upstream-name . "GenomeInfoDbData")))
6590 (build-system r-build-system)
6591 (home-page "http://bioconductor.org/packages/GenomeInfoDbData")
6592 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
6593 (description "This package contains data for mapping between NCBI taxonomy
6594 ID and species. It is used by functions in the GenomeInfoDb package.")
6595 (license license:artistic2.0)))
6597 (define-public r-genomeinfodb
6599 (name "r-genomeinfodb")
6603 (uri (bioconductor-uri "GenomeInfoDb" version))
6606 "1bwwhscjl376a5p43mx8ijrqajxmgypbqhv049pgagl22hkkf0y3"))))
6608 `((upstream-name . "GenomeInfoDb")))
6609 (build-system r-build-system)
6611 `(("r-biocgenerics" ,r-biocgenerics)
6612 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
6613 ("r-iranges" ,r-iranges)
6614 ("r-rcurl" ,r-rcurl)
6615 ("r-s4vectors" ,r-s4vectors)))
6616 (home-page "http://bioconductor.org/packages/GenomeInfoDb")
6617 (synopsis "Utilities for manipulating chromosome identifiers")
6619 "This package contains data and functions that define and allow
6620 translation between different chromosome sequence naming conventions (e.g.,
6621 \"chr1\" versus \"1\"), including a function that attempts to place sequence
6622 names in their natural, rather than lexicographic, order.")
6623 (license license:artistic2.0)))
6625 (define-public r-edger
6631 (uri (bioconductor-uri "edgeR" version))
6634 "02l17i6xh33dv10swwvyfxrmv5kp23iv278iwvkfq2mnipasfnb9"))))
6635 (properties `((upstream-name . "edgeR")))
6636 (build-system r-build-system)
6638 `(("r-limma" ,r-limma)
6639 ("r-locfit" ,r-locfit)
6640 ("r-statmod" ,r-statmod))) ;for estimateDisp
6641 (home-page "http://bioinf.wehi.edu.au/edgeR")
6642 (synopsis "EdgeR does empirical analysis of digital gene expression data")
6643 (description "This package can do differential expression analysis of
6644 RNA-seq expression profiles with biological replication. It implements a range
6645 of statistical methodology based on the negative binomial distributions,
6646 including empirical Bayes estimation, exact tests, generalized linear models
6647 and quasi-likelihood tests. It be applied to differential signal analysis of
6648 other types of genomic data that produce counts, including ChIP-seq, SAGE and
6650 (license license:gpl2+)))
6652 (define-public r-variantannotation
6654 (name "r-variantannotation")
6658 (uri (bioconductor-uri "VariantAnnotation" version))
6661 "05hpm4as36kvpiqhgnkfjwfx0a05p304c21ggba29iac4nanm8b3"))))
6663 `((upstream-name . "VariantAnnotation")))
6667 `(("r-annotationdbi" ,r-annotationdbi)
6668 ("r-biobase" ,r-biobase)
6669 ("r-biocgenerics" ,r-biocgenerics)
6670 ("r-biostrings" ,r-biostrings)
6671 ("r-bsgenome" ,r-bsgenome)
6673 ("r-genomeinfodb" ,r-genomeinfodb)
6674 ("r-genomicfeatures" ,r-genomicfeatures)
6675 ("r-genomicranges" ,r-genomicranges)
6676 ("r-iranges" ,r-iranges)
6677 ("r-summarizedexperiment" ,r-summarizedexperiment)
6678 ("r-rsamtools" ,r-rsamtools)
6679 ("r-rtracklayer" ,r-rtracklayer)
6680 ("r-s4vectors" ,r-s4vectors)
6681 ("r-xvector" ,r-xvector)
6682 ("r-zlibbioc" ,r-zlibbioc)))
6683 (build-system r-build-system)
6684 (home-page "https://bioconductor.org/packages/VariantAnnotation")
6685 (synopsis "Package for annotation of genetic variants")
6686 (description "This R package can annotate variants, compute amino acid
6687 coding changes and predict coding outcomes.")
6688 (license license:artistic2.0)))
6690 (define-public r-limma
6696 (uri (bioconductor-uri "limma" version))
6699 "0q7rqm86nwq0rg4fjggfr7xqybjrxj425vni3cva70b4c8d1h425"))))
6700 (build-system r-build-system)
6701 (home-page "http://bioinf.wehi.edu.au/limma")
6702 (synopsis "Package for linear models for microarray and RNA-seq data")
6703 (description "This package can be used for the analysis of gene expression
6704 studies, especially the use of linear models for analysing designed experiments
6705 and the assessment of differential expression. The analysis methods apply to
6706 different technologies, including microarrays, RNA-seq, and quantitative PCR.")
6707 (license license:gpl2+)))
6709 (define-public r-xvector
6715 (uri (bioconductor-uri "XVector" version))
6718 "01n09f4jdm60684lzikp02zf9gjan8bdrjx740vggr21q9fa69wn"))))
6720 `((upstream-name . "XVector")))
6721 (build-system r-build-system)
6724 (modify-phases %standard-phases
6725 (add-after 'unpack 'use-system-zlib
6727 (substitute* "DESCRIPTION"
6728 (("zlibbioc, ") ""))
6729 (substitute* "NAMESPACE"
6730 (("import\\(zlibbioc\\)") ""))
6735 `(("r-biocgenerics" ,r-biocgenerics)
6736 ("r-iranges" ,r-iranges)
6737 ("r-s4vectors" ,r-s4vectors)))
6738 (home-page "http://bioconductor.org/packages/XVector")
6739 (synopsis "Representation and manpulation of external sequences")
6741 "This package provides memory efficient S4 classes for storing sequences
6742 \"externally\" (behind an R external pointer, or on disk).")
6743 (license license:artistic2.0)))
6745 (define-public r-genomicranges
6747 (name "r-genomicranges")
6751 (uri (bioconductor-uri "GenomicRanges" version))
6754 "10x9zx0b7j05d1j6p0xs4q4f4wzbhf3rq64wzi9cgv7f44q43a5n"))))
6756 `((upstream-name . "GenomicRanges")))
6757 (build-system r-build-system)
6759 `(("r-biocgenerics" ,r-biocgenerics)
6760 ("r-genomeinfodb" ,r-genomeinfodb)
6761 ("r-iranges" ,r-iranges)
6762 ("r-s4vectors" ,r-s4vectors)
6763 ("r-xvector" ,r-xvector)))
6764 (home-page "http://bioconductor.org/packages/GenomicRanges")
6765 (synopsis "Representation and manipulation of genomic intervals")
6767 "This package provides tools to efficiently represent and manipulate
6768 genomic annotations and alignments is playing a central role when it comes to
6769 analyzing high-throughput sequencing data (a.k.a. NGS data). The
6770 GenomicRanges package defines general purpose containers for storing and
6771 manipulating genomic intervals and variables defined along a genome.")
6772 (license license:artistic2.0)))
6774 (define-public r-biobase
6780 (uri (bioconductor-uri "Biobase" version))
6783 "0x7pf5xsdcj12dbf5qqki2c6bd5madqg2fbiq5xgisarpc9v6c1m"))))
6785 `((upstream-name . "Biobase")))
6786 (build-system r-build-system)
6788 `(("r-biocgenerics" ,r-biocgenerics)))
6789 (home-page "http://bioconductor.org/packages/Biobase")
6790 (synopsis "Base functions for Bioconductor")
6792 "This package provides functions that are needed by many other packages
6793 on Bioconductor or which replace R functions.")
6794 (license license:artistic2.0)))
6796 (define-public r-annotationdbi
6798 (name "r-annotationdbi")
6802 (uri (bioconductor-uri "AnnotationDbi" version))
6805 "1xffm98s817mfc827cnr0by6167nlrl1glxzjawzz0rkghs41g27"))))
6807 `((upstream-name . "AnnotationDbi")))
6808 (build-system r-build-system)
6810 `(("r-biobase" ,r-biobase)
6811 ("r-biocgenerics" ,r-biocgenerics)
6813 ("r-iranges" ,r-iranges)
6814 ("r-rsqlite" ,r-rsqlite)
6815 ("r-s4vectors" ,r-s4vectors)))
6816 (home-page "http://bioconductor.org/packages/AnnotationDbi")
6817 (synopsis "Annotation database interface")
6819 "This package provides user interface and database connection code for
6820 annotation data packages using SQLite data storage.")
6821 (license license:artistic2.0)))
6823 (define-public r-biomart
6829 (uri (bioconductor-uri "biomaRt" version))
6832 "0knkxh23vl9pa0by03xr6dy9aiah714cmf54jl828k51l9wv5l2j"))))
6834 `((upstream-name . "biomaRt")))
6835 (build-system r-build-system)
6837 `(("r-annotationdbi" ,r-annotationdbi)
6838 ("r-rcurl" ,r-rcurl)
6840 (home-page "http://bioconductor.org/packages/biomaRt")
6841 (synopsis "Interface to BioMart databases")
6843 "biomaRt provides an interface to a growing collection of databases
6844 implementing the @url{BioMart software suite, http://www.biomart.org}. The
6845 package enables retrieval of large amounts of data in a uniform way without
6846 the need to know the underlying database schemas or write complex SQL queries.
6847 Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
6848 Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
6849 users direct access to a diverse set of data and enable a wide range of
6850 powerful online queries from gene annotation to database mining.")
6851 (license license:artistic2.0)))
6853 (define-public r-biocparallel
6855 (name "r-biocparallel")
6859 (uri (bioconductor-uri "BiocParallel" version))
6862 "01ph0kq70b5gkd7n6a4myjlvwzgc0hi4xfwz8h17h06n9p5sdwa9"))))
6864 `((upstream-name . "BiocParallel")))
6865 (build-system r-build-system)
6867 `(("r-futile-logger" ,r-futile-logger)
6868 ("r-snow" ,r-snow)))
6869 (home-page "http://bioconductor.org/packages/BiocParallel")
6870 (synopsis "Bioconductor facilities for parallel evaluation")
6872 "This package provides modified versions and novel implementation of
6873 functions for parallel evaluation, tailored to use with Bioconductor
6875 (license (list license:gpl2+ license:gpl3+))))
6877 (define-public r-biostrings
6879 (name "r-biostrings")
6883 (uri (bioconductor-uri "Biostrings" version))
6886 "0ixgx12cx2z4n2khxq83crz9gc21qckj2v78y2p31567kfsw7clg"))))
6888 `((upstream-name . "Biostrings")))
6889 (build-system r-build-system)
6891 `(("r-biocgenerics" ,r-biocgenerics)
6892 ("r-iranges" ,r-iranges)
6893 ("r-s4vectors" ,r-s4vectors)
6894 ("r-xvector" ,r-xvector)))
6895 (home-page "http://bioconductor.org/packages/Biostrings")
6896 (synopsis "String objects and algorithms for biological sequences")
6898 "This package provides memory efficient string containers, string
6899 matching algorithms, and other utilities, for fast manipulation of large
6900 biological sequences or sets of sequences.")
6901 (license license:artistic2.0)))
6903 (define-public r-rsamtools
6905 (name "r-rsamtools")
6909 (uri (bioconductor-uri "Rsamtools" version))
6912 "1zx6vhdz3lksbfy98jj3qzl7cxgspigm2pbsd5835b12r6mc5w6d"))))
6914 `((upstream-name . "Rsamtools")))
6915 (build-system r-build-system)
6918 (modify-phases %standard-phases
6919 (add-after 'unpack 'use-system-zlib
6921 (substitute* "DESCRIPTION"
6922 (("zlibbioc, ") ""))
6923 (substitute* "NAMESPACE"
6924 (("import\\(zlibbioc\\)") ""))
6929 `(("r-biocgenerics" ,r-biocgenerics)
6930 ("r-biocparallel" ,r-biocparallel)
6931 ("r-biostrings" ,r-biostrings)
6932 ("r-bitops" ,r-bitops)
6933 ("r-genomeinfodb" ,r-genomeinfodb)
6934 ("r-genomicranges" ,r-genomicranges)
6935 ("r-iranges" ,r-iranges)
6936 ("r-s4vectors" ,r-s4vectors)
6937 ("r-xvector" ,r-xvector)))
6938 (home-page "http://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
6939 (synopsis "Interface to samtools, bcftools, and tabix")
6941 "This package provides an interface to the 'samtools', 'bcftools', and
6942 'tabix' utilities for manipulating SAM (Sequence Alignment / Map), FASTA,
6943 binary variant call (BCF) and compressed indexed tab-delimited (tabix)
6945 (license license:expat)))
6947 (define-public r-delayedarray
6949 (name "r-delayedarray")
6953 (uri (bioconductor-uri "DelayedArray" version))
6956 "0pcsk0f2dg2ldzprs1cccqrk53jrysmm6ccgjj5wh6z3x17g7g2r"))))
6958 `((upstream-name . "DelayedArray")))
6959 (build-system r-build-system)
6961 `(("r-biocgenerics" ,r-biocgenerics)
6962 ("r-s4vectors" ,r-s4vectors)
6963 ("r-iranges" ,r-iranges)
6964 ("r-matrixstats" ,r-matrixstats)))
6965 (home-page "http://bioconductor.org/packages/DelayedArray")
6966 (synopsis "Delayed operations on array-like objects")
6968 "Wrapping an array-like object (typically an on-disk object) in a
6969 @code{DelayedArray} object allows one to perform common array operations on it
6970 without loading the object in memory. In order to reduce memory usage and
6971 optimize performance, operations on the object are either delayed or executed
6972 using a block processing mechanism. Note that this also works on in-memory
6973 array-like objects like @code{DataFrame} objects (typically with Rle columns),
6974 @code{Matrix} objects, and ordinary arrays and data frames.")
6975 (license license:artistic2.0)))
6977 (define-public r-summarizedexperiment
6979 (name "r-summarizedexperiment")
6983 (uri (bioconductor-uri "SummarizedExperiment" version))
6986 "1szjbzzz4pyip891nji71caalxh0rhqiv7rpv6q54swlrqpfkqkw"))))
6988 `((upstream-name . "SummarizedExperiment")))
6989 (build-system r-build-system)
6991 `(("r-biobase" ,r-biobase)
6992 ("r-biocgenerics" ,r-biocgenerics)
6993 ("r-delayedarray" ,r-delayedarray)
6994 ("r-genomeinfodb" ,r-genomeinfodb)
6995 ("r-genomicranges" ,r-genomicranges)
6996 ("r-iranges" ,r-iranges)
6997 ("r-matrix" ,r-matrix)
6998 ("r-s4vectors" ,r-s4vectors)))
6999 (home-page "http://bioconductor.org/packages/SummarizedExperiment")
7000 (synopsis "Container for representing genomic ranges by sample")
7002 "The SummarizedExperiment container contains one or more assays, each
7003 represented by a matrix-like object of numeric or other mode. The rows
7004 typically represent genomic ranges of interest and the columns represent
7006 (license license:artistic2.0)))
7008 (define-public r-genomicalignments
7010 (name "r-genomicalignments")
7014 (uri (bioconductor-uri "GenomicAlignments" version))
7017 "1aagyrdk5309a7awg42lg0bpirp91i6i2ddvpmrs38pzriwahnjy"))))
7019 `((upstream-name . "GenomicAlignments")))
7020 (build-system r-build-system)
7022 `(("r-biocgenerics" ,r-biocgenerics)
7023 ("r-biocparallel" ,r-biocparallel)
7024 ("r-biostrings" ,r-biostrings)
7025 ("r-genomeinfodb" ,r-genomeinfodb)
7026 ("r-genomicranges" ,r-genomicranges)
7027 ("r-iranges" ,r-iranges)
7028 ("r-rsamtools" ,r-rsamtools)
7029 ("r-s4vectors" ,r-s4vectors)
7030 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7031 (home-page "http://bioconductor.org/packages/GenomicAlignments")
7032 (synopsis "Representation and manipulation of short genomic alignments")
7034 "This package provides efficient containers for storing and manipulating
7035 short genomic alignments (typically obtained by aligning short reads to a
7036 reference genome). This includes read counting, computing the coverage,
7037 junction detection, and working with the nucleotide content of the
7039 (license license:artistic2.0)))
7041 (define-public r-rtracklayer
7043 (name "r-rtracklayer")
7047 (uri (bioconductor-uri "rtracklayer" version))
7050 "0dv7p3wzmx57inznf6fb06417zcm48g7fpazyahxny7bqgzwq0ig"))))
7051 (build-system r-build-system)
7054 (modify-phases %standard-phases
7055 (add-after 'unpack 'use-system-zlib
7057 (substitute* "DESCRIPTION"
7058 (("zlibbioc, ") ""))
7059 (substitute* "NAMESPACE"
7060 (("import\\(zlibbioc\\)") ""))
7065 `(("r-biocgenerics" ,r-biocgenerics)
7066 ("r-biostrings" ,r-biostrings)
7067 ("r-genomeinfodb" ,r-genomeinfodb)
7068 ("r-genomicalignments" ,r-genomicalignments)
7069 ("r-genomicranges" ,r-genomicranges)
7070 ("r-iranges" ,r-iranges)
7071 ("r-rcurl" ,r-rcurl)
7072 ("r-rsamtools" ,r-rsamtools)
7073 ("r-s4vectors" ,r-s4vectors)
7075 ("r-xvector" ,r-xvector)))
7076 (home-page "http://bioconductor.org/packages/rtracklayer")
7077 (synopsis "R interface to genome browsers and their annotation tracks")
7079 "rtracklayer is an extensible framework for interacting with multiple
7080 genome browsers (currently UCSC built-in) and manipulating annotation tracks
7081 in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7082 built-in). The user may export/import tracks to/from the supported browsers,
7083 as well as query and modify the browser state, such as the current viewport.")
7084 (license license:artistic2.0)))
7086 (define-public r-genomicfeatures
7088 (name "r-genomicfeatures")
7092 (uri (bioconductor-uri "GenomicFeatures" version))
7095 "1pjxlr34ygv8pvfwpyq268wpgqzphiwpij85fyhjqdwdp0a253ik"))))
7097 `((upstream-name . "GenomicFeatures")))
7098 (build-system r-build-system)
7100 `(("r-annotationdbi" ,r-annotationdbi)
7101 ("r-biobase" ,r-biobase)
7102 ("r-biocgenerics" ,r-biocgenerics)
7103 ("r-biomart" ,r-biomart)
7104 ("r-biostrings" ,r-biostrings)
7106 ("r-genomeinfodb" ,r-genomeinfodb)
7107 ("r-genomicranges" ,r-genomicranges)
7108 ("r-iranges" ,r-iranges)
7109 ("r-rcurl" ,r-rcurl)
7110 ("r-rsqlite" ,r-rsqlite)
7111 ("r-rtracklayer" ,r-rtracklayer)
7112 ("r-s4vectors" ,r-s4vectors)
7113 ("r-xvector" ,r-xvector)))
7114 (home-page "http://bioconductor.org/packages/GenomicFeatures")
7115 (synopsis "Tools for working with transcript centric annotations")
7117 "This package provides a set of tools and methods for making and
7118 manipulating transcript centric annotations. With these tools the user can
7119 easily download the genomic locations of the transcripts, exons and cds of a
7120 given organism, from either the UCSC Genome Browser or a BioMart
7121 database (more sources will be supported in the future). This information is
7122 then stored in a local database that keeps track of the relationship between
7123 transcripts, exons, cds and genes. Flexible methods are provided for
7124 extracting the desired features in a convenient format.")
7125 (license license:artistic2.0)))
7127 (define-public r-go-db
7133 (uri (string-append "http://www.bioconductor.org/packages/"
7134 "release/data/annotation/src/contrib/GO.db_"
7138 "02cj8kqi5w39jwcs8gp1dgj08sah262ppxnkz4h3qd0w191y8yyl"))))
7140 `((upstream-name . "GO.db")))
7141 (build-system r-build-system)
7143 `(("r-annotationdbi" ,r-annotationdbi)))
7144 (home-page "http://bioconductor.org/packages/GO.db")
7145 (synopsis "Annotation maps describing the entire Gene Ontology")
7147 "The purpose of this GO.db annotation package is to provide detailed
7148 information about the latest version of the Gene Ontologies.")
7149 (license license:artistic2.0)))
7151 (define-public r-graph
7157 (uri (bioconductor-uri "graph" version))
7160 "0hx9wslnrci7c5i1gd1zlpjmgrkdnx9gabfgmzzwfnykk1mdvvna"))))
7161 (build-system r-build-system)
7163 `(("r-biocgenerics" ,r-biocgenerics)))
7164 (home-page "http://bioconductor.org/packages/graph")
7165 (synopsis "Handle graph data structures in R")
7167 "This package implements some simple graph handling capabilities for R.")
7168 (license license:artistic2.0)))
7170 (define-public r-topgo
7176 (uri (bioconductor-uri "topGO" version))
7179 "04kvxz9qsxfz0np7wlrzp4r95nykz94x7mqpyyk76f90g6m66vcc"))))
7181 `((upstream-name . "topGO")))
7182 (build-system r-build-system)
7184 `(("r-annotationdbi" ,r-annotationdbi)
7186 ("r-biobase" ,r-biobase)
7187 ("r-biocgenerics" ,r-biocgenerics)
7188 ("r-go-db" ,r-go-db)
7189 ("r-graph" ,r-graph)
7190 ("r-lattice" ,r-lattice)
7191 ("r-matrixstats" ,r-matrixstats)
7192 ("r-sparsem" ,r-sparsem)))
7193 (home-page "http://bioconductor.org/packages/topGO")
7194 (synopsis "Enrichment analysis for gene ontology")
7196 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
7197 terms while accounting for the topology of the GO graph. Different test
7198 statistics and different methods for eliminating local similarities and
7199 dependencies between GO terms can be implemented and applied.")
7200 ;; Any version of the LGPL applies.
7201 (license license:lgpl2.1+)))
7203 (define-public r-bsgenome
7209 (uri (bioconductor-uri "BSgenome" version))
7212 "18dlknwk3xvi52hamxf9pl5bjc5806mpw98xwvx5xajn8mrxiy5h"))))
7214 `((upstream-name . "BSgenome")))
7215 (build-system r-build-system)
7217 `(("r-biocgenerics" ,r-biocgenerics)
7218 ("r-biostrings" ,r-biostrings)
7219 ("r-genomeinfodb" ,r-genomeinfodb)
7220 ("r-genomicranges" ,r-genomicranges)
7221 ("r-iranges" ,r-iranges)
7222 ("r-rsamtools" ,r-rsamtools)
7223 ("r-rtracklayer" ,r-rtracklayer)
7224 ("r-s4vectors" ,r-s4vectors)
7225 ("r-xvector" ,r-xvector)))
7226 (home-page "http://bioconductor.org/packages/BSgenome")
7227 (synopsis "Infrastructure for Biostrings-based genome data packages")
7229 "This package provides infrastructure shared by all Biostrings-based
7230 genome data packages and support for efficient SNP representation.")
7231 (license license:artistic2.0)))
7233 (define-public r-bsgenome-hsapiens-1000genomes-hs37d5
7235 (name "r-bsgenome-hsapiens-1000genomes-hs37d5")
7239 ;; We cannot use bioconductor-uri here because this tarball is
7240 ;; located under "data/annotation/" instead of "bioc/".
7241 (uri (string-append "http://www.bioconductor.org/packages/"
7242 "release/data/annotation/src/contrib/"
7243 "BSgenome.Hsapiens.1000genomes.hs37d5_"
7247 "1cg0g5fqmsvwyw2p9hp2yy4ilk21jkbbrnpgqvb5c36ihjwvc7sr"))))
7249 `((upstream-name . "BSgenome.Hsapiens.1000genomes.hs37d5")))
7250 (build-system r-build-system)
7251 ;; As this package provides little more than a very large data file it
7252 ;; doesn't make sense to build substitutes.
7253 (arguments `(#:substitutable? #f))
7255 `(("r-bsgenome" ,r-bsgenome)))
7257 "http://www.bioconductor.org/packages/BSgenome.Hsapiens.1000genomes.hs37d5/")
7258 (synopsis "Full genome sequences for Homo sapiens")
7260 "This package provides full genome sequences for Homo sapiens from
7261 1000genomes phase2 reference genome sequence (hs37d5), based on NCBI GRCh37.")
7262 (license license:artistic2.0)))
7264 (define-public r-impute
7270 (uri (bioconductor-uri "impute" version))
7273 "0va45vfixy3np549md87h3b3rbavm54gfnmnjhpr9hf02lll6zxs"))))
7275 `(("gfortran" ,gfortran)))
7276 (build-system r-build-system)
7277 (home-page "http://bioconductor.org/packages/impute")
7278 (synopsis "Imputation for microarray data")
7280 "This package provides a function to impute missing gene expression
7281 microarray data, using nearest neighbor averaging.")
7282 (license license:gpl2+)))
7284 (define-public r-seqpattern
7286 (name "r-seqpattern")
7290 (uri (bioconductor-uri "seqPattern" version))
7293 "0yw5251sirv3283xgmfmfbf900xp8dwvqfk88mr945s3by5hx99v"))))
7295 `((upstream-name . "seqPattern")))
7296 (build-system r-build-system)
7298 `(("r-biostrings" ,r-biostrings)
7299 ("r-genomicranges" ,r-genomicranges)
7300 ("r-iranges" ,r-iranges)
7301 ("r-kernsmooth" ,r-kernsmooth)
7302 ("r-plotrix" ,r-plotrix)))
7303 (home-page "http://bioconductor.org/packages/seqPattern")
7304 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
7306 "This package provides tools to visualize oligonucleotide patterns and
7307 sequence motif occurrences across a large set of sequences centred at a common
7308 reference point and sorted by a user defined feature.")
7309 (license license:gpl3+)))
7311 (define-public r-genomation
7313 (name "r-genomation")
7317 (uri (bioconductor-uri "genomation" version))
7320 "0r71nf8p3aq3yffqxg4yir1zmm7rar5a57nmy1kpqpn8kaf2svjl"))))
7321 (build-system r-build-system)
7323 `(("r-biostrings" ,r-biostrings)
7324 ("r-bsgenome" ,r-bsgenome)
7325 ("r-data-table" ,r-data-table)
7326 ("r-genomeinfodb" ,r-genomeinfodb)
7327 ("r-genomicalignments" ,r-genomicalignments)
7328 ("r-genomicranges" ,r-genomicranges)
7329 ("r-ggplot2" ,r-ggplot2)
7330 ("r-gridbase" ,r-gridbase)
7331 ("r-impute" ,r-impute)
7332 ("r-iranges" ,r-iranges)
7333 ("r-matrixstats" ,r-matrixstats)
7334 ("r-plotrix" ,r-plotrix)
7337 ("r-readr" ,r-readr)
7338 ("r-reshape2" ,r-reshape2)
7339 ("r-rhtslib" ,r-rhtslib)
7340 ("r-rsamtools" ,r-rsamtools)
7341 ("r-rtracklayer" ,r-rtracklayer)
7342 ("r-runit" ,r-runit)
7343 ("r-s4vectors" ,r-s4vectors)
7344 ("r-seqpattern" ,r-seqpattern)))
7347 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7348 (synopsis "Summary, annotation and visualization of genomic data")
7350 "This package provides a package for summary and annotation of genomic
7351 intervals. Users can visualize and quantify genomic intervals over
7352 pre-defined functional regions, such as promoters, exons, introns, etc. The
7353 genomic intervals represent regions with a defined chromosome position, which
7354 may be associated with a score, such as aligned reads from HT-seq experiments,
7355 TF binding sites, methylation scores, etc. The package can use any tabular
7356 genomic feature data as long as it has minimal information on the locations of
7357 genomic intervals. In addition, it can use BAM or BigWig files as input.")
7358 (license license:artistic2.0)))
7360 (define-public r-genomationdata
7362 (name "r-genomationdata")
7366 ;; We cannot use bioconductor-uri here because this tarball is
7367 ;; located under "data/annotation/" instead of "bioc/".
7368 (uri (string-append "https://bioconductor.org/packages/"
7369 "release/data/experiment/src/contrib/"
7370 "genomationData_" version ".tar.gz"))
7373 "16dqwb7wx1igx77zdbcskx5m1hs4g4gp2hl56zzm70hcagnlkz8y"))))
7374 (build-system r-build-system)
7375 ;; As this package provides little more than large data files, it doesn't
7376 ;; make sense to build substitutes.
7377 (arguments `(#:substitutable? #f))
7379 `(("r-knitr" ,r-knitr)))
7380 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
7381 (synopsis "Experimental data for use with the genomation package")
7383 "This package contains experimental genetic data for use with the
7384 genomation package. Included are Chip Seq, Methylation and Cage data,
7385 downloaded from Encode.")
7386 (license license:gpl3+)))
7388 (define-public r-org-hs-eg-db
7390 (name "r-org-hs-eg-db")
7394 ;; We cannot use bioconductor-uri here because this tarball is
7395 ;; located under "data/annotation/" instead of "bioc/".
7396 (uri (string-append "http://www.bioconductor.org/packages/"
7397 "release/data/annotation/src/contrib/"
7398 "org.Hs.eg.db_" version ".tar.gz"))
7401 "19mg64pw8zcvb9yxzzyf7caz1kvdrkfsj1hd84bzq7crrh8kc4y6"))))
7403 `((upstream-name . "org.Hs.eg.db")))
7404 (build-system r-build-system)
7406 `(("r-annotationdbi" ,r-annotationdbi)))
7407 (home-page "http://www.bioconductor.org/packages/org.Hs.eg.db/")
7408 (synopsis "Genome wide annotation for Human")
7410 "This package provides mappings from Entrez gene identifiers to various
7411 annotations for the human genome.")
7412 (license license:artistic2.0)))
7414 (define-public r-org-ce-eg-db
7416 (name "r-org-ce-eg-db")
7420 ;; We cannot use bioconductor-uri here because this tarball is
7421 ;; located under "data/annotation/" instead of "bioc/".
7422 (uri (string-append "http://www.bioconductor.org/packages/"
7423 "release/data/annotation/src/contrib/"
7424 "org.Ce.eg.db_" version ".tar.gz"))
7427 "12llfzrrc09kj2wzbisdspv38qzkzgpsbn8kv7qkwg746k3pq436"))))
7429 `((upstream-name . "org.Ce.eg.db")))
7430 (build-system r-build-system)
7432 `(("r-annotationdbi" ,r-annotationdbi)))
7433 (home-page "http://www.bioconductor.org/packages/org.Ce.eg.db/")
7434 (synopsis "Genome wide annotation for Worm")
7436 "This package provides mappings from Entrez gene identifiers to various
7437 annotations for the genome of the model worm Caenorhabditis elegans.")
7438 (license license:artistic2.0)))
7440 (define-public r-org-dm-eg-db
7442 (name "r-org-dm-eg-db")
7446 ;; We cannot use bioconductor-uri here because this tarball is
7447 ;; located under "data/annotation/" instead of "bioc/".
7448 (uri (string-append "http://www.bioconductor.org/packages/"
7449 "release/data/annotation/src/contrib/"
7450 "org.Dm.eg.db_" version ".tar.gz"))
7453 "1vzbphbrh1cf7xi5cksia9xy9a9l42js2z2qsajvjxvddiphrb7j"))))
7455 `((upstream-name . "org.Dm.eg.db")))
7456 (build-system r-build-system)
7458 `(("r-annotationdbi" ,r-annotationdbi)))
7459 (home-page "http://www.bioconductor.org/packages/org.Dm.eg.db/")
7460 (synopsis "Genome wide annotation for Fly")
7462 "This package provides mappings from Entrez gene identifiers to various
7463 annotations for the genome of the model fruit fly Drosophila melanogaster.")
7464 (license license:artistic2.0)))
7466 (define-public r-org-mm-eg-db
7468 (name "r-org-mm-eg-db")
7472 ;; We cannot use bioconductor-uri here because this tarball is
7473 ;; located under "data/annotation/" instead of "bioc/".
7474 (uri (string-append "http://www.bioconductor.org/packages/"
7475 "release/data/annotation/src/contrib/"
7476 "org.Mm.eg.db_" version ".tar.gz"))
7479 "1lykjqjaf01fmgg3cvfcvwd5xjq6zc5vbxnm5r4l32fzvl89q50c"))))
7481 `((upstream-name . "org.Mm.eg.db")))
7482 (build-system r-build-system)
7484 `(("r-annotationdbi" ,r-annotationdbi)))
7485 (home-page "http://www.bioconductor.org/packages/org.Mm.eg.db/")
7486 (synopsis "Genome wide annotation for Mouse")
7488 "This package provides mappings from Entrez gene identifiers to various
7489 annotations for the genome of the model mouse Mus musculus.")
7490 (license license:artistic2.0)))
7492 (define-public r-seqlogo
7499 (uri (bioconductor-uri "seqLogo" version))
7502 "19d5zmy7m8svljwgbmrb4vxkq18slq0f3all6k2ayv42b8w44h6q"))))
7503 (properties `((upstream-name . "seqLogo")))
7504 (build-system r-build-system)
7505 (home-page "http://bioconductor.org/packages/seqLogo")
7506 (synopsis "Sequence logos for DNA sequence alignments")
7508 "seqLogo takes the position weight matrix of a DNA sequence motif and
7509 plots the corresponding sequence logo as introduced by Schneider and
7511 (license license:lgpl2.0+)))
7513 (define-public r-bsgenome-hsapiens-ucsc-hg19
7515 (name "r-bsgenome-hsapiens-ucsc-hg19")
7519 ;; We cannot use bioconductor-uri here because this tarball is
7520 ;; located under "data/annotation/" instead of "bioc/".
7521 (uri (string-append "http://www.bioconductor.org/packages/"
7522 "release/data/annotation/src/contrib/"
7523 "BSgenome.Hsapiens.UCSC.hg19_"
7527 "1y0nqpk8cw5a34sd9hmin3z4v7iqm6hf6l22cl81vlbxqbjibxc8"))))
7529 `((upstream-name . "BSgenome.Hsapiens.UCSC.hg19")))
7530 (build-system r-build-system)
7531 ;; As this package provides little more than a very large data file it
7532 ;; doesn't make sense to build substitutes.
7533 (arguments `(#:substitutable? #f))
7535 `(("r-bsgenome" ,r-bsgenome)))
7537 "http://www.bioconductor.org/packages/BSgenome.Hsapiens.UCSC.hg19/")
7538 (synopsis "Full genome sequences for Homo sapiens")
7540 "This package provides full genome sequences for Homo sapiens as provided
7541 by UCSC (hg19, February 2009) and stored in Biostrings objects.")
7542 (license license:artistic2.0)))
7544 (define-public r-bsgenome-mmusculus-ucsc-mm9
7546 (name "r-bsgenome-mmusculus-ucsc-mm9")
7550 ;; We cannot use bioconductor-uri here because this tarball is
7551 ;; located under "data/annotation/" instead of "bioc/".
7552 (uri (string-append "http://www.bioconductor.org/packages/"
7553 "release/data/annotation/src/contrib/"
7554 "BSgenome.Mmusculus.UCSC.mm9_"
7558 "1birqw30g2azimxpnjfzmkphan7x131yy8b9h85lfz5fjdg7841i"))))
7560 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm9")))
7561 (build-system r-build-system)
7562 ;; As this package provides little more than a very large data file it
7563 ;; doesn't make sense to build substitutes.
7564 (arguments `(#:substitutable? #f))
7566 `(("r-bsgenome" ,r-bsgenome)))
7568 "http://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm9/")
7569 (synopsis "Full genome sequences for Mouse")
7571 "This package provides full genome sequences for Mus musculus (Mouse) as
7572 provided by UCSC (mm9, July 2007) and stored in Biostrings objects.")
7573 (license license:artistic2.0)))
7575 (define-public r-bsgenome-mmusculus-ucsc-mm10
7577 (name "r-bsgenome-mmusculus-ucsc-mm10")
7581 ;; We cannot use bioconductor-uri here because this tarball is
7582 ;; located under "data/annotation/" instead of "bioc/".
7583 (uri (string-append "http://www.bioconductor.org/packages/"
7584 "release/data/annotation/src/contrib/"
7585 "BSgenome.Mmusculus.UCSC.mm10_"
7589 "12s0nm2na9brjad4rn9l7d3db2aj8qa1xvz0y1k7gk08wayb6bkf"))))
7591 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm10")))
7592 (build-system r-build-system)
7593 ;; As this package provides little more than a very large data file it
7594 ;; doesn't make sense to build substitutes.
7595 (arguments `(#:substitutable? #f))
7597 `(("r-bsgenome" ,r-bsgenome)))
7599 "http://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm10/")
7600 (synopsis "Full genome sequences for Mouse")
7602 "This package provides full genome sequences for Mus
7603 musculus (Mouse) as provided by UCSC (mm10, December 2011) and stored
7604 in Biostrings objects.")
7605 (license license:artistic2.0)))
7607 (define-public r-txdb-mmusculus-ucsc-mm10-knowngene
7609 (name "r-txdb-mmusculus-ucsc-mm10-knowngene")
7613 ;; We cannot use bioconductor-uri here because this tarball is
7614 ;; located under "data/annotation/" instead of "bioc/".
7615 (uri (string-append "http://www.bioconductor.org/packages/"
7616 "release/data/annotation/src/contrib/"
7617 "TxDb.Mmusculus.UCSC.mm10.knownGene_"
7621 "08gava9wsvpcqz51k2sni3pj03n5155v32d9riqbf305nbirqbkb"))))
7623 `((upstream-name . "TxDb.Mmusculus.UCSC.mm10.knownGene")))
7624 (build-system r-build-system)
7625 ;; As this package provides little more than a very large data file it
7626 ;; doesn't make sense to build substitutes.
7627 (arguments `(#:substitutable? #f))
7629 `(("r-bsgenome" ,r-bsgenome)
7630 ("r-genomicfeatures" ,r-genomicfeatures)
7631 ("r-annotationdbi" ,r-annotationdbi)))
7633 "http://bioconductor.org/packages/TxDb.Mmusculus.UCSC.mm10.knownGene/")
7634 (synopsis "Annotation package for TxDb knownGene object(s) for Mouse")
7636 "This package loads a TxDb object, which is an R interface to
7637 prefabricated databases contained in this package. This package provides
7638 the TxDb object of Mouse data as provided by UCSC (mm10, December 2011)
7639 based on the knownGene track.")
7640 (license license:artistic2.0)))
7642 (define-public r-bsgenome-celegans-ucsc-ce6
7644 (name "r-bsgenome-celegans-ucsc-ce6")
7648 ;; We cannot use bioconductor-uri here because this tarball is
7649 ;; located under "data/annotation/" instead of "bioc/".
7650 (uri (string-append "http://www.bioconductor.org/packages/"
7651 "release/data/annotation/src/contrib/"
7652 "BSgenome.Celegans.UCSC.ce6_"
7656 "0mqzb353xv2c3m3vkb315dkmnxkgczp7ndnknyhpgjlybyf715v9"))))
7658 `((upstream-name . "BSgenome.Celegans.UCSC.ce6")))
7659 (build-system r-build-system)
7660 ;; As this package provides little more than a very large data file it
7661 ;; doesn't make sense to build substitutes.
7662 (arguments `(#:substitutable? #f))
7664 `(("r-bsgenome" ,r-bsgenome)))
7666 "http://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce6/")
7667 (synopsis "Full genome sequences for Worm")
7669 "This package provides full genome sequences for Caenorhabditis
7670 elegans (Worm) as provided by UCSC (ce6, May 2008) and stored in Biostrings
7672 (license license:artistic2.0)))
7674 (define-public r-bsgenome-celegans-ucsc-ce10
7676 (name "r-bsgenome-celegans-ucsc-ce10")
7680 ;; We cannot use bioconductor-uri here because this tarball is
7681 ;; located under "data/annotation/" instead of "bioc/".
7682 (uri (string-append "http://www.bioconductor.org/packages/"
7683 "release/data/annotation/src/contrib/"
7684 "BSgenome.Celegans.UCSC.ce10_"
7688 "1zaym97jk4npxk14ifvwz2rvhm4zx9xgs33r9vvx9rlynp0gydrk"))))
7690 `((upstream-name . "BSgenome.Celegans.UCSC.ce10")))
7691 (build-system r-build-system)
7692 ;; As this package provides little more than a very large data file it
7693 ;; doesn't make sense to build substitutes.
7694 (arguments `(#:substitutable? #f))
7696 `(("r-bsgenome" ,r-bsgenome)))
7698 "http://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce10/")
7699 (synopsis "Full genome sequences for Worm")
7701 "This package provides full genome sequences for Caenorhabditis
7702 elegans (Worm) as provided by UCSC (ce10, Oct 2010) and stored in Biostrings
7704 (license license:artistic2.0)))
7706 (define-public r-bsgenome-dmelanogaster-ucsc-dm3
7708 (name "r-bsgenome-dmelanogaster-ucsc-dm3")
7712 ;; We cannot use bioconductor-uri here because this tarball is
7713 ;; located under "data/annotation/" instead of "bioc/".
7714 (uri (string-append "http://www.bioconductor.org/packages/"
7715 "release/data/annotation/src/contrib/"
7716 "BSgenome.Dmelanogaster.UCSC.dm3_"
7720 "19bm3lkhhkag3gnwp419211fh0cnr0x6fa0r1lr0ycwrikxdxsv8"))))
7722 `((upstream-name . "BSgenome.Dmelanogaster.UCSC.dm3")))
7723 (build-system r-build-system)
7724 ;; As this package provides little more than a very large data file it
7725 ;; doesn't make sense to build substitutes.
7726 (arguments `(#:substitutable? #f))
7728 `(("r-bsgenome" ,r-bsgenome)))
7730 "http://www.bioconductor.org/packages/BSgenome.Dmelanogaster.UCSC.dm3/")
7731 (synopsis "Full genome sequences for Fly")
7733 "This package provides full genome sequences for Drosophila
7734 melanogaster (Fly) as provided by UCSC (dm3, April 2006) and stored in
7735 Biostrings objects.")
7736 (license license:artistic2.0)))
7738 (define-public r-motifrg
7745 (uri (bioconductor-uri "motifRG" version))
7748 "0lxxpqyljiyk73vyq6ss46q13g81pm24q87mkzdsqlr5zx427ch6"))))
7749 (properties `((upstream-name . "motifRG")))
7750 (build-system r-build-system)
7752 `(("r-biostrings" ,r-biostrings)
7753 ("r-bsgenome" ,r-bsgenome)
7754 ("r-bsgenome.hsapiens.ucsc.hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
7755 ("r-iranges" ,r-iranges)
7756 ("r-seqlogo" ,r-seqlogo)
7757 ("r-xvector" ,r-xvector)))
7758 (home-page "http://bioconductor.org/packages/motifRG")
7759 (synopsis "Discover motifs in high throughput sequencing data")
7761 "This package provides tools for discriminative motif discovery in high
7762 throughput genetic sequencing data sets using regression methods.")
7763 (license license:artistic2.0)))
7765 (define-public r-qtl
7772 (uri (string-append "mirror://cran/src/contrib/qtl_"
7776 "05bj1x2ry0i7yqiydlswb3d2h4pxg70z8w1072az1mrv1m54k8sp"))))
7777 (build-system r-build-system)
7778 (home-page "http://rqtl.org/")
7779 (synopsis "R package for analyzing QTL experiments in genetics")
7780 (description "R/qtl is an extension library for the R statistics
7781 system. It is used to analyze experimental crosses for identifying
7782 genes contributing to variation in quantitative traits (so-called
7783 quantitative trait loci, QTLs).
7785 Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
7786 identify genotyping errors, and to perform single-QTL and two-QTL,
7787 two-dimensional genome scans.")
7788 (license license:gpl3)))
7790 (define-public r-zlibbioc
7796 (uri (bioconductor-uri "zlibbioc" version))
7799 "1kdgwwlh39mgwzj3zq71za4iv40sq625ghnyrndv5wrivrcr2igv"))))
7801 `((upstream-name . "zlibbioc")))
7802 (build-system r-build-system)
7803 (home-page "https://bioconductor.org/packages/zlibbioc")
7804 (synopsis "Provider for zlib-1.2.5 to R packages")
7805 (description "This package uses the source code of zlib-1.2.5 to create
7806 libraries for systems that do not have these available via other means.")
7807 (license license:artistic2.0)))
7809 (define-public r-r4rna
7816 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
7820 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
7821 (build-system r-build-system)
7823 `(("r-optparse" ,r-optparse)
7824 ("r-rcolorbrewer" ,r-rcolorbrewer)))
7825 (home-page "http://www.e-rna.org/r-chie/index.cgi")
7826 (synopsis "Analysis framework for RNA secondary structure")
7828 "The R4RNA package aims to be a general framework for the analysis of RNA
7829 secondary structure and comparative analysis in R.")
7830 (license license:gpl3+)))
7832 (define-public r-rhtslib
7839 (uri (bioconductor-uri "Rhtslib" version))
7842 "0jj5h81z5gyf4j3lp2l3zsm6pgbmalgrngr8qdpygc20phndpp0b"))))
7843 (properties `((upstream-name . "Rhtslib")))
7844 (build-system r-build-system)
7846 `(("r-zlibbioc" ,r-zlibbioc)))
7850 `(("autoconf" ,autoconf)))
7851 (home-page "https://github.com/nhayden/Rhtslib")
7852 (synopsis "High-throughput sequencing library as an R package")
7854 "This package provides the HTSlib C library for high-throughput
7855 nucleotide sequence analysis. The package is primarily useful to developers
7856 of other R packages who wish to make use of HTSlib.")
7857 (license license:lgpl2.0+)))
7859 (define-public r-bamsignals
7861 (name "r-bamsignals")
7866 (uri (bioconductor-uri "bamsignals" version))
7869 "0knx69zzdaak2sjim8k9mygmcjxpa705m8013ld5zwpgi8dag9mc"))))
7870 (build-system r-build-system)
7872 `(("r-biocgenerics" ,r-biocgenerics)
7873 ("r-genomicranges" ,r-genomicranges)
7874 ("r-iranges" ,r-iranges)
7876 ("r-rhtslib" ,r-rhtslib)
7877 ("r-zlibbioc" ,r-zlibbioc)))
7880 (home-page "http://bioconductor.org/packages/bamsignals")
7881 (synopsis "Extract read count signals from bam files")
7883 "This package allows to efficiently obtain count vectors from indexed bam
7884 files. It counts the number of nucleotide sequence reads in given genomic
7885 ranges and it computes reads profiles and coverage profiles. It also handles
7887 (license license:gpl2+)))
7889 (define-public r-rcas
7895 (uri (string-append "https://github.com/BIMSBbioinfo/RCAS/archive/v"
7897 (file-name (string-append name "-" version ".tar.gz"))
7900 "1hd0r66556bxbdd82ksjklq7nfli36l4k6y88ic7kkg9873wa1nw"))))
7901 (build-system r-build-system)
7903 `(("r-knitr" ,r-knitr)
7904 ("r-testthat" ,r-testthat)
7905 ;; During vignette building knitr checks that "pandoc-citeproc"
7907 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)))
7909 `(("r-data-table" ,r-data-table)
7910 ("r-biomart" ,r-biomart)
7911 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
7912 ("r-org-ce-eg-db" ,r-org-ce-eg-db)
7913 ("r-org-dm-eg-db" ,r-org-dm-eg-db)
7914 ("r-org-mm-eg-db" ,r-org-mm-eg-db)
7915 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
7916 ("r-bsgenome-mmusculus-ucsc-mm9" ,r-bsgenome-mmusculus-ucsc-mm9)
7917 ("r-bsgenome-celegans-ucsc-ce10" ,r-bsgenome-celegans-ucsc-ce10)
7918 ("r-bsgenome-dmelanogaster-ucsc-dm3" ,r-bsgenome-dmelanogaster-ucsc-dm3)
7919 ("r-topgo" ,r-topgo)
7921 ("r-plotly" ,r-plotly)
7922 ("r-plotrix" ,r-plotrix)
7923 ("r-motifrg" ,r-motifrg)
7924 ("r-genomation" ,r-genomation)
7925 ("r-genomicfeatures" ,r-genomicfeatures)
7926 ("r-rtracklayer" ,r-rtracklayer)
7927 ("r-rmarkdown" ,r-rmarkdown)))
7928 (synopsis "RNA-centric annotation system")
7930 "RCAS aims to be a standalone RNA-centric annotation system that provides
7931 intuitive reports and publication-ready graphics. This package provides the R
7932 library implementing most of the pipeline's features.")
7933 (home-page "https://github.com/BIMSBbioinfo/RCAS")
7934 (license license:expat)))
7936 (define-public rcas-web
7943 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
7944 "releases/download/v" version
7945 "/rcas-web-" version ".tar.gz"))
7948 "0d3my0g8i7js59n184zzzjdki7hgmhpi4rhfvk7i6jsw01ba04qq"))))
7949 (build-system gnu-build-system)
7952 (modify-phases %standard-phases
7953 (add-after 'install 'wrap-executable
7954 (lambda* (#:key inputs outputs #:allow-other-keys)
7955 (let* ((out (assoc-ref outputs "out"))
7956 (json (assoc-ref inputs "guile-json"))
7957 (redis (assoc-ref inputs "guile-redis"))
7958 (path (string-append
7959 json "/share/guile/site/2.2:"
7960 redis "/share/guile/site/2.2")))
7961 (wrap-program (string-append out "/bin/rcas-web")
7962 `("GUILE_LOAD_PATH" ":" = (,path))
7963 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
7964 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
7967 `(("r-minimal" ,r-minimal)
7969 ("guile-next" ,guile-2.2)
7970 ("guile-json" ,guile-json)
7971 ("guile-redis" ,guile2.2-redis)))
7973 `(("pkg-config" ,pkg-config)))
7974 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
7975 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
7976 (description "This package provides a simple web interface for the
7977 @dfn{RNA-centric annotation system} (RCAS).")
7978 (license license:agpl3+)))
7980 (define-public r-mutationalpatterns
7982 (name "r-mutationalpatterns")
7987 (uri (bioconductor-uri "MutationalPatterns" version))
7990 "1s50diwh1j6vg3mgahh6bczvq74mfdbmwjrad4d5lh723gnc5pjg"))))
7991 (build-system r-build-system)
7993 `(("r-biocgenerics" ,r-biocgenerics)
7994 ("r-biostrings" ,r-biostrings)
7995 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
7996 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
7997 ("r-genomicranges" ,r-genomicranges)
7998 ("r-genomeinfodb" ,r-genomeinfodb)
7999 ("r-ggplot2" ,r-ggplot2)
8000 ("r-gridextra" ,r-gridextra)
8001 ("r-iranges" ,r-iranges)
8004 ("r-pracma" ,r-pracma)
8005 ("r-reshape2" ,r-reshape2)
8006 ("r-summarizedexperiment" ,r-summarizedexperiment)
8007 ("r-variantannotation" ,r-variantannotation)))
8008 (home-page "http://bioconductor.org/packages/MutationalPatterns/")
8009 (synopsis "Extract and visualize mutational patterns in genomic data")
8010 (description "This package provides an extensive toolset for the
8011 characterization and visualization of a wide range of mutational patterns
8012 in SNV base substitution data.")
8013 (license license:expat)))
8015 (define-public r-wgcna
8022 (uri (cran-uri "WGCNA" version))
8025 "0hzvnhw76vwg8bl8x368f0c5szpwb8323bmrb3bir93i5bmfjsxx"))))
8026 (properties `((upstream-name . "WGCNA")))
8027 (build-system r-build-system)
8029 `(("r-annotationdbi" ,r-annotationdbi)
8030 ("r-doparallel" ,r-doparallel)
8031 ("r-dynamictreecut" ,r-dynamictreecut)
8032 ("r-fastcluster" ,r-fastcluster)
8033 ("r-foreach" ,r-foreach)
8034 ("r-go-db" ,r-go-db)
8035 ("r-hmisc" ,r-hmisc)
8036 ("r-impute" ,r-impute)
8037 ("r-matrixstats" ,r-matrixstats)
8038 ("r-preprocesscore" ,r-preprocesscore)))
8040 "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/Rpackages/WGCNA/")
8041 (synopsis "Weighted correlation network analysis")
8043 "This package provides functions necessary to perform Weighted
8044 Correlation Network Analysis on high-dimensional data. It includes functions
8045 for rudimentary data cleaning, construction and summarization of correlation
8046 networks, module identification and functions for relating both variables and
8047 modules to sample traits. It also includes a number of utility functions for
8048 data manipulation and visualization.")
8049 (license license:gpl2+)))
8051 (define-public r-chipkernels
8052 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8055 (name "r-chipkernels")
8056 (version (string-append "1.1-" revision "." (string-take commit 9)))
8061 (url "https://github.com/ManuSetty/ChIPKernels.git")
8063 (file-name (string-append name "-" version))
8066 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8067 (build-system r-build-system)
8069 `(("r-iranges" ,r-iranges)
8070 ("r-xvector" ,r-xvector)
8071 ("r-biostrings" ,r-biostrings)
8072 ("r-bsgenome" ,r-bsgenome)
8073 ("r-gtools" ,r-gtools)
8074 ("r-genomicranges" ,r-genomicranges)
8075 ("r-sfsmisc" ,r-sfsmisc)
8076 ("r-kernlab" ,r-kernlab)
8077 ("r-s4vectors" ,r-s4vectors)
8078 ("r-biocgenerics" ,r-biocgenerics)))
8079 (home-page "https://github.com/ManuSetty/ChIPKernels")
8080 (synopsis "Build string kernels for DNA Sequence analysis")
8081 (description "ChIPKernels is an R package for building different string
8082 kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8083 must be built and this dictionary can be used for determining kernels for DNA
8085 (license license:gpl2+))))
8087 (define-public r-seqgl
8094 (uri (string-append "https://github.com/ManuSetty/SeqGL/"
8095 "archive/" version ".tar.gz"))
8096 (file-name (string-append name "-" version ".tar.gz"))
8099 "0pnk1p3sci5yipyc8xnb6jbmydpl80fld927xgnbcv104hy8h8yh"))))
8100 (build-system r-build-system)
8102 `(("r-biostrings" ,r-biostrings)
8103 ("r-chipkernels" ,r-chipkernels)
8104 ("r-genomicranges" ,r-genomicranges)
8105 ("r-spams" ,r-spams)
8106 ("r-wgcna" ,r-wgcna)
8107 ("r-fastcluster" ,r-fastcluster)))
8108 (home-page "https://github.com/ManuSetty/SeqGL")
8109 (synopsis "Group lasso for Dnase/ChIP-seq data")
8110 (description "SeqGL is a group lasso based algorithm to extract
8111 transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8112 This package presents a method which uses group lasso to discriminate between
8113 bound and non bound genomic regions to accurately identify transcription
8114 factors bound at the specific regions.")
8115 (license license:gpl2+)))
8117 (define-public r-gkmsvm
8124 (uri (cran-uri "gkmSVM" version))
8127 "1zpxgxmf2nd5j5wn00ps6kfxr8wxh7d1swr1rr4spq7sj5z5z0k0"))))
8128 (properties `((upstream-name . "gkmSVM")))
8129 (build-system r-build-system)
8131 `(("r-biocgenerics" ,r-biocgenerics)
8132 ("r-biostrings" ,r-biostrings)
8133 ("r-genomeinfodb" ,r-genomeinfodb)
8134 ("r-genomicranges" ,r-genomicranges)
8135 ("r-iranges" ,r-iranges)
8136 ("r-kernlab" ,r-kernlab)
8139 ("r-rtracklayer" ,r-rtracklayer)
8140 ("r-s4vectors" ,r-s4vectors)
8141 ("r-seqinr" ,r-seqinr)))
8142 (home-page "http://cran.r-project.org/web/packages/gkmSVM")
8143 (synopsis "Gapped-kmer support vector machine")
8145 "This R package provides tools for training gapped-kmer SVM classifiers
8146 for DNA and protein sequences. This package supports several sequence
8147 kernels, including: gkmSVM, kmer-SVM, mismatch kernel and wildcard kernel.")
8148 (license license:gpl2+)))
8150 (define-public r-tximport
8156 (uri (bioconductor-uri "tximport" version))
8159 "1mklb02bj4gnbjlmb7vv6k4lr3w9fp3pzli9rddbrwd0y5n8fcpx"))))
8160 (build-system r-build-system)
8161 (home-page "http://bioconductor.org/packages/tximport")
8162 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8164 "This package provides tools to import transcript-level abundance,
8165 estimated counts and transcript lengths, and to summarize them into matrices
8166 for use with downstream gene-level analysis packages. Average transcript
8167 length, weighted by sample-specific transcript abundance estimates, is
8168 provided as a matrix which can be used as an offset for different expression
8169 of gene-level counts.")
8170 (license license:gpl2+)))
8172 (define-public r-rhdf5
8178 (uri (bioconductor-uri "rhdf5" version))
8181 "1p6f5i6l44phl772a38x9cav2sya37bkqbkjzdc4pmyfzkv1j6hy"))))
8182 (build-system r-build-system)
8185 (modify-phases %standard-phases
8186 (add-after 'unpack 'unpack-smallhdf5
8187 (lambda* (#:key outputs #:allow-other-keys)
8188 (system* "tar" "-xzvf"
8189 "src/hdf5source/hdf5small.tgz" "-C" "src/" )
8190 (substitute* "src/Makevars"
8191 (("^.*cd hdf5source &&.*$") "")
8192 (("^.*gunzip -dc hdf5small.tgz.*$") "")
8193 (("^.*rm -rf hdf5.*$") "")
8194 (("^.*mv hdf5source/hdf5 ..*$") ""))
8195 (substitute* "src/hdf5/configure"
8199 `(("r-zlibbioc" ,r-zlibbioc)))
8203 (home-page "http://bioconductor.org/packages/rhdf5")
8204 (synopsis "HDF5 interface to R")
8206 "This R/Bioconductor package provides an interface between HDF5 and R.
8207 HDF5's main features are the ability to store and access very large and/or
8208 complex datasets and a wide variety of metadata on mass storage (disk) through
8209 a completely portable file format. The rhdf5 package is thus suited for the
8210 exchange of large and/or complex datasets between R and other software
8211 package, and for letting R applications work on datasets that are larger than
8212 the available RAM.")
8213 (license license:artistic2.0)))
8215 (define-public emboss
8221 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8222 (version-major+minor version) ".0/"
8223 "EMBOSS-" version ".tar.gz"))
8226 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8227 (build-system gnu-build-system)
8230 (list (string-append "--with-hpdf="
8231 (assoc-ref %build-inputs "libharu")))
8233 (modify-phases %standard-phases
8234 (add-after 'unpack 'fix-checks
8236 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8237 ;; and zlib, but assume that they are all found at the same
8239 (substitute* "configure.in"
8240 (("CHECK_PNGDRIVER")
8241 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8242 AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8243 AM_CONDITIONAL(AMPNG, true)"))
8245 (add-after 'unpack 'disable-update-check
8247 ;; At build time there is no connection to the Internet, so
8248 ;; looking for updates will not work.
8249 (substitute* "Makefile.am"
8250 (("\\$\\(bindir\\)/embossupdate") ""))
8252 (add-before 'configure 'autogen
8253 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
8259 ("libharu" ,libharu)
8262 `(("autoconf" ,autoconf)
8263 ("automake" ,automake)
8264 ("libtool" ,libtool)
8265 ("pkg-config" ,pkg-config)))
8266 (home-page "http://emboss.sourceforge.net")
8267 (synopsis "Molecular biology analysis suite")
8268 (description "EMBOSS is the \"European Molecular Biology Open Software
8269 Suite\". EMBOSS is an analysis package specially developed for the needs of
8270 the molecular biology (e.g. EMBnet) user community. The software
8271 automatically copes with data in a variety of formats and even allows
8272 transparent retrieval of sequence data from the web. It also provides a
8273 number of libraries for the development of software in the field of molecular
8274 biology. EMBOSS also integrates a range of currently available packages and
8275 tools for sequence analysis into a seamless whole.")
8276 (license license:gpl2+)))
8279 (let ((revision "1")
8280 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8283 ;; The version is 2.13.0 even though no release archives have been
8284 ;; published as yet.
8285 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8289 (url "https://github.com/arq5x/bits.git")
8291 (file-name (string-append name "-" version "-checkout"))
8294 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8295 (build-system gnu-build-system)
8297 `(#:tests? #f ;no tests included
8299 (modify-phases %standard-phases
8301 (add-after 'unpack 'remove-cuda
8303 (substitute* "Makefile"
8305 (("(bits_test_intersections) \\\\" _ match) match))
8308 (lambda* (#:key outputs #:allow-other-keys)
8310 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8315 (home-page "https://github.com/arq5x/bits")
8316 (synopsis "Implementation of binary interval search algorithm")
8317 (description "This package provides an implementation of the
8318 BITS (Binary Interval Search) algorithm, an approach to interval set
8319 intersection. It is especially suited for the comparison of diverse genomic
8320 datasets and the exploration of large datasets of genome
8321 intervals (e.g. genes, sequence alignments).")
8322 (license license:gpl2))))
8324 (define-public piranha
8325 ;; There is no release tarball for the latest version. The latest commit is
8326 ;; older than one year at the time of this writing.
8327 (let ((revision "1")
8328 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8331 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8335 (url "https://github.com/smithlabcode/piranha.git")
8339 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
8340 (build-system gnu-build-system)
8342 `(#:test-target "test"
8344 (modify-phases %standard-phases
8345 (add-after 'unpack 'copy-smithlab-cpp
8346 (lambda* (#:key inputs #:allow-other-keys)
8347 (for-each (lambda (file)
8348 (install-file file "./src/smithlab_cpp/"))
8349 (find-files (assoc-ref inputs "smithlab-cpp")))
8351 (add-after 'install 'install-to-store
8352 (lambda* (#:key outputs #:allow-other-keys)
8353 (let* ((out (assoc-ref outputs "out"))
8354 (bin (string-append out "/bin")))
8355 (for-each (lambda (file)
8356 (install-file file bin))
8357 (find-files "bin" ".*")))
8360 (list (string-append "--with-bam_tools_headers="
8361 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
8362 (string-append "--with-bam_tools_library="
8363 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
8365 `(("bamtools" ,bamtools)
8366 ("samtools" ,samtools-0.1)
8369 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
8373 (url "https://github.com/smithlabcode/smithlab_cpp.git")
8375 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
8378 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
8380 `(("python" ,python-2)))
8381 (home-page "https://github.com/smithlabcode/piranha")
8382 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
8384 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
8385 RIP-seq experiments. It takes input in BED or BAM format and identifies
8386 regions of statistically significant read enrichment. Additional covariates
8387 may optionally be provided to further inform the peak-calling process.")
8388 (license license:gpl3+))))
8396 (uri (string-append "https://pypi.python.org/packages/source/P"
8397 "/PePr/PePr-" version ".tar.gz"))
8400 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
8401 (build-system python-build-system)
8403 `(#:python ,python-2 ; python2 only
8404 #:tests? #f)) ; no tests included
8406 `(("python2-numpy" ,python2-numpy)
8407 ("python2-scipy" ,python2-scipy)
8408 ("python2-pysam" ,python2-pysam)))
8409 (home-page "https://github.com/shawnzhangyx/PePr")
8410 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
8412 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
8413 that is primarily designed for data with biological replicates. It uses a
8414 negative binomial distribution to model the read counts among the samples in
8415 the same group, and look for consistent differences between ChIP and control
8416 group or two ChIP groups run under different conditions.")
8417 (license license:gpl3+)))
8419 (define-public filevercmp
8420 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
8423 (version (string-append "0-1." (string-take commit 7)))
8426 (uri (string-append "https://github.com/ekg/filevercmp/archive/"
8428 (file-name (string-append name "-" version ".tar.gz"))
8430 (base32 "0yp5jswf5j2pqc6517x277s4s6h1ss99v57kxw9gy0jkfl3yh450"))))
8431 (build-system gnu-build-system)
8433 `(#:tests? #f ; There are no tests to run.
8435 (modify-phases %standard-phases
8436 (delete 'configure) ; There is no configure phase.
8438 (lambda* (#:key outputs #:allow-other-keys)
8439 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
8440 (install-file "filevercmp" bin)))))))
8441 (home-page "https://github.com/ekg/filevercmp")
8442 (synopsis "This program compares version strings")
8443 (description "This program compares version strings. It intends to be a
8444 replacement for strverscmp.")
8445 (license license:gpl3+))))
8447 (define-public multiqc
8454 (uri (pypi-uri "multiqc" version))
8457 "12gs1jw2jrxrij529rnl5kaqxfcqn15yzcsggxkfhdx634ml0cny"))
8458 (patches (search-patches "multiqc-fix-git-subprocess-error.patch"))))
8459 (build-system python-build-system)
8461 ;; Tests are to be introduced in the next version, see
8462 ;; https://github.com/ewels/MultiQC/issues/376
8465 `(("python-jinja2" ,python-jinja2)
8466 ("python-simplejson" ,python-simplejson)
8467 ("python-pyyaml" ,python-pyyaml)
8468 ("python-click" ,python-click)
8469 ("python-matplotlib" ,python-matplotlib)
8470 ("python-numpy" ,python-numpy)
8471 ;; MultQC checks for the presence of nose at runtime.
8472 ("python-nose" ,python-nose)))
8473 (home-page "http://multiqc.info")
8474 (synopsis "Aggregate bioinformatics analysis reports")
8476 "MultiQC is a tool to aggregate bioinformatics results across many
8477 samples into a single report. It contains modules for a large number of
8478 common bioinformatics tools.")
8479 (license license:gpl3)))
8481 (define-public r-chipseq
8488 (uri (bioconductor-uri "chipseq" version))
8491 "1hahyqiwb2ch8214xqpw0c3jpiwkmyf3dwz0xc87jx6cdnzipj3i"))))
8492 (build-system r-build-system)
8494 `(("r-biocgenerics" ,r-biocgenerics)
8495 ("r-genomicranges" ,r-genomicranges)
8496 ("r-iranges" ,r-iranges)
8497 ("r-s4vectors" ,r-s4vectors)
8498 ("r-shortread" ,r-shortread)))
8499 (home-page "http://bioconductor.org/packages/chipseq")
8500 (synopsis "Package for analyzing ChIPseq data")
8502 "This package provides tools for processing short read data from ChIPseq
8504 (license license:artistic2.0)))
8506 (define-public r-copyhelper
8508 (name "r-copyhelper")
8513 (uri (string-append "http://bioconductor.org/packages/release/"
8514 "data/experiment/src/contrib/CopyhelpeR_"
8518 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
8519 (properties `((upstream-name . "CopyhelpeR")))
8520 (build-system r-build-system)
8521 (home-page "http://bioconductor.org/packages/CopyhelpeR/")
8522 (synopsis "Helper files for CopywriteR")
8524 "This package contains the helper files that are required to run the
8525 Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
8526 and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
8527 mm10. In addition, it contains a blacklist filter to remove regions that
8528 display copy number variation. Files are stored as GRanges objects from the
8529 GenomicRanges Bioconductor package.")
8530 (license license:gpl2)))
8532 (define-public r-copywriter
8534 (name "r-copywriter")
8539 (uri (bioconductor-uri "CopywriteR" version))
8542 "183nmrqmdf9syqljslvwv7mhs9ar5xizzq98imgsc80q0m25ncjf"))))
8543 (properties `((upstream-name . "CopywriteR")))
8544 (build-system r-build-system)
8546 `(("r-biocparallel" ,r-biocparallel)
8547 ("r-chipseq" ,r-chipseq)
8548 ("r-copyhelper" ,r-copyhelper)
8549 ("r-data-table" ,r-data-table)
8550 ("r-dnacopy" ,r-dnacopy)
8551 ("r-futile-logger" ,r-futile-logger)
8552 ("r-genomeinfodb" ,r-genomeinfodb)
8553 ("r-genomicalignments" ,r-genomicalignments)
8554 ("r-genomicranges" ,r-genomicranges)
8555 ("r-gtools" ,r-gtools)
8556 ("r-iranges" ,r-iranges)
8557 ("r-matrixstats" ,r-matrixstats)
8558 ("r-rsamtools" ,r-rsamtools)
8559 ("r-s4vectors" ,r-s4vectors)))
8560 (home-page "https://github.com/PeeperLab/CopywriteR")
8561 (synopsis "Copy number information from targeted sequencing")
8563 "CopywriteR extracts DNA copy number information from targeted sequencing
8564 by utilizing off-target reads. It allows for extracting uniformly distributed
8565 copy number information, can be used without reference, and can be applied to
8566 sequencing data obtained from various techniques including chromatin
8567 immunoprecipitation and target enrichment on small gene panels. Thereby,
8568 CopywriteR constitutes a widely applicable alternative to available copy
8569 number detection tools.")
8570 (license license:gpl2)))
8572 (define-public r-sva
8579 (uri (bioconductor-uri "sva" version))
8582 "04pxl61iyc845wmqca1qv8kbb8zcp0qp72zgvgki3zzmrph9a362"))))
8583 (build-system r-build-system)
8585 `(("r-genefilter" ,r-genefilter)
8586 ("r-mgcv" ,r-mgcv)))
8587 (home-page "http://bioconductor.org/packages/sva")
8588 (synopsis "Surrogate variable analysis")
8590 "This package contains functions for removing batch effects and other
8591 unwanted variation in high-throughput experiment. It also contains functions
8592 for identifying and building surrogate variables for high-dimensional data
8593 sets. Surrogate variables are covariates constructed directly from
8594 high-dimensional data like gene expression/RNA sequencing/methylation/brain
8595 imaging data that can be used in subsequent analyses to adjust for unknown,
8596 unmodeled, or latent sources of noise.")
8597 (license license:artistic2.0)))
8599 (define-public r-seqminer
8606 (uri (cran-uri "seqminer" version))
8609 "0sfkxrc9gy5a8fadzyzfzh7l5grasm8cj6cd2nnpv85ws6mqr6qd"))))
8610 (build-system r-build-system)
8613 (home-page "http://seqminer.genomic.codes")
8614 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
8616 "This package provides tools to integrate nucleotide sequencing
8617 data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
8618 ;; Any version of the GPL is acceptable
8619 (license (list license:gpl2+ license:gpl3+))))
8621 (define-public r-raremetals2
8623 (name "r-raremetals2")
8628 (uri (string-append "http://genome.sph.umich.edu/w/images/"
8629 "b/b7/RareMETALS2_" version ".tar.gz"))
8632 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
8633 (properties `((upstream-name . "RareMETALS2")))
8634 (build-system r-build-system)
8636 `(("r-seqminer" ,r-seqminer)
8637 ("r-mvtnorm" ,r-mvtnorm)
8639 ("r-compquadform" ,r-compquadform)
8640 ("r-getopt" ,r-getopt)))
8641 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
8642 (synopsis "Analyze gene-level association tests for binary trait")
8644 "The R package rareMETALS2 is an extension of the R package rareMETALS.
8645 It was designed to meta-analyze gene-level association tests for binary trait.
8646 While rareMETALS offers a near-complete solution for meta-analysis of
8647 gene-level tests for quantitative trait, it does not offer the optimal
8648 solution for binary trait. The package rareMETALS2 offers improved features
8649 for analyzing gene-level association tests in meta-analyses for binary
8651 (license license:gpl3)))
8653 (define-public r-maldiquant
8655 (name "r-maldiquant")
8660 (uri (cran-uri "MALDIquant" version))
8663 "0z5srzsfgsgi4bssr4chls4ry6d18y2g9143znqmraylppwrrqzr"))))
8664 (properties `((upstream-name . "MALDIquant")))
8665 (build-system r-build-system)
8666 (home-page "http://cran.r-project.org/web/packages/MALDIquant")
8667 (synopsis "Quantitative analysis of mass spectrometry data")
8669 "This package provides a complete analysis pipeline for matrix-assisted
8670 laser desorption/ionization-time-of-flight (MALDI-TOF) and other
8671 two-dimensional mass spectrometry data. In addition to commonly used plotting
8672 and processing methods it includes distinctive features, namely baseline
8673 subtraction methods such as morphological filters (TopHat) or the
8674 statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
8675 alignment using warping functions, handling of replicated measurements as well
8676 as allowing spectra with different resolutions.")
8677 (license license:gpl3+)))
8679 (define-public r-protgenerics
8681 (name "r-protgenerics")
8686 (uri (bioconductor-uri "ProtGenerics" version))
8689 "08idb3rvxn4fl7rd66jasyqz47cb76dbc3968r1g26jr2ci3w1pl"))))
8690 (properties `((upstream-name . "ProtGenerics")))
8691 (build-system r-build-system)
8692 (home-page "https://github.com/lgatto/ProtGenerics")
8693 (synopsis "S4 generic functions for proteomics infrastructure")
8695 "This package provides S4 generic functions needed by Bioconductor
8696 proteomics packages.")
8697 (license license:artistic2.0)))
8699 (define-public r-mzr
8706 (uri (bioconductor-uri "mzR" version))
8709 "1zir46h320n2vbrky6q3m8l221f3wdjlfsnx4ak9xca5min24xm7"))))
8710 (properties `((upstream-name . "mzR")))
8711 (build-system r-build-system)
8713 `(("netcdf" ,netcdf)))
8715 `(("r-biobase" ,r-biobase)
8716 ("r-biocgenerics" ,r-biocgenerics)
8717 ("r-protgenerics" ,r-protgenerics)
8719 ("r-zlibbioc" ,r-zlibbioc)))
8720 (home-page "https://github.com/sneumann/mzR/")
8721 (synopsis "Parser for mass spectrometry data files")
8723 "The mzR package provides a unified API to the common file formats and
8724 parsers available for mass spectrometry data. It comes with a wrapper for the
8725 ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
8726 The package contains the original code written by the ISB, and a subset of the
8727 proteowizard library for mzML and mzIdentML. The netCDF reading code has
8728 previously been used in XCMS.")
8729 (license license:artistic2.0)))
8731 (define-public r-affyio
8738 (uri (bioconductor-uri "affyio" version))
8741 "13w6al9296q916w0w6ngbsk25b21ahla1b6n40fcqhbvhyfii6sj"))))
8742 (build-system r-build-system)
8744 `(("r-zlibbioc" ,r-zlibbioc)))
8747 (home-page "https://github.com/bmbolstad/affyio")
8748 (synopsis "Tools for parsing Affymetrix data files")
8750 "This package provides routines for parsing Affymetrix data files based
8751 upon file format information. The primary focus is on accessing the CEL and
8753 (license license:lgpl2.0+)))
8755 (define-public r-affy
8762 (uri (bioconductor-uri "affy" version))
8765 "0azwg2qxzgflr1rjvbdln5i5rbcr9gs36kqlacd9cwl1szb9ad3m"))))
8766 (build-system r-build-system)
8768 `(("r-affyio" ,r-affyio)
8769 ("r-biobase" ,r-biobase)
8770 ("r-biocgenerics" ,r-biocgenerics)
8771 ("r-biocinstaller" ,r-biocinstaller)
8772 ("r-preprocesscore" ,r-preprocesscore)
8773 ("r-zlibbioc" ,r-zlibbioc)))
8774 (home-page "http://bioconductor.org/packages/affy")
8775 (synopsis "Methods for affymetrix oligonucleotide arrays")
8777 "This package contains functions for exploratory oligonucleotide array
8779 (license license:lgpl2.0+)))
8781 (define-public r-vsn
8788 (uri (bioconductor-uri "vsn" version))
8791 "0qhg3a4sc62pfdxcpvmk831rk138xh4zx4f1s39jhxpqqhmr7jvk"))))
8792 (build-system r-build-system)
8794 `(("r-affy" ,r-affy)
8795 ("r-biobase" ,r-biobase)
8796 ("r-ggplot2" ,r-ggplot2)
8797 ("r-hexbin" ,r-hexbin)
8798 ("r-lattice" ,r-lattice)
8799 ("r-limma" ,r-limma)))
8800 (home-page "http://bioconductor.org/packages/release/bioc/html/vsn.html")
8801 (synopsis "Variance stabilization and calibration for microarray data")
8803 "The package implements a method for normalising microarray intensities,
8804 and works for single- and multiple-color arrays. It can also be used for data
8805 from other technologies, as long as they have similar format. The method uses
8806 a robust variant of the maximum-likelihood estimator for an
8807 additive-multiplicative error model and affine calibration. The model
8808 incorporates data calibration step (a.k.a. normalization), a model for the
8809 dependence of the variance on the mean intensity and a variance stabilizing
8810 data transformation. Differences between transformed intensities are
8811 analogous to \"normalized log-ratios\". However, in contrast to the latter,
8812 their variance is independent of the mean, and they are usually more sensitive
8813 and specific in detecting differential transcription.")
8814 (license license:artistic2.0)))
8816 (define-public r-mzid
8823 (uri (bioconductor-uri "mzID" version))
8826 "11xnild02jz24vbsfy92lb7jlqqwnrswg66a7r4rsw8d2ibrbk33"))))
8827 (properties `((upstream-name . "mzID")))
8828 (build-system r-build-system)
8830 `(("r-doparallel" ,r-doparallel)
8831 ("r-foreach" ,r-foreach)
8832 ("r-iterators" ,r-iterators)
8834 ("r-protgenerics" ,r-protgenerics)
8837 (home-page "http://bioconductor.org/packages/mzID")
8838 (synopsis "Parser for mzIdentML files")
8840 "This package provides a parser for mzIdentML files implemented using the
8841 XML package. The parser tries to be general and able to handle all types of
8842 mzIdentML files with the drawback of having less pretty output than a vendor
8844 (license license:gpl2+)))
8846 (define-public r-pcamethods
8848 (name "r-pcamethods")
8853 (uri (bioconductor-uri "pcaMethods" version))
8856 "0c4lphqyzj577ws4s172391cgv00s5nhy152zp18k2k4diyhq6n0"))))
8857 (properties `((upstream-name . "pcaMethods")))
8858 (build-system r-build-system)
8860 `(("r-biobase" ,r-biobase)
8861 ("r-biocgenerics" ,r-biocgenerics)
8863 ("r-rcpp" ,r-rcpp)))
8864 (home-page "https://github.com/hredestig/pcamethods")
8865 (synopsis "Collection of PCA methods")
8867 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
8868 Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
8869 for missing value estimation is included for comparison. BPCA, PPCA and
8870 NipalsPCA may be used to perform PCA on incomplete data as well as for
8871 accurate missing value estimation. A set of methods for printing and plotting
8872 the results is also provided. All PCA methods make use of the same data
8873 structure (pcaRes) to provide a common interface to the PCA results.")
8874 (license license:gpl3+)))
8876 (define-public r-msnbase
8883 (uri (bioconductor-uri "MSnbase" version))
8886 "1n9bbdlp8d8bx2mqby0c4yylz1yil42scbkxqgyrfr9s5sn6dqff"))))
8887 (properties `((upstream-name . "MSnbase")))
8888 (build-system r-build-system)
8890 `(("r-affy" ,r-affy)
8891 ("r-biobase" ,r-biobase)
8892 ("r-biocgenerics" ,r-biocgenerics)
8893 ("r-biocparallel" ,r-biocparallel)
8894 ("r-digest" ,r-digest)
8895 ("r-ggplot2" ,r-ggplot2)
8896 ("r-impute" ,r-impute)
8897 ("r-iranges" ,r-iranges)
8898 ("r-maldiquant" ,r-maldiquant)
8901 ("r-pcamethods" ,r-pcamethods)
8903 ("r-preprocesscore" ,r-preprocesscore)
8904 ("r-protgenerics" ,r-protgenerics)
8906 ("r-reshape2" ,r-reshape2)
8907 ("r-s4vectors" ,r-s4vectors)
8910 (home-page "https://github.com/lgatto/MSnbase")
8911 (synopsis "Base functions and classes for MS-based proteomics")
8913 "This package provides basic plotting, data manipulation and processing
8914 of mass spectrometry based proteomics data.")
8915 (license license:artistic2.0)))
8917 (define-public r-msnid
8924 (uri (bioconductor-uri "MSnID" version))
8927 "0pjwargi5lif8q53fd43ql67p3yk9w10jychafd9qgbaw5k3f68k"))))
8928 (properties `((upstream-name . "MSnID")))
8929 (build-system r-build-system)
8931 `(("r-biobase" ,r-biobase)
8932 ("r-data-table" ,r-data-table)
8933 ("r-doparallel" ,r-doparallel)
8934 ("r-dplyr" ,r-dplyr)
8935 ("r-foreach" ,r-foreach)
8936 ("r-iterators" ,r-iterators)
8937 ("r-msnbase" ,r-msnbase)
8940 ("r-protgenerics" ,r-protgenerics)
8941 ("r-r-cache" ,r-r-cache)
8943 ("r-reshape2" ,r-reshape2)))
8944 (home-page "http://bioconductor.org/packages/MSnID")
8945 (synopsis "Utilities for LC-MSn proteomics identifications")
8947 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
8948 from mzIdentML (leveraging the mzID package) or text files. After collating
8949 the search results from multiple datasets it assesses their identification
8950 quality and optimize filtering criteria to achieve the maximum number of
8951 identifications while not exceeding a specified false discovery rate. It also
8952 contains a number of utilities to explore the MS/MS results and assess missed
8953 and irregular enzymatic cleavages, mass measurement accuracy, etc.")
8954 (license license:artistic2.0)))
8956 (define-public r-seurat
8957 ;; Source releases are only made for new x.0 versions. All newer versions
8958 ;; are only released as pre-built binaries. At the time of this writing the
8959 ;; latest binary release is 1.4.0.12, which is equivalent to this commit.
8960 (let ((commit "fccb77d1452c35ee47e47ebf8e87bddb59f3b08d")
8964 (version (string-append "1.4.0.12-" revision "." (string-take commit 7)))
8968 (url "https://github.com/satijalab/seurat")
8970 (file-name (string-append name "-" version "-checkout"))
8973 "101wq3aqrdmbfi3lqmq4iivk9iwbf10d4z216ss25hf7n9091cyl"))
8974 ;; Delete pre-built jar.
8976 '(begin (delete-file "inst/java/ModularityOptimizer.jar")
8978 (build-system r-build-system)
8981 (modify-phases %standard-phases
8982 (add-after 'unpack 'build-jar
8983 (lambda* (#:key inputs #:allow-other-keys)
8984 (let ((classesdir "tmp-classes"))
8985 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
8987 (and (zero? (apply system* `("javac" "-d" ,classesdir
8988 ,@(find-files "java" "\\.java$"))))
8989 (zero? (system* "jar"
8990 "-cf" "inst/java/ModularityOptimizer.jar"
8991 "-C" classesdir ".")))))))))
8993 `(("jdk" ,icedtea "jdk")))
8996 ("r-caret" ,r-caret)
8997 ("r-cowplot" ,r-cowplot)
8998 ("r-dplyr" ,r-dplyr)
8999 ("r-fastica" ,r-fastica)
9002 ("r-gdata" ,r-gdata)
9003 ("r-ggplot2" ,r-ggplot2)
9004 ("r-gplots" ,r-gplots)
9005 ("r-gridextra" ,r-gridextra)
9006 ("r-igraph" ,r-igraph)
9007 ("r-irlba" ,r-irlba)
9009 ("r-mixtools" ,r-mixtools)
9010 ("r-pbapply" ,r-pbapply)
9012 ("r-ranger" ,r-ranger)
9013 ("r-rcolorbrewer" ,r-rcolorbrewer)
9015 ("r-rcppeigen" ,r-rcppeigen)
9016 ("r-rcppprogress" ,r-rcppprogress)
9017 ("r-reshape2" ,r-reshape2)
9019 ("r-rtsne" ,r-rtsne)
9020 ("r-stringr" ,r-stringr)
9021 ("r-tclust" ,r-tclust)
9023 ("r-vgam" ,r-vgam)))
9024 (home-page "http://www.satijalab.org/seurat")
9025 (synopsis "Seurat is an R toolkit for single cell genomics")
9027 "This package is an R package designed for QC, analysis, and
9028 exploration of single cell RNA-seq data. It easily enables widely-used
9029 analytical techniques, including the identification of highly variable genes,
9030 dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9031 algorithms; density clustering, hierarchical clustering, k-means, and the
9032 discovery of differentially expressed genes and markers.")
9033 (license license:gpl3))))
9035 (define-public r-aroma-light
9037 (name "r-aroma-light")
9042 (uri (bioconductor-uri "aroma.light" version))
9045 "10snykmmx36qaymyf5s1n1km8hsscyzpykcpf0mzsrcv8ml9rp8a"))))
9046 (properties `((upstream-name . "aroma.light")))
9047 (build-system r-build-system)
9049 `(("r-matrixstats" ,r-matrixstats)
9050 ("r-r-methodss3" ,r-r-methodss3)
9052 ("r-r-utils" ,r-r-utils)))
9053 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9054 (synopsis "Methods for normalization and visualization of microarray data")
9056 "This package provides methods for microarray analysis that take basic
9057 data types such as matrices and lists of vectors. These methods can be used
9058 standalone, be utilized in other packages, or be wrapped up in higher-level
9060 (license license:gpl2+)))
9062 (define-public r-deseq
9069 (uri (bioconductor-uri "DESeq" version))
9072 "0j3dgcxd64m9qknmlcbdzvg4xhp981xd6nbwsvnqjfn6yypslgyw"))))
9073 (properties `((upstream-name . "DESeq")))
9074 (build-system r-build-system)
9076 `(("r-biobase" ,r-biobase)
9077 ("r-biocgenerics" ,r-biocgenerics)
9078 ("r-genefilter" ,r-genefilter)
9079 ("r-geneplotter" ,r-geneplotter)
9080 ("r-lattice" ,r-lattice)
9081 ("r-locfit" ,r-locfit)
9083 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9084 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9085 (synopsis "Differential gene expression analysis")
9087 "This package provides tools for estimating variance-mean dependence in
9088 count data from high-throughput genetic sequencing assays and for testing for
9089 differential expression based on a model using the negative binomial
9091 (license license:gpl3+)))
9093 (define-public r-edaseq
9100 (uri (bioconductor-uri "EDASeq" version))
9103 "0f25dfc8hdii9fjm3bf89vy9jkxv23sa62fkcga5b4gkipwrvm9a"))))
9104 (properties `((upstream-name . "EDASeq")))
9105 (build-system r-build-system)
9107 `(("r-annotationdbi" ,r-annotationdbi)
9108 ("r-aroma-light" ,r-aroma-light)
9109 ("r-biobase" ,r-biobase)
9110 ("r-biocgenerics" ,r-biocgenerics)
9111 ("r-biomart" ,r-biomart)
9112 ("r-biostrings" ,r-biostrings)
9113 ("r-deseq" ,r-deseq)
9114 ("r-genomicfeatures" ,r-genomicfeatures)
9115 ("r-genomicranges" ,r-genomicranges)
9116 ("r-iranges" ,r-iranges)
9117 ("r-rsamtools" ,r-rsamtools)
9118 ("r-shortread" ,r-shortread)))
9119 (home-page "https://github.com/drisso/EDASeq")
9120 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9122 "This package provides support for numerical and graphical summaries of
9123 RNA-Seq genomic read data. Provided within-lane normalization procedures to
9124 adjust for GC-content effect (or other gene-level effects) on read counts:
9125 loess robust local regression, global-scaling, and full-quantile
9126 normalization. Between-lane normalization procedures to adjust for
9127 distributional differences between lanes (e.g., sequencing depth):
9128 global-scaling and full-quantile normalization.")
9129 (license license:artistic2.0)))
9131 (define htslib-for-sambamba
9132 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
9135 (name "htslib-for-sambamba")
9136 (version (string-append "1.3.1-1." (string-take commit 9)))
9141 (url "https://github.com/lomereiter/htslib.git")
9143 (file-name (string-append "htslib-" version "-checkout"))
9146 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
9148 (substitute-keyword-arguments (package-arguments htslib)
9150 `(modify-phases ,phases
9151 (add-before 'configure 'bootstrap
9153 (zero? (system* "autoreconf" "-vif"))))))))
9155 `(("autoconf" ,autoconf)
9156 ("automake" ,automake)
9157 ,@(package-native-inputs htslib))))))
9159 (define-public sambamba
9166 (uri (string-append "https://github.com/lomereiter/sambamba/"
9167 "archive/v" version ".tar.gz"))
9168 (file-name (string-append name "-" version ".tar.gz"))
9171 "17076gijd65a3f07zns2gvbgahiz5lriwsa6dq353ss3jl85d8vy"))))
9172 (build-system gnu-build-system)
9174 `(#:tests? #f ; there is no test target
9177 ;; Override "--compiler" flag only.
9178 "D_FLAGS=--compiler=ldc2 -IBioD -g -d"
9179 "sambamba-ldmd2-64")
9181 (modify-phases %standard-phases
9183 (add-after 'unpack 'place-biod
9184 (lambda* (#:key inputs #:allow-other-keys)
9185 (copy-recursively (assoc-ref inputs "biod") "BioD")
9187 (add-after 'unpack 'unbundle-prerequisites
9189 (substitute* "Makefile"
9190 ((" htslib-static lz4-static") ""))
9193 (lambda* (#:key outputs #:allow-other-keys)
9194 (let* ((out (assoc-ref outputs "out"))
9195 (bin (string-append out "/bin")))
9197 (install-file "build/sambamba" bin)
9203 ,(let ((commit "1248586b54af4bd4dfb28ebfebfc6bf012e7a587"))
9207 (url "https://github.com/biod/BioD.git")
9209 (file-name (string-append "biod-"
9210 (string-take commit 9)
9214 "1m8hi1n7x0ri4l6s9i0x6jg4z4v94xrfdzp7mbizdipfag0m17g3")))))))
9217 ("htslib" ,htslib-for-sambamba)))
9218 (home-page "http://lomereiter.github.io/sambamba")
9219 (synopsis "Tools for working with SAM/BAM data")
9220 (description "Sambamba is a high performance modern robust and
9221 fast tool (and library), written in the D programming language, for
9222 working with SAM and BAM files. Current parallelised functionality is
9223 an important subset of samtools functionality, including view, index,
9224 sort, markdup, and depth.")
9225 (license license:gpl2+)))
9227 (define-public ritornello
9233 (uri (string-append "https://github.com/KlugerLab/"
9234 "Ritornello/archive/v"
9236 (file-name (string-append name "-" version ".tar.gz"))
9239 "02nik86gq9ljjriv6pamwlmqnfky3ads1fpklx6mc3hx6k40pg38"))))
9240 (build-system gnu-build-system)
9242 `(#:tests? #f ; there are no tests
9244 (modify-phases %standard-phases
9245 (add-after 'unpack 'patch-samtools-references
9246 (lambda* (#:key inputs #:allow-other-keys)
9247 (substitute* '("src/SamStream.h"
9248 "src/BufferedGenomeReader.h")
9249 (("<sam.h>") "<samtools/sam.h>"))
9253 (lambda* (#:key inputs outputs #:allow-other-keys)
9254 (let* ((out (assoc-ref outputs "out"))
9255 (bin (string-append out "/bin/")))
9257 (install-file "bin/Ritornello" bin)
9260 `(("samtools" ,samtools-0.1)
9264 (home-page "https://github.com/KlugerLab/Ritornello")
9265 (synopsis "Control-free peak caller for ChIP-seq data")
9266 (description "Ritornello is a ChIP-seq peak calling algorithm based on
9267 signal processing that can accurately call binding events without the need to
9268 do a pair total DNA input or IgG control sample. It has been tested for use
9269 with narrow binding events such as transcription factor ChIP-seq.")
9270 (license license:gpl3+)))
9272 (define-public trim-galore
9274 (name "trim-galore")
9279 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
9280 "projects/trim_galore/trim_galore_v"
9284 "0b9qdxi4521gsrjvbhgky8g7kry9b5nx3byzaxkgxz7p4k8bn1mn"))))
9285 (build-system gnu-build-system)
9287 `(#:tests? #f ; no tests
9289 (modify-phases %standard-phases
9290 ;; The archive contains plain files.
9292 (lambda* (#:key source #:allow-other-keys)
9293 (zero? (system* "unzip" source))))
9296 (add-after 'unpack 'hardcode-tool-references
9297 (lambda* (#:key inputs #:allow-other-keys)
9298 (substitute* "trim_galore"
9299 (("\\$path_to_cutadapt = 'cutadapt'")
9300 (string-append "$path_to_cutadapt = '"
9301 (assoc-ref inputs "cutadapt")
9305 (assoc-ref inputs "gzip")
9309 (assoc-ref inputs "gzip")
9313 (lambda* (#:key outputs #:allow-other-keys)
9314 (let ((bin (string-append (assoc-ref outputs "out")
9317 (install-file "trim_galore" bin)
9322 ("cutadapt" ,cutadapt)))
9324 `(("unzip" ,unzip)))
9325 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
9326 (synopsis "Wrapper around Cutadapt and FastQC")
9327 (description "Trim Galore! is a wrapper script to automate quality and
9328 adapter trimming as well as quality control, with some added functionality to
9329 remove biased methylation positions for RRBS sequence files.")
9330 (license license:gpl3+)))