gnu: r-msnbase: Update to 2.10.0.
[jackhill/guix/guix.git] / gnu / packages / bioinformatics.scm
CommitLineData
4e10a221 1;;; GNU Guix --- Functional package management for GNU
e942813a 2;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
7502badb 3;;; Copyright © 2015, 2016, 2017, 2018 Ben Woodcroft <donttrustben@gmail.com>
8921841d 4;;; Copyright © 2015, 2016 Pjotr Prins <pjotr.guix@thebird.nl>
a5002ae7 5;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
a0a71439 6;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
6fd2ed23 7;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
318c0aee 8;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
658ab21d 9;;; Copyright © 2016, 2018 Raoul Bonnal <ilpuccio.febo@gmail.com>
ddf38ece 10;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
9364a520 11;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
32cbbac1 12;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
d60772dc 13;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
4f9355c3 14;;; Copyright © 2018 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
155194d9 15;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
4e10a221
RW
16;;;
17;;; This file is part of GNU Guix.
18;;;
19;;; GNU Guix is free software; you can redistribute it and/or modify it
20;;; under the terms of the GNU General Public License as published by
21;;; the Free Software Foundation; either version 3 of the License, or (at
22;;; your option) any later version.
23;;;
24;;; GNU Guix is distributed in the hope that it will be useful, but
25;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27;;; GNU General Public License for more details.
28;;;
29;;; You should have received a copy of the GNU General Public License
30;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31
32(define-module (gnu packages bioinformatics)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (guix packages)
8e913213 35 #:use-module (guix utils)
4e10a221 36 #:use-module (guix download)
2c16316e 37 #:use-module (guix git-download)
ec946638 38 #:use-module (guix hg-download)
10b4a969 39 #:use-module (guix build-system ant)
4e10a221 40 #:use-module (guix build-system gnu)
d7678942 41 #:use-module (guix build-system cmake)
d71078bc 42 #:use-module (guix build-system haskell)
55154c5f 43 #:use-module (guix build-system meson)
c033f5d6 44 #:use-module (guix build-system ocaml)
365c8153 45 #:use-module (guix build-system perl)
8622a072 46 #:use-module (guix build-system python)
a5002ae7 47 #:use-module (guix build-system r)
9c38b540 48 #:use-module (guix build-system ruby)
9364a520 49 #:use-module (guix build-system scons)
d3517eda 50 #:use-module (guix build-system trivial)
4e10a221 51 #:use-module (gnu packages)
a2950fa4 52 #:use-module (gnu packages autotools)
684bf7c7 53 #:use-module (gnu packages algebra)
d3517eda 54 #:use-module (gnu packages base)
318c0aee 55 #:use-module (gnu packages bash)
a0a71439 56 #:use-module (gnu packages bison)
d53aeeaf 57 #:use-module (gnu packages bioconductor)
e4e5a4d8 58 #:use-module (gnu packages boost)
ac257f12 59 #:use-module (gnu packages check)
4e10a221 60 #:use-module (gnu packages compression)
82c370de 61 #:use-module (gnu packages cpio)
7cb61550 62 #:use-module (gnu packages cran)
1baee943 63 #:use-module (gnu packages curl)
99828fa7 64 #:use-module (gnu packages documentation)
94820951 65 #:use-module (gnu packages databases)
d29150b5 66 #:use-module (gnu packages datastructures)
75dd2424 67 #:use-module (gnu packages file)
99268755 68 #:use-module (gnu packages flex)
02f35bb5 69 #:use-module (gnu packages gawk)
2409f37f 70 #:use-module (gnu packages gcc)
66e40e00 71 #:use-module (gnu packages gd)
97b9da68 72 #:use-module (gnu packages gtk)
b16728b0 73 #:use-module (gnu packages glib)
18f5d2a7 74 #:use-module (gnu packages graph)
db7a3444 75 #:use-module (gnu packages groff)
50937297 76 #:use-module (gnu packages guile)
0791437f 77 #:use-module (gnu packages guile-xyz)
89984be4 78 #:use-module (gnu packages haskell)
d71078bc
RW
79 #:use-module (gnu packages haskell-check)
80 #:use-module (gnu packages haskell-web)
66e40e00 81 #:use-module (gnu packages image)
97b9da68 82 #:use-module (gnu packages imagemagick)
15a3c3d4 83 #:use-module (gnu packages java)
24155bf4 84 #:use-module (gnu packages java-compression)
8d77a085 85 #:use-module (gnu packages jemalloc)
875d0681 86 #:use-module (gnu packages dlang)
51c64999 87 #:use-module (gnu packages linux)
38502a7d 88 #:use-module (gnu packages lisp)
ec946638 89 #:use-module (gnu packages logging)
36742f43 90 #:use-module (gnu packages machine-learning)
db7a3444 91 #:use-module (gnu packages man)
c833ab55 92 #:use-module (gnu packages maths)
6c2b26e2 93 #:use-module (gnu packages mpi)
4e10a221 94 #:use-module (gnu packages ncurses)
c033f5d6 95 #:use-module (gnu packages ocaml)
81f3e0c1 96 #:use-module (gnu packages pcre)
ceb62d54 97 #:use-module (gnu packages parallel)
66e40e00 98 #:use-module (gnu packages pdf)
4e10a221 99 #:use-module (gnu packages perl)
5ccde207 100 #:use-module (gnu packages perl-check)
4e10a221 101 #:use-module (gnu packages pkg-config)
bfe3c685 102 #:use-module (gnu packages popt)
e4e5a4d8 103 #:use-module (gnu packages protobuf)
346a829a 104 #:use-module (gnu packages python)
4fec042b 105 #:use-module (gnu packages python-compression)
589e3f4e 106 #:use-module (gnu packages python-web)
44d10b1f 107 #:use-module (gnu packages python-xyz)
ec946638 108 #:use-module (gnu packages readline)
9c38b540 109 #:use-module (gnu packages ruby)
84be3b99 110 #:use-module (gnu packages serialization)
94820951 111 #:use-module (gnu packages shells)
c833ab55 112 #:use-module (gnu packages statistics)
aa163424 113 #:use-module (gnu packages swig)
d7678942 114 #:use-module (gnu packages tbb)
97b9da68 115 #:use-module (gnu packages tex)
db7a3444 116 #:use-module (gnu packages texinfo)
2127cedb 117 #:use-module (gnu packages textutils)
43c565d2 118 #:use-module (gnu packages time)
a2950fa4 119 #:use-module (gnu packages tls)
ce7155d5 120 #:use-module (gnu packages vim)
365c8153 121 #:use-module (gnu packages web)
c833ab55 122 #:use-module (gnu packages xml)
66e40e00 123 #:use-module (gnu packages xorg)
2c9232ae 124 #:use-module (srfi srfi-1)
ce7e361f 125 #:use-module (ice-9 match))
4e10a221 126
8dc797fa
BW
127(define-public aragorn
128 (package
129 (name "aragorn")
e990c81d 130 (version "1.2.38")
8dc797fa
BW
131 (source (origin
132 (method url-fetch)
133 (uri (string-append
134 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
135 version ".tgz"))
136 (sha256
137 (base32
e990c81d 138 "09i1rg716smlbnixfm7q1ml2mfpaa2fpn3hwjg625ysmfwwy712b"))))
8dc797fa
BW
139 (build-system gnu-build-system)
140 (arguments
141 `(#:tests? #f ; there are no tests
142 #:phases
143 (modify-phases %standard-phases
144 (delete 'configure)
145 (replace 'build
95758e2f
RW
146 (lambda _
147 (invoke "gcc"
148 "-O3"
149 "-ffast-math"
150 "-finline-functions"
151 "-o"
152 "aragorn"
153 (string-append "aragorn" ,version ".c"))
154 #t))
8dc797fa 155 (replace 'install
95758e2f
RW
156 (lambda* (#:key outputs #:allow-other-keys)
157 (let* ((out (assoc-ref outputs "out"))
158 (bin (string-append out "/bin"))
159 (man (string-append out "/share/man/man1")))
160 (install-file "aragorn" bin)
161 (install-file "aragorn.1" man))
162 #t)))))
8dc797fa
BW
163 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
164 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
165 (description
166 "Aragorn identifies transfer RNA, mitochondrial RNA and
167transfer-messenger RNA from nucleotide sequences, based on homology to known
168tRNA consensus sequences and RNA structure. It also outputs the secondary
169structure of the predicted RNA.")
170 (license license:gpl2)))
171
a12ba6e8
BW
172(define-public bamm
173 (package
174 (name "bamm")
4b6da268 175 (version "1.7.3")
a12ba6e8 176 (source (origin
c793f4d8 177 (method git-fetch)
a12ba6e8 178 ;; BamM is not available on pypi.
c793f4d8
RW
179 (uri (git-reference
180 (url "https://github.com/Ecogenomics/BamM.git")
181 (commit version)
182 (recursive? #t)))
183 (file-name (git-file-name name version))
a12ba6e8
BW
184 (sha256
185 (base32
c793f4d8 186 "1p83ahi984ipslxlg4yqy1gdnya9rkn1v71z8djgxkm9d2chw4c5"))
a12ba6e8
BW
187 (modules '((guix build utils)))
188 (snippet
189 `(begin
190 ;; Delete bundled htslib.
191 (delete-file-recursively "c/htslib-1.3.1")
192 #t))))
193 (build-system python-build-system)
194 (arguments
195 `(#:python ,python-2 ; BamM is Python 2 only.
196 ;; Do not use bundled libhts. Do use the bundled libcfu because it has
197 ;; been modified from its original form.
198 #:configure-flags
199 (let ((htslib (assoc-ref %build-inputs "htslib")))
200 (list "--with-libhts-lib" (string-append htslib "/lib")
201 "--with-libhts-inc" (string-append htslib "/include/htslib")))
202 #:phases
203 (modify-phases %standard-phases
204 (add-after 'unpack 'autogen
205 (lambda _
206 (with-directory-excursion "c"
207 (let ((sh (which "sh")))
c793f4d8 208 (for-each make-file-writable (find-files "." ".*"))
a12ba6e8
BW
209 ;; Use autogen so that 'configure' works.
210 (substitute* "autogen.sh" (("/bin/sh") sh))
211 (setenv "CONFIG_SHELL" sh)
c793f4d8
RW
212 (invoke "./autogen.sh")))
213 #t))
a12ba6e8
BW
214 (delete 'build)
215 ;; Run tests after installation so compilation only happens once.
216 (delete 'check)
217 (add-after 'install 'wrap-executable
218 (lambda* (#:key outputs #:allow-other-keys)
219 (let* ((out (assoc-ref outputs "out"))
220 (path (getenv "PATH")))
221 (wrap-program (string-append out "/bin/bamm")
222 `("PATH" ":" prefix (,path))))
223 #t))
224 (add-after 'wrap-executable 'post-install-check
225 (lambda* (#:key inputs outputs #:allow-other-keys)
226 (setenv "PATH"
227 (string-append (assoc-ref outputs "out")
228 "/bin:"
229 (getenv "PATH")))
230 (setenv "PYTHONPATH"
231 (string-append
232 (assoc-ref outputs "out")
233 "/lib/python"
234 (string-take (string-take-right
235 (assoc-ref inputs "python") 5) 3)
236 "/site-packages:"
237 (getenv "PYTHONPATH")))
238 ;; There are 2 errors printed, but they are safe to ignore:
239 ;; 1) [E::hts_open_format] fail to open file ...
240 ;; 2) samtools view: failed to open ...
c793f4d8
RW
241 (invoke "nosetests")
242 #t)))))
a12ba6e8
BW
243 (native-inputs
244 `(("autoconf" ,autoconf)
245 ("automake" ,automake)
246 ("libtool" ,libtool)
247 ("zlib" ,zlib)
248 ("python-nose" ,python2-nose)
f3b98f4f 249 ("python-pysam" ,python2-pysam)))
a12ba6e8 250 (inputs
bca2c576 251 `(("htslib" ,htslib-1.3) ; At least one test fails on htslib-1.4+.
a12ba6e8
BW
252 ("samtools" ,samtools)
253 ("bwa" ,bwa)
254 ("grep" ,grep)
255 ("sed" ,sed)
256 ("coreutils" ,coreutils)))
257 (propagated-inputs
258 `(("python-numpy" ,python2-numpy)))
259 (home-page "http://ecogenomics.github.io/BamM/")
260 (synopsis "Metagenomics-focused BAM file manipulator")
261 (description
262 "BamM is a C library, wrapped in python, to efficiently generate and
263parse BAM files, specifically for the analysis of metagenomic data. For
264instance, it implements several methods to assess contig-wise read coverage.")
265 (license license:lgpl3+)))
266
9794180d
RW
267(define-public bamtools
268 (package
269 (name "bamtools")
4ffa0858 270 (version "2.5.1")
9794180d 271 (source (origin
8e58319c
RW
272 (method git-fetch)
273 (uri (git-reference
274 (url "https://github.com/pezmaster31/bamtools.git")
275 (commit (string-append "v" version))))
276 (file-name (git-file-name name version))
9794180d
RW
277 (sha256
278 (base32
8e58319c 279 "0nfb2ypcx9959xnbz6wxh6py3xfizgmg8nrknxl95c507m9hmq8b"))))
9794180d 280 (build-system cmake-build-system)
4702cec2
RW
281 (arguments
282 `(#:tests? #f ;no "check" target
283 #:phases
284 (modify-phases %standard-phases
285 (add-before
286 'configure 'set-ldflags
287 (lambda* (#:key outputs #:allow-other-keys)
288 (setenv "LDFLAGS"
289 (string-append
290 "-Wl,-rpath="
2e0f6905
MW
291 (assoc-ref outputs "out") "/lib/bamtools"))
292 #t)))))
9794180d
RW
293 (inputs `(("zlib" ,zlib)))
294 (home-page "https://github.com/pezmaster31/bamtools")
295 (synopsis "C++ API and command-line toolkit for working with BAM data")
296 (description
297 "BamTools provides both a C++ API and a command-line toolkit for handling
298BAM files.")
299 (license license:expat)))
300
bdc7be59
MB
301(define-public bcftools
302 (package
303 (name "bcftools")
f79b59e3 304 (version "1.9")
bdc7be59
MB
305 (source (origin
306 (method url-fetch)
f79b59e3
RW
307 (uri (string-append "https://github.com/samtools/bcftools/"
308 "releases/download/"
309 version "/bcftools-" version ".tar.bz2"))
bdc7be59
MB
310 (sha256
311 (base32
f79b59e3 312 "1j3h638i8kgihzyrlnpj82xg1b23sijibys9hvwari3fy7kd0dkg"))
bdc7be59 313 (modules '((guix build utils)))
6cbee49d
MW
314 (snippet '(begin
315 ;; Delete bundled htslib.
f79b59e3 316 (delete-file-recursively "htslib-1.9")
6cbee49d 317 #t))))
bdc7be59
MB
318 (build-system gnu-build-system)
319 (arguments
f79b59e3
RW
320 `(#:configure-flags
321 (list "--enable-libgsl")
322 #:test-target "test"
bdc7be59
MB
323 #:phases
324 (modify-phases %standard-phases
bdc7be59
MB
325 (add-before 'check 'patch-tests
326 (lambda _
327 (substitute* "test/test.pl"
328 (("/bin/bash") (which "bash")))
329 #t)))))
330 (native-inputs
331 `(("htslib" ,htslib)
332 ("perl" ,perl)))
333 (inputs
334 `(("gsl" ,gsl)
335 ("zlib" ,zlib)))
336 (home-page "https://samtools.github.io/bcftools/")
337 (synopsis "Utilities for variant calling and manipulating VCFs and BCFs")
338 (description
339 "BCFtools is a set of utilities that manipulate variant calls in the
340Variant Call Format (VCF) and its binary counterpart BCF. All commands work
341transparently with both VCFs and BCFs, both uncompressed and BGZF-compressed.")
342 ;; The sources are dual MIT/GPL, but becomes GPL-only when USE_GPL=1.
343 (license (list license:gpl3+ license:expat))))
344
8dd4ff11
RW
345(define-public bedops
346 (package
347 (name "bedops")
f8b697a3 348 (version "2.4.35")
8dd4ff11 349 (source (origin
f8b697a3
RW
350 (method git-fetch)
351 (uri (git-reference
352 (url "https://github.com/bedops/bedops.git")
353 (commit (string-append "v" version))))
354 (file-name (git-file-name name version))
8dd4ff11
RW
355 (sha256
356 (base32
f8b697a3 357 "0mmgsgwz5r9w76hzgxkxc9s9lkdhhaf7vr6i02b09vbswvs1fyqx"))))
8dd4ff11
RW
358 (build-system gnu-build-system)
359 (arguments
360 '(#:tests? #f
361 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
362 #:phases
dc1d3cde
KK
363 (modify-phases %standard-phases
364 (add-after 'unpack 'unpack-tarballs
365 (lambda _
366 ;; FIXME: Bedops includes tarballs of minimally patched upstream
367 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
368 ;; libraries because at least one of the libraries (zlib) is
369 ;; patched to add a C++ function definition (deflateInit2cpp).
370 ;; Until the Bedops developers offer a way to link against system
371 ;; libraries we have to build the in-tree copies of these three
372 ;; libraries.
373
374 ;; See upstream discussion:
375 ;; https://github.com/bedops/bedops/issues/124
376
377 ;; Unpack the tarballs to benefit from shebang patching.
378 (with-directory-excursion "third-party"
337d72fb
RW
379 (invoke "tar" "xvf" "jansson-2.6.tar.bz2")
380 (invoke "tar" "xvf" "zlib-1.2.7.tar.bz2")
381 (invoke "tar" "xvf" "bzip2-1.0.6.tar.bz2"))
dc1d3cde
KK
382 ;; Disable unpacking of tarballs in Makefile.
383 (substitute* "system.mk/Makefile.linux"
384 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
385 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
386 (substitute* "third-party/zlib-1.2.7/Makefile.in"
387 (("^SHELL=.*$") "SHELL=bash\n"))
388 #t))
389 (delete 'configure))))
8dd4ff11
RW
390 (home-page "https://github.com/bedops/bedops")
391 (synopsis "Tools for high-performance genomic feature operations")
392 (description
393 "BEDOPS is a suite of tools to address common questions raised in genomic
394studies---mostly with regard to overlap and proximity relationships between
395data sets. It aims to be scalable and flexible, facilitating the efficient
396and accurate analysis and management of large-scale genomic data.
397
398BEDOPS provides tools that perform highly efficient and scalable Boolean and
399other set operations, statistical calculations, archiving, conversion and
400other management of genomic data of arbitrary scale. Tasks can be easily
401split by chromosome for distributing whole-genome analyses across a
402computational cluster.")
403 (license license:gpl2+)))
404
81de5647
RW
405(define-public bedtools
406 (package
407 (name "bedtools")
6098a386 408 (version "2.27.1")
81de5647
RW
409 (source (origin
410 (method url-fetch)
0d9824cc
RW
411 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
412 "download/v" version "/"
413 "bedtools-" version ".tar.gz"))
81de5647
RW
414 (sha256
415 (base32
6098a386 416 "1ndg5yknrxl4djx8ddzgk12rrbiidfpmkkg5z3f95jzryfxarhn8"))))
81de5647 417 (build-system gnu-build-system)
81de5647
RW
418 (arguments
419 '(#:test-target "test"
0d9824cc
RW
420 #:make-flags
421 (list (string-append "prefix=" (assoc-ref %outputs "out")))
81de5647 422 #:phases
6573ac82 423 (modify-phases %standard-phases
0d9824cc
RW
424 (delete 'configure))))
425 (native-inputs `(("python" ,python-2)))
426 (inputs
427 `(("samtools" ,samtools)
428 ("zlib" ,zlib)))
81de5647
RW
429 (home-page "https://github.com/arq5x/bedtools2")
430 (synopsis "Tools for genome analysis and arithmetic")
431 (description
432 "Collectively, the bedtools utilities are a swiss-army knife of tools for
433a wide-range of genomics analysis tasks. The most widely-used tools enable
434genome arithmetic: that is, set theory on the genome. For example, bedtools
435allows one to intersect, merge, count, complement, and shuffle genomic
436intervals from multiple files in widely-used genomic file formats such as BAM,
437BED, GFF/GTF, VCF.")
438 (license license:gpl2)))
439
9a8f309c
RW
440;; Later releases of bedtools produce files with more columns than
441;; what Ribotaper expects.
442(define-public bedtools-2.18
443 (package (inherit bedtools)
444 (name "bedtools")
445 (version "2.18.0")
446 (source (origin
447 (method url-fetch)
448 (uri (string-append "https://github.com/arq5x/bedtools2/"
20ee3e8b
RW
449 "releases/download/v" version
450 "/bedtools-" version ".tar.gz"))
9a8f309c
RW
451 (sha256
452 (base32
20ee3e8b 453 "11rvca19ncg03kxd0wzlfx5ws7r3nisd0z8s9j9n182d8ksp2pxz"))))
83b9d121
RW
454 (arguments
455 '(#:test-target "test"
456 #:phases
457 (modify-phases %standard-phases
458 (delete 'configure)
459 (replace 'install
460 (lambda* (#:key outputs #:allow-other-keys)
461 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
462 (for-each (lambda (file)
463 (install-file file bin))
464 (find-files "bin" ".*")))
465 #t)))))))
9a8f309c 466
129363b7
RW
467;; Needed for pybedtools.
468(define-public bedtools-2.26
469 (package (inherit bedtools)
470 (name "bedtools")
471 (version "2.26.0")
472 (source (origin
473 (method url-fetch)
474 (uri (string-append "https://github.com/arq5x/bedtools2/releases/"
475 "download/v" version "/"
476 "bedtools-" version ".tar.gz"))
477 (sha256
478 (base32
479 "0jhavwifnf7lmkb11h9y7dynr8d699h0rd2l52j1pfgircr2zwv5"))))))
480
55154c5f
RW
481(define-public pbbam
482 (package
483 (name "pbbam")
484 (version "0.23.0")
485 (source (origin
486 (method git-fetch)
487 (uri (git-reference
488 (url "https://github.com/PacificBiosciences/pbbam.git")
489 (commit version)))
490 (file-name (git-file-name name version))
491 (sha256
492 (base32
493 "0h9gkrpf2lrxklxp72xfl5bi3h5zcm5hprrya9gf0hr3xwlbpp0x"))))
494 (build-system meson-build-system)
495 (arguments
496 `(#:phases
497 (modify-phases %standard-phases
498 (add-after 'unpack 'find-googletest
499 (lambda* (#:key inputs #:allow-other-keys)
500 ;; It doesn't find gtest_main because there's no pkg-config file
501 ;; for it. Find it another way.
502 (substitute* "tests/meson.build"
503 (("pbbam_gtest_dep = dependency\\('gtest_main'.*")
504 (format #f "cpp = meson.get_compiler('cpp')
505pbbam_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
506 (assoc-ref inputs "googletest"))))
507 #t)))
508 ;; TODO: tests/pbbam_test cannot be linked
509 ;; ld: tests/59830eb@@pbbam_test@exe/src_test_Accuracy.cpp.o:
510 ;; undefined reference to symbol '_ZTIN7testing4TestE'
511 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
512 ;; error adding symbols: DSO missing from command line
513 #:tests? #f
514 #:configure-flags '("-Dtests=false")))
515 ;; These libraries are listed as "Required" in the pkg-config file.
516 (propagated-inputs
517 `(("htslib" ,htslib)
518 ("zlib" ,zlib)))
519 (inputs
520 `(("boost" ,boost)
521 ("samtools" ,samtools)))
522 (native-inputs
523 `(("googletest" ,googletest)
524 ("pkg-config" ,pkg-config)
525 ("python" ,python-wrapper))) ; for tests
526 (home-page "https://github.com/PacificBiosciences/pbbam")
527 (synopsis "Work with PacBio BAM files")
528 (description
529 "The pbbam software package provides components to create, query, and
530edit PacBio BAM files and associated indices. These components include a core
531C++ library, bindings for additional languages, and command-line utilities.
532This library is not intended to be used as a general-purpose BAM utility - all
533input and output BAMs must adhere to the PacBio BAM format specification.
534Non-PacBio BAMs will cause exceptions to be thrown.")
535 (license license:bsd-3)))
536
6a6cd48c
RW
537(define-public blasr-libcpp
538 (package
539 (name "blasr-libcpp")
540 (version "5.3.3")
541 (source (origin
542 (method git-fetch)
543 (uri (git-reference
544 (url "https://github.com/PacificBiosciences/blasr_libcpp.git")
545 (commit version)))
546 (file-name (git-file-name name version))
547 (sha256
548 (base32
549 "0cn5l42zyq67sj0g2imqkhayz2iqvv0a1pgpbmlq0qynjmsrbfd2"))))
550 (build-system meson-build-system)
551 (arguments
552 `(#:phases
553 (modify-phases %standard-phases
554 (add-after 'unpack 'link-with-hdf5
555 (lambda* (#:key inputs #:allow-other-keys)
556 (let ((hdf5 (assoc-ref inputs "hdf5")))
557 (substitute* "meson.build"
558 (("libblasr_deps = \\[" m)
559 (string-append
560 m
561 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
562cpp.find_library('hdf5_cpp', dirs : '~a'), "
563 hdf5 hdf5)))))
564 #t))
565 (add-after 'unpack 'find-googletest
566 (lambda* (#:key inputs #:allow-other-keys)
567 ;; It doesn't find gtest_main because there's no pkg-config file
568 ;; for it. Find it another way.
569 (substitute* "unittest/meson.build"
570 (("libblasr_gtest_dep = dependency\\('gtest_main'.*")
571 (format #f "cpp = meson.get_compiler('cpp')
572libblasr_gtest_dep = cpp.find_library('gtest_main', dirs : '~a')\n"
573 (assoc-ref inputs "googletest"))))
574 #t)))
575 ;; TODO: unittest/libblasr_unittest cannot be linked
576 ;; ld: ;; unittest/df08227@@libblasr_unittest@exe/alignment_utils_FileUtils_gtest.cpp.o:
577 ;; undefined reference to symbol
578 ;; '_ZN7testing8internal9DeathTest6CreateEPKcPKNS0_2REES3_iPPS1_'
579 ;; ld: /gnu/store/...-googletest-1.8.0/lib/libgtest.so:
580 ;; error adding symbols: DSO missing from command line
581 #:tests? #f
582 #:configure-flags '("-Dtests=false")))
583 (inputs
584 `(("boost" ,boost)
585 ("hdf5" ,hdf5)
586 ("pbbam" ,pbbam)
587 ("zlib" ,zlib)))
588 (native-inputs
589 `(("googletest" ,googletest)
590 ("pkg-config" ,pkg-config)))
591 (home-page "https://github.com/PacificBiosciences/blasr_libcpp")
592 (synopsis "Library for analyzing PacBio genomic sequences")
593 (description
594 "This package provides three libraries used by applications for analyzing
595PacBio genomic sequences. This library contains three sub-libraries: pbdata,
596hdf and alignment.")
597 (license license:bsd-3)))
598
f88bdc5f
RW
599(define-public blasr
600 (package
601 (name "blasr")
602 (version "5.3.3")
603 (source (origin
604 (method git-fetch)
605 (uri (git-reference
606 (url "https://github.com/PacificBiosciences/blasr.git")
607 (commit version)))
608 (file-name (git-file-name name version))
609 (sha256
610 (base32
611 "1skgy2mvz8gsgfh1gc2nfgwvpyzb1hpmp2cf2773h5wsj8nw22kl"))))
612 (build-system meson-build-system)
613 (arguments
614 `(#:phases
615 (modify-phases %standard-phases
616 (add-after 'unpack 'link-with-hdf5
617 (lambda* (#:key inputs #:allow-other-keys)
618 (let ((hdf5 (assoc-ref inputs "hdf5")))
619 (substitute* "meson.build"
620 (("blasr_deps = \\[" m)
621 (string-append
622 m
623 (format #f "cpp.find_library('hdf5', dirs : '~a'), \
624cpp.find_library('hdf5_cpp', dirs : '~a'), "
625 hdf5 hdf5)))))
626 #t)))
627 ;; Tests require "cram" executable, which is not packaged.
628 #:tests? #f
629 #:configure-flags '("-Dtests=false")))
630 (inputs
631 `(("boost" ,boost)
632 ("blasr-libcpp" ,blasr-libcpp)
633 ("hdf5" ,hdf5)
634 ("pbbam" ,pbbam)
635 ("zlib" ,zlib)))
636 (native-inputs
637 `(("pkg-config" ,pkg-config)))
ee4ca578 638 (home-page "https://github.com/PacificBiosciences/blasr")
f88bdc5f
RW
639 (synopsis "PacBio long read aligner")
640 (description
641 "Blasr is a genomic sequence aligner for processing PacBio long reads.")
642 (license license:bsd-3)))
643
17dc32a4
RW
644(define-public ribotaper
645 (package
646 (name "ribotaper")
647 (version "1.3.1")
648 (source (origin
649 (method url-fetch)
650 (uri (string-append "https://ohlerlab.mdc-berlin.de/"
651 "files/RiboTaper/RiboTaper_Version_"
652 version ".tar.gz"))
653 (sha256
654 (base32
655 "0ykjbps1y3z3085q94npw8i9x5gldc6shy8vlc08v76zljsm07hv"))))
656 (build-system gnu-build-system)
7edee344
RW
657 (arguments
658 `(#:phases
659 (modify-phases %standard-phases
660 (add-after 'install 'wrap-executables
661 (lambda* (#:key inputs outputs #:allow-other-keys)
662 (let* ((out (assoc-ref outputs "out")))
663 (for-each
664 (lambda (script)
665 (wrap-program (string-append out "/bin/" script)
666 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
667 '("create_annotations_files.bash"
668 "create_metaplots.bash"
669 "Ribotaper_ORF_find.sh"
2e0f6905
MW
670 "Ribotaper.sh")))
671 #t)))))
17dc32a4
RW
672 (inputs
673 `(("bedtools" ,bedtools-2.18)
674 ("samtools" ,samtools-0.1)
2d7c4ae3 675 ("r-minimal" ,r-minimal)
17dc32a4
RW
676 ("r-foreach" ,r-foreach)
677 ("r-xnomial" ,r-xnomial)
678 ("r-domc" ,r-domc)
679 ("r-multitaper" ,r-multitaper)
680 ("r-seqinr" ,r-seqinr)))
681 (home-page "https://ohlerlab.mdc-berlin.de/software/RiboTaper_126/")
682 (synopsis "Define translated ORFs using ribosome profiling data")
683 (description
684 "Ribotaper is a method for defining translated @dfn{open reading
685frames} (ORFs) using ribosome profiling (ribo-seq) data. This package
686provides the Ribotaper pipeline.")
687 (license license:gpl3+)))
688
769fc6bb
RW
689(define-public ribodiff
690 (package
691 (name "ribodiff")
692 (version "0.2.2")
693 (source
694 (origin
7ca49ab5
RW
695 (method git-fetch)
696 (uri (git-reference
697 (url "https://github.com/ratschlab/RiboDiff.git")
698 (commit (string-append "v" version))))
699 (file-name (git-file-name name version))
769fc6bb
RW
700 (sha256
701 (base32
7ca49ab5 702 "0x75nlp7qnmm64jasbi6l21f2cy99r2cjyl6b4hr8zf2bq22drnz"))))
769fc6bb
RW
703 (build-system python-build-system)
704 (arguments
705 `(#:python ,python-2
706 #:phases
707 (modify-phases %standard-phases
708 ;; Generate an installable executable script wrapper.
709 (add-after 'unpack 'patch-setup.py
710 (lambda _
711 (substitute* "setup.py"
712 (("^(.*)packages=.*" line prefix)
713 (string-append line "\n"
714 prefix "scripts=['scripts/TE.py'],\n")))
715 #t)))))
716 (inputs
717 `(("python-numpy" ,python2-numpy)
718 ("python-matplotlib" ,python2-matplotlib)
719 ("python-scipy" ,python2-scipy)
720 ("python-statsmodels" ,python2-statsmodels)))
2bb12f5a
MB
721 (native-inputs
722 `(("python-mock" ,python2-mock)
723 ("python-nose" ,python2-nose)))
769fc6bb
RW
724 (home-page "http://public.bmi.inf.ethz.ch/user/zhongy/RiboDiff/")
725 (synopsis "Detect translation efficiency changes from ribosome footprints")
726 (description "RiboDiff is a statistical tool that detects the protein
727translational efficiency change from Ribo-Seq (ribosome footprinting) and
728RNA-Seq data. It uses a generalized linear model to detect genes showing
729difference in translational profile taking mRNA abundance into account. It
730facilitates us to decipher the translational regulation that behave
731independently with transcriptional regulation.")
732 (license license:gpl3+)))
733
a0a71439
RJ
734(define-public bioawk
735 (package
736 (name "bioawk")
737 (version "1.0")
738 (source (origin
383cb7b8
RW
739 (method git-fetch)
740 (uri (git-reference
741 (url "https://github.com/lh3/bioawk.git")
742 (commit (string-append "v" version))))
743 (file-name (git-file-name name version))
744 (sha256
745 (base32
746 "1pxc3zdnirxbf9a0az698hd8xdik7qkhypm7v6hn922x8y9qmspm"))))
a0a71439
RJ
747 (build-system gnu-build-system)
748 (inputs
749 `(("zlib" ,zlib)))
750 (native-inputs
751 `(("bison" ,bison)))
752 (arguments
753 `(#:tests? #f ; There are no tests to run.
754 ;; Bison must generate files, before other targets can build.
755 #:parallel-build? #f
756 #:phases
757 (modify-phases %standard-phases
758 (delete 'configure) ; There is no configure phase.
759 (replace 'install
383cb7b8
RW
760 (lambda* (#:key outputs #:allow-other-keys)
761 (let* ((out (assoc-ref outputs "out"))
762 (bin (string-append out "/bin"))
763 (man (string-append out "/share/man/man1")))
764 (mkdir-p man)
765 (copy-file "awk.1" (string-append man "/bioawk.1"))
2e0f6905
MW
766 (install-file "bioawk" bin))
767 #t)))))
a0a71439
RJ
768 (home-page "https://github.com/lh3/bioawk")
769 (synopsis "AWK with bioinformatics extensions")
770 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
771support of several common biological data formats, including optionally gzip'ed
772BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
773also adds a few built-in functions and a command line option to use TAB as the
774input/output delimiter. When the new functionality is not used, bioawk is
775intended to behave exactly the same as the original BWK awk.")
776 (license license:x11)))
777
895cf827 778(define-public python-pybedtools
a2fb1492 779 (package
895cf827 780 (name "python-pybedtools")
155194d9 781 (version "0.8.0")
a2fb1492
RW
782 (source (origin
783 (method url-fetch)
895cf827 784 (uri (pypi-uri "pybedtools" version))
a2fb1492
RW
785 (sha256
786 (base32
155194d9 787 "1xl454ijvd4dzfvqgfahad49b49j7qy710fq9xh1rvk42z6x5ssf"))))
a2fb1492 788 (build-system python-build-system)
895cf827 789 (arguments
155194d9
MC
790 `(#:modules ((ice-9 ftw)
791 (srfi srfi-1)
792 (srfi srfi-26)
793 (guix build utils)
794 (guix build python-build-system))
795 ;; See https://github.com/daler/pybedtools/issues/192
796 #:phases
895cf827
RW
797 (modify-phases %standard-phases
798 ;; See https://github.com/daler/pybedtools/issues/261
799 (add-after 'unpack 'disable-broken-tests
800 (lambda _
801 ;; This test (pybedtools.test.test_scripts.test_venn_mpl) needs a
802 ;; graphical environment.
803 (substitute* "pybedtools/test/test_scripts.py"
804 (("def test_venn_mpl")
805 "def _do_not_test_venn_mpl"))
895cf827 806 (substitute* "pybedtools/test/test_helpers.py"
155194d9 807 ;; Requires internet access.
895cf827 808 (("def test_chromsizes")
155194d9
MC
809 "def _do_not_test_chromsizes")
810 ;; Broken as a result of the workaround used in the check phase
811 ;; (see: https://github.com/daler/pybedtools/issues/192).
812 (("def test_getting_example_beds")
813 "def _do_not_test_getting_example_beds"))
814 #t))
815 ;; TODO: Remove phase after it's part of PYTHON-BUILD-SYSTEM.
816 ;; build system.
817 ;; Force the Cythonization of C++ files to guard against compilation
818 ;; problems.
819 (add-after 'unpack 'remove-cython-generated-files
820 (lambda _
821 (let ((cython-sources (map (cut string-drop-right <> 4)
822 (find-files "." "\\.pyx$")))
823 (c/c++-files (find-files "." "\\.(c|cpp|cxx)$")))
824 (define (strip-extension filename)
825 (string-take filename (string-index-right filename #\.)))
826 (define (cythonized? c/c++-file)
827 (member (strip-extension c/c++-file) cython-sources))
828 (for-each delete-file (filter cythonized? c/c++-files))
829 #t)))
830 (add-after 'remove-cython-generated-files 'generate-cython-extensions
831 (lambda _
832 (invoke "python" "setup.py" "cythonize")))
833 (replace 'check
834 (lambda _
835 (let* ((cwd (getcwd))
836 (build-root-directory (string-append cwd "/build/"))
837 (build (string-append
838 build-root-directory
839 (find (cut string-prefix? "lib" <>)
840 (scandir (string-append
841 build-root-directory)))))
842 (scripts (string-append
843 build-root-directory
844 (find (cut string-prefix? "scripts" <>)
845 (scandir build-root-directory)))))
846 (setenv "PYTHONPATH"
847 (string-append build ":" (getenv "PYTHONPATH")))
848 ;; Executable scripts such as 'intron_exon_reads.py' must be
849 ;; available in the PATH.
850 (setenv "PATH"
851 (string-append scripts ":" (getenv "PATH"))))
852 ;; The tests need to be run from elsewhere...
853 (mkdir-p "/tmp/test")
854 (copy-recursively "pybedtools/test" "/tmp/test")
855 (with-directory-excursion "/tmp/test"
856 (invoke "pytest")))))))
a2fb1492 857 (propagated-inputs
155194d9 858 `(("bedtools" ,bedtools)
895cf827
RW
859 ("samtools" ,samtools)
860 ("python-matplotlib" ,python-matplotlib)
861 ("python-pysam" ,python-pysam)
862 ("python-pyyaml" ,python-pyyaml)))
a2fb1492 863 (native-inputs
895cf827
RW
864 `(("python-numpy" ,python-numpy)
865 ("python-pandas" ,python-pandas)
866 ("python-cython" ,python-cython)
155194d9
MC
867 ("kentutils" ,kentutils) ; for bedGraphToBigWig
868 ("python-six" ,python-six)
869 ;; For the test suite.
870 ("python-pytest" ,python-pytest)
871 ("python-psutil" ,python-psutil)))
a2fb1492
RW
872 (home-page "https://pythonhosted.org/pybedtools/")
873 (synopsis "Python wrapper for BEDtools programs")
874 (description
875 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
876which are widely used for genomic interval manipulation or \"genome algebra\".
877pybedtools extends BEDTools by offering feature-level manipulations from with
878Python.")
879 (license license:gpl2+)))
880
895cf827 881(define-public python2-pybedtools
155194d9 882 (package-with-python2 python-pybedtools))
895cf827 883
9e12eba8
BW
884(define-public python-biom-format
885 (package
007a81d5 886 (name "python-biom-format")
239716fb 887 (version "2.1.7")
007a81d5
RW
888 (source
889 (origin
890 (method git-fetch)
891 ;; Use GitHub as source because PyPI distribution does not contain
892 ;; test data: https://github.com/biocore/biom-format/issues/693
893 (uri (git-reference
894 (url "https://github.com/biocore/biom-format.git")
895 (commit version)))
896 (file-name (git-file-name name version))
897 (sha256
898 (base32
9e1d9a0a
RW
899 "1rna16lyk5aqhnv0dp77wwaplias93f1vw28ad3jmyw6hwkai05v"))
900 (modules '((guix build utils)))
901 (snippet '(begin
902 ;; Delete generated C files.
903 (for-each delete-file (find-files "." "\\.c"))
904 #t))))
007a81d5 905 (build-system python-build-system)
239716fb
RW
906 (arguments
907 `(#:phases
908 (modify-phases %standard-phases
909 (add-after 'unpack 'use-cython
910 (lambda _ (setenv "USE_CYTHON" "1") #t))
9e1d9a0a 911 (add-after 'unpack 'disable-broken-tests
239716fb
RW
912 (lambda _
913 (substitute* "biom/tests/test_cli/test_validate_table.py"
914 (("^(.+)def test_invalid_hdf5" m indent)
915 (string-append indent
916 "@npt.dec.skipif(True, msg='Guix')\n"
917 m)))
9e1d9a0a
RW
918 (substitute* "biom/tests/test_table.py"
919 (("^(.+)def test_from_hdf5_issue_731" m indent)
920 (string-append indent
921 "@npt.dec.skipif(True, msg='Guix')\n"
922 m)))
239716fb
RW
923 #t))
924 (add-before 'reset-gzip-timestamps 'make-files-writable
925 (lambda* (#:key outputs #:allow-other-keys)
926 (let ((out (assoc-ref outputs "out")))
927 (for-each (lambda (file) (chmod file #o644))
928 (find-files out "\\.gz"))
929 #t))))))
007a81d5
RW
930 (propagated-inputs
931 `(("python-numpy" ,python-numpy)
932 ("python-scipy" ,python-scipy)
239716fb 933 ("python-flake8" ,python-flake8)
007a81d5
RW
934 ("python-future" ,python-future)
935 ("python-click" ,python-click)
936 ("python-h5py" ,python-h5py)
937 ("python-pandas" ,python-pandas)))
938 (native-inputs
239716fb
RW
939 `(("python-cython" ,python-cython)
940 ("python-pytest" ,python-pytest)
941 ("python-pytest-cov" ,python-pytest-cov)
942 ("python-nose" ,python-nose)))
007a81d5
RW
943 (home-page "http://www.biom-format.org")
944 (synopsis "Biological Observation Matrix (BIOM) format utilities")
945 (description
946 "The BIOM file format is designed to be a general-use format for
9e12eba8
BW
947representing counts of observations e.g. operational taxonomic units, KEGG
948orthology groups or lipid types, in one or more biological samples
949e.g. microbiome samples, genomes, metagenomes.")
007a81d5
RW
950 (license license:bsd-3)
951 (properties `((python2-variant . ,(delay python2-biom-format))))))
9e12eba8
BW
952
953(define-public python2-biom-format
954 (let ((base (package-with-python2 (strip-python2-variant python-biom-format))))
955 (package
956 (inherit base)
957 (arguments
d9ba126d
RW
958 (substitute-keyword-arguments (package-arguments base)
959 ((#:phases phases)
960 `(modify-phases ,phases
961 ;; Do not require the unmaintained pyqi library.
962 (add-after 'unpack 'remove-pyqi
963 (lambda _
964 (substitute* "setup.py"
965 (("install_requires.append\\(\"pyqi\"\\)") "pass"))
966 #t)))))))))
9e12eba8 967
f7283db3
RW
968(define-public bioperl-minimal
969 (let* ((inputs `(("perl-module-build" ,perl-module-build)
970 ("perl-data-stag" ,perl-data-stag)
971 ("perl-libwww" ,perl-libwww)
972 ("perl-uri" ,perl-uri)))
973 (transitive-inputs
974 (map (compose package-name cadr)
975 (delete-duplicates
976 (concatenate
977 (map (compose package-transitive-target-inputs cadr) inputs))))))
978 (package
979 (name "bioperl-minimal")
c70271ec 980 (version "1.7.0")
f7283db3
RW
981 (source
982 (origin
983 (method url-fetch)
c70271ec
RW
984 (uri (string-append "https://github.com/bioperl/bioperl-live/"
985 "archive/release-"
986 (string-map (lambda (c)
987 (if (char=? c #\.)
988 #\- c)) version)
989 ".tar.gz"))
f7283db3
RW
990 (sha256
991 (base32
c70271ec 992 "12phgpxwgkqflkwfb9dcqg7a31dpjlfhar8wcgv0aj5ln4akfz06"))))
f7283db3
RW
993 (build-system perl-build-system)
994 (arguments
995 `(#:phases
996 (modify-phases %standard-phases
997 (add-after
998 'install 'wrap-programs
999 (lambda* (#:key outputs #:allow-other-keys)
1000 ;; Make sure all executables in "bin" find the required Perl
1001 ;; modules at runtime. As the PERL5LIB variable contains also
1002 ;; the paths of native inputs, we pick the transitive target
1003 ;; inputs from %build-inputs.
1004 (let* ((out (assoc-ref outputs "out"))
1005 (bin (string-append out "/bin/"))
1006 (path (string-join
1007 (cons (string-append out "/lib/perl5/site_perl")
1008 (map (lambda (name)
1009 (assoc-ref %build-inputs name))
1010 ',transitive-inputs))
1011 ":")))
1012 (for-each (lambda (file)
1013 (wrap-program file
1014 `("PERL5LIB" ":" prefix (,path))))
1015 (find-files bin "\\.pl$"))
1016 #t))))))
1017 (inputs inputs)
1018 (native-inputs
1019 `(("perl-test-most" ,perl-test-most)))
9aba9b12 1020 (home-page "https://metacpan.org/release/BioPerl")
f7283db3
RW
1021 (synopsis "Bioinformatics toolkit")
1022 (description
1023 "BioPerl is the product of a community effort to produce Perl code which
1024is useful in biology. Examples include Sequence objects, Alignment objects
1025and database searching objects. These objects not only do what they are
1026advertised to do in the documentation, but they also interact - Alignment
1027objects are made from the Sequence objects, Sequence objects have access to
1028Annotation and SeqFeature objects and databases, Blast objects can be
1029converted to Alignment objects, and so on. This means that the objects
1030provide a coordinated and extensible framework to do computational biology.")
2f3108ad 1031 (license license:perl-license))))
f7283db3 1032
85c37e29
RW
1033(define-public python-biopython
1034 (package
1035 (name "python-biopython")
af6ce610 1036 (version "1.70")
85c37e29
RW
1037 (source (origin
1038 (method url-fetch)
e815c094
BW
1039 ;; use PyPi rather than biopython.org to ease updating
1040 (uri (pypi-uri "biopython" version))
85c37e29
RW
1041 (sha256
1042 (base32
af6ce610 1043 "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
85c37e29 1044 (build-system python-build-system)
4ce60305
BW
1045 (arguments
1046 `(#:phases
1047 (modify-phases %standard-phases
1048 (add-before 'check 'set-home
1049 ;; Some tests require a home directory to be set.
1050 (lambda _ (setenv "HOME" "/tmp") #t)))))
f22efa01 1051 (propagated-inputs
85c37e29 1052 `(("python-numpy" ,python-numpy)))
85c37e29
RW
1053 (home-page "http://biopython.org/")
1054 (synopsis "Tools for biological computation in Python")
1055 (description
1056 "Biopython is a set of tools for biological computation including parsers
1057for bioinformatics files into Python data structures; interfaces to common
1058bioinformatics programs; a standard sequence class and tools for performing
1059common operations on them; code to perform data classification; code for
1060dealing with alignments; code making it easy to split up parallelizable tasks
1061into separate processes; and more.")
5c31f4aa 1062 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
85c37e29
RW
1063
1064(define-public python2-biopython
5c31f4aa 1065 (package-with-python2 python-biopython))
85c37e29 1066
5d5a02dd
BW
1067(define-public python-fastalite
1068 (package
1069 (name "python-fastalite")
1070 (version "0.3")
1071 (source
1072 (origin
1073 (method url-fetch)
1074 (uri (pypi-uri "fastalite" version))
1075 (sha256
1076 (base32
1077 "1qli6pxp77i9xn2wfciq2zaxhl82bdxb33cpzqzj1z25yd036wqj"))))
1078 (build-system python-build-system)
1079 (arguments
1080 `(#:tests? #f)) ; Test data is not distributed.
1081 (home-page "https://github.com/nhoffman/fastalite")
1082 (synopsis "Simplest possible FASTA parser")
1083 (description "This library implements a FASTA and a FASTQ parser without
1084relying on a complex dependency tree.")
1085 (license license:expat)))
1086
1087(define-public python2-fastalite
1088 (package-with-python2 python-fastalite))
1089
985d8411
BW
1090(define-public bpp-core
1091 ;; The last release was in 2014 and the recommended way to install from source
1092 ;; is to clone the git repository, so we do this.
1093 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1094 (let ((commit "7d8bced0d1a87291ea8dd7046b7fb5ff9c35c582"))
1095 (package
1096 (name "bpp-core")
1097 (version (string-append "2.2.0-1." (string-take commit 7)))
1098 (source (origin
1099 (method git-fetch)
1100 (uri (git-reference
1101 (url "http://biopp.univ-montp2.fr/git/bpp-core")
1102 (commit commit)))
1103 (file-name (string-append name "-" version "-checkout"))
1104 (sha256
1105 (base32
1106 "10djsq5vlnkilv436gnmh4irpk49v29pa69r6xiryg32xmvn909j"))))
1107 (build-system cmake-build-system)
1108 (arguments
1109 `(#:parallel-build? #f))
1110 (inputs
1111 `(("gcc" ,gcc-5))) ; Compilation of bpp-phyl fails with GCC 4.9 so we
1112 ; compile all of the bpp packages with GCC 5.
1113 (home-page "http://biopp.univ-montp2.fr")
1114 (synopsis "C++ libraries for Bioinformatics")
1115 (description
1116 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1117analysis, phylogenetics, molecular evolution and population genetics. It is
1118Object Oriented and is designed to be both easy to use and computer efficient.
1119Bio++ intends to help programmers to write computer expensive programs, by
1120providing them a set of re-usable tools.")
1121 (license license:cecill-c))))
1122
8b5f4d57
BW
1123(define-public bpp-phyl
1124 ;; The last release was in 2014 and the recommended way to install from source
1125 ;; is to clone the git repository, so we do this.
1126 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1127 (let ((commit "0c07167b629f68b569bf274d1ad0c4af83276ae2"))
1128 (package
1129 (name "bpp-phyl")
1130 (version (string-append "2.2.0-1." (string-take commit 7)))
1131 (source (origin
1132 (method git-fetch)
1133 (uri (git-reference
1134 (url "http://biopp.univ-montp2.fr/git/bpp-phyl")
1135 (commit commit)))
1136 (file-name (string-append name "-" version "-checkout"))
1137 (sha256
1138 (base32
1139 "1ssjgchzwj3iai26kyly7gwkdv8sk59nqhkb1wpap3sf5m6kyllh"))))
1140 (build-system cmake-build-system)
1141 (arguments
1142 `(#:parallel-build? #f
1143 ;; If out-of-source, test data is not copied into the build directory
1144 ;; so the tests fail.
1145 #:out-of-source? #f))
1146 (inputs
1147 `(("bpp-core" ,bpp-core)
1148 ("bpp-seq" ,bpp-seq)
1149 ;; GCC 4.8 fails due to an 'internal compiler error', so we use a more
1150 ;; modern GCC.
1151 ("gcc" ,gcc-5)))
1152 (home-page "http://biopp.univ-montp2.fr")
1153 (synopsis "Bio++ phylogenetic Library")
1154 (description
1155 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1156analysis, phylogenetics, molecular evolution and population genetics. This
1157library provides phylogenetics-related modules.")
1158 (license license:cecill-c))))
1159
159a7016
BW
1160(define-public bpp-popgen
1161 ;; The last release was in 2014 and the recommended way to install from source
1162 ;; is to clone the git repository, so we do this.
1163 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1164 (let ((commit "e472bac9b1a148803895d747cd6d0c5904f85d9f"))
1165 (package
1166 (name "bpp-popgen")
1167 (version (string-append "2.2.0-1." (string-take commit 7)))
1168 (source (origin
1169 (method git-fetch)
1170 (uri (git-reference
1171 (url "http://biopp.univ-montp2.fr/git/bpp-popgen")
1172 (commit commit)))
1173 (file-name (string-append name "-" version "-checkout"))
1174 (sha256
1175 (base32
1176 "0yn82dzn1n5629nzja68xfrhi655709rjanyryb36vzkmymy6dw5"))))
1177 (build-system cmake-build-system)
1178 (arguments
1179 `(#:parallel-build? #f
1180 #:tests? #f)) ; There are no tests.
1181 (inputs
1182 `(("bpp-core" ,bpp-core)
1183 ("bpp-seq" ,bpp-seq)
1184 ("gcc" ,gcc-5)))
1185 (home-page "http://biopp.univ-montp2.fr")
1186 (synopsis "Bio++ population genetics library")
1187 (description
1188 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1189analysis, phylogenetics, molecular evolution and population genetics. This
1190library provides population genetics-related modules.")
1191 (license license:cecill-c))))
1192
70f1bc05
BW
1193(define-public bpp-seq
1194 ;; The last release was in 2014 and the recommended way to install from source
1195 ;; is to clone the git repository, so we do this.
1196 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1197 (let ((commit "6cfa07965ce152e5598a89df2fa80a75973bfa33"))
1198 (package
1199 (name "bpp-seq")
1200 (version (string-append "2.2.0-1." (string-take commit 7)))
1201 (source (origin
1202 (method git-fetch)
1203 (uri (git-reference
1204 (url "http://biopp.univ-montp2.fr/git/bpp-seq")
1205 (commit commit)))
1206 (file-name (string-append name "-" version "-checkout"))
1207 (sha256
1208 (base32
1209 "1nys5jq7jqvdg40d91wsmj3q2yzy4276cp7sp44n67p468f27zf2"))))
1210 (build-system cmake-build-system)
1211 (arguments
1212 `(#:parallel-build? #f
1213 ;; If out-of-source, test data is not copied into the build directory
1214 ;; so the tests fail.
1215 #:out-of-source? #f))
1216 (inputs
1217 `(("bpp-core" ,bpp-core)
1218 ("gcc" ,gcc-5))) ; Use GCC 5 as per 'bpp-core'.
1219 (home-page "http://biopp.univ-montp2.fr")
1220 (synopsis "Bio++ sequence library")
1221 (description
1222 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1223analysis, phylogenetics, molecular evolution and population genetics. This
1224library provides sequence-related modules.")
1225 (license license:cecill-c))))
1226
db7a3444
BW
1227(define-public bppsuite
1228 ;; The last release was in 2014 and the recommended way to install from source
1229 ;; is to clone the git repository, so we do this.
1230 ;; http://biopp.univ-montp2.fr/wiki/index.php/Main_Page
1231 (let ((commit "c516147f57aa50961121cd505bed52cd7603698b"))
1232 (package
1233 (name "bppsuite")
1234 (version (string-append "2.2.0-1." (string-take commit 7)))
1235 (source (origin
1236 (method git-fetch)
1237 (uri (git-reference
1238 (url "http://biopp.univ-montp2.fr/git/bppsuite")
1239 (commit commit)))
1240 (file-name (string-append name "-" version "-checkout"))
1241 (sha256
1242 (base32
1243 "1y87pxvw0jxjizhq2dr9g2r91md45k1p9ih2sl1yy1y3p934l2kb"))))
1244 (build-system cmake-build-system)
1245 (arguments
1246 `(#:parallel-build? #f
1247 #:tests? #f)) ; There are no tests.
1248 (native-inputs
1249 `(("groff" ,groff)
1250 ("man-db" ,man-db)
1251 ("texinfo" ,texinfo)))
1252 (inputs
1253 `(("bpp-core" ,bpp-core)
1254 ("bpp-seq" ,bpp-seq)
1255 ("bpp-phyl" ,bpp-phyl)
1256 ("bpp-phyl" ,bpp-popgen)
1257 ("gcc" ,gcc-5)))
1258 (home-page "http://biopp.univ-montp2.fr")
1259 (synopsis "Bioinformatics tools written with the Bio++ libraries")
1260 (description
1261 "Bio++ is a set of C++ libraries for Bioinformatics, including sequence
1262analysis, phylogenetics, molecular evolution and population genetics. This
1263package provides command line tools using the Bio++ library.")
1264 (license license:cecill-c))))
1265
82c370de
RW
1266(define-public blast+
1267 (package
1268 (name "blast+")
8b6acb1f 1269 (version "2.7.1")
82c370de
RW
1270 (source (origin
1271 (method url-fetch)
1272 (uri (string-append
1273 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
1274 version "/ncbi-blast-" version "+-src.tar.gz"))
1275 (sha256
1276 (base32
8b6acb1f 1277 "1jlq0afxxgczpp35k6mxh8mn4jzq7vqcnaixk166sfj10wq8v9qh"))
82c370de
RW
1278 (modules '((guix build utils)))
1279 (snippet
1280 '(begin
4732e6ee 1281 ;; Remove bundled bzip2, zlib and pcre.
82c370de
RW
1282 (delete-file-recursively "c++/src/util/compress/bzip2")
1283 (delete-file-recursively "c++/src/util/compress/zlib")
4732e6ee 1284 (delete-file-recursively "c++/src/util/regexp")
82c370de
RW
1285 (substitute* "c++/src/util/compress/Makefile.in"
1286 (("bzip2 zlib api") "api"))
1287 ;; Remove useless msbuild directory
1288 (delete-file-recursively
1289 "c++/src/build-system/project_tree_builder/msbuild")
1290 #t))))
1291 (build-system gnu-build-system)
1292 (arguments
4732e6ee 1293 `(;; There are two(!) tests for this massive library, and both fail with
82c370de 1294 ;; "unparsable timing stats".
82c370de
RW
1295 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
1296 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
1297 #:tests? #f
1298 #:out-of-source? #t
1299 #:parallel-build? #f ; not supported
1300 #:phases
1301 (modify-phases %standard-phases
f4509342 1302 (add-before 'configure 'set-HOME
82c370de
RW
1303 ;; $HOME needs to be set at some point during the configure phase
1304 (lambda _ (setenv "HOME" "/tmp") #t))
f4509342 1305 (add-after 'unpack 'enter-dir
82c370de 1306 (lambda _ (chdir "c++") #t))
f4509342 1307 (add-after 'enter-dir 'fix-build-system
82c370de
RW
1308 (lambda _
1309 (define (which* cmd)
1310 (cond ((string=? cmd "date")
1311 ;; make call to "date" deterministic
1312 "date -d @0")
1313 ((which cmd)
1314 => identity)
1315 (else
1316 (format (current-error-port)
1317 "WARNING: Unable to find absolute path for ~s~%"
1318 cmd)
1319 #f)))
1320
1321 ;; Rewrite hardcoded paths to various tools
1322 (substitute* (append '("src/build-system/configure.ac"
1323 "src/build-system/configure"
4732e6ee 1324 "src/build-system/helpers/run_with_lock.c"
82c370de
RW
1325 "scripts/common/impl/if_diff.sh"
1326 "scripts/common/impl/run_with_lock.sh"
1327 "src/build-system/Makefile.configurables.real"
1328 "src/build-system/Makefile.in.top"
1329 "src/build-system/Makefile.meta.gmake=no"
1330 "src/build-system/Makefile.meta.in"
1331 "src/build-system/Makefile.meta_l"
1332 "src/build-system/Makefile.meta_p"
1333 "src/build-system/Makefile.meta_r"
1334 "src/build-system/Makefile.mk.in"
1335 "src/build-system/Makefile.requirements"
1336 "src/build-system/Makefile.rules_with_autodep.in")
1337 (find-files "scripts/common/check" "\\.sh$"))
1338 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
1339 (or (which* cmd) all)))
1340
1341 (substitute* (find-files "src/build-system" "^config.*")
1342 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
1343 (("^PATH=.*") ""))
1344
1345 ;; rewrite "/var/tmp" in check script
1346 (substitute* "scripts/common/check/check_make_unix.sh"
1347 (("/var/tmp") "/tmp"))
1348
1349 ;; do not reset PATH
1350 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
1351 (("^ *PATH=.*") "")
1352 (("action=/bin/") "action=")
1353 (("export PATH") ":"))
1354 #t))
f4509342
RW
1355 (replace 'configure
1356 (lambda* (#:key inputs outputs #:allow-other-keys)
1357 (let ((out (assoc-ref outputs "out"))
1358 (lib (string-append (assoc-ref outputs "lib") "/lib"))
1359 (include (string-append (assoc-ref outputs "include")
1360 "/include/ncbi-tools++")))
1361 ;; The 'configure' script doesn't recognize things like
1362 ;; '--enable-fast-install'.
1363 (invoke "./configure.orig"
1364 (string-append "--with-build-root=" (getcwd) "/build")
1365 (string-append "--prefix=" out)
1366 (string-append "--libdir=" lib)
1367 (string-append "--includedir=" include)
1368 (string-append "--with-bz2="
1369 (assoc-ref inputs "bzip2"))
1370 (string-append "--with-z="
1371 (assoc-ref inputs "zlib"))
1372 (string-append "--with-pcre="
1373 (assoc-ref inputs "pcre"))
1374 ;; Each library is built twice by default, once
1375 ;; with "-static" in its name, and again
1376 ;; without.
1377 "--without-static"
1378 "--with-dll")
1379 #t))))))
4732e6ee
BW
1380 (outputs '("out" ; 21 MB
1381 "lib" ; 226 MB
1382 "include")) ; 33 MB
82c370de
RW
1383 (inputs
1384 `(("bzip2" ,bzip2)
8b6acb1f 1385 ("lmdb" ,lmdb)
4732e6ee
BW
1386 ("zlib" ,zlib)
1387 ("pcre" ,pcre)
1388 ("perl" ,perl)
1389 ("python" ,python-wrapper)))
82c370de
RW
1390 (native-inputs
1391 `(("cpio" ,cpio)))
1392 (home-page "http://blast.ncbi.nlm.nih.gov")
1393 (synopsis "Basic local alignment search tool")
1394 (description
1395 "BLAST is a popular method of performing a DNA or protein sequence
1396similarity search, using heuristics to produce results quickly. It also
1397calculates an “expect value” that estimates how many matches would have
1398occurred at a given score by chance, which can aid a user in judging how much
1399confidence to have in an alignment.")
1400 ;; Most of the sources are in the public domain, with the following
1401 ;; exceptions:
1402 ;; * Expat:
1403 ;; * ./c++/include/util/bitset/
1404 ;; * ./c++/src/html/ncbi_menu*.js
1405 ;; * Boost license:
1406 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
1407 ;; * LGPL 2+:
1408 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
1409 ;; * ASL 2.0:
1410 ;; * ./c++/src/corelib/teamcity_*
1411 (license (list license:public-domain
1412 license:expat
1413 license:boost1.0
1414 license:lgpl2.0+
1415 license:asl2.0))))
1416
6c2b26e2
RW
1417(define-public bless
1418 (package
1419 (name "bless")
1420 (version "1p02")
1421 (source (origin
1422 (method url-fetch)
1423 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
1424 version ".tgz"))
1425 (sha256
1426 (base32
4d75e03a
RW
1427 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
1428 (modules '((guix build utils)))
6c2b26e2
RW
1429 (snippet
1430 `(begin
1431 ;; Remove bundled boost, pigz, zlib, and .git directory
953c1223
RW
1432 ;; FIXME: also remove bundled sources for murmurhash3 and
1433 ;; kmc once packaged.
6c2b26e2
RW
1434 (delete-file-recursively "boost")
1435 (delete-file-recursively "pigz")
953c1223 1436 (delete-file-recursively "google-sparsehash")
6c2b26e2
RW
1437 (delete-file-recursively "zlib")
1438 (delete-file-recursively ".git")
1439 #t))))
1440 (build-system gnu-build-system)
1441 (arguments
1442 '(#:tests? #f ;no "check" target
1443 #:make-flags
1444 (list (string-append "ZLIB="
4b2d1dc4 1445 (assoc-ref %build-inputs "zlib:static")
6c2b26e2
RW
1446 "/lib/libz.a")
1447 (string-append "LDFLAGS="
1448 (string-join '("-lboost_filesystem"
1449 "-lboost_system"
1450 "-lboost_iostreams"
1451 "-lz"
1452 "-fopenmp"
1453 "-std=c++11"))))
1454 #:phases
1455 (modify-phases %standard-phases
1456 (add-after 'unpack 'do-not-build-bundled-pigz
1457 (lambda* (#:key inputs outputs #:allow-other-keys)
1458 (substitute* "Makefile"
1459 (("cd pigz/pigz-2.3.3; make") ""))
1460 #t))
1461 (add-after 'unpack 'patch-paths-to-executables
1462 (lambda* (#:key inputs outputs #:allow-other-keys)
1463 (substitute* "parse_args.cpp"
1464 (("kmc_binary = .*")
1465 (string-append "kmc_binary = \""
1466 (assoc-ref outputs "out")
1467 "/bin/kmc\";"))
1468 (("pigz_binary = .*")
1469 (string-append "pigz_binary = \""
1470 (assoc-ref inputs "pigz")
1471 "/bin/pigz\";")))
1472 #t))
1473 (replace 'install
1474 (lambda* (#:key outputs #:allow-other-keys)
1475 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
1476 (for-each (lambda (file)
1477 (install-file file bin))
1478 '("bless" "kmc/bin/kmc"))
1479 #t)))
1480 (delete 'configure))))
1481 (native-inputs
1482 `(("perl" ,perl)))
1483 (inputs
1484 `(("openmpi" ,openmpi)
1485 ("boost" ,boost)
953c1223 1486 ("sparsehash" ,sparsehash)
6c2b26e2 1487 ("pigz" ,pigz)
4b2d1dc4 1488 ("zlib:static" ,zlib "static")
6c2b26e2 1489 ("zlib" ,zlib)))
9641a899 1490 (supported-systems '("x86_64-linux"))
3b3b60d0 1491 (home-page "https://sourceforge.net/p/bless-ec/wiki/Home/")
6c2b26e2
RW
1492 (synopsis "Bloom-filter-based error correction tool for NGS reads")
1493 (description
1494 "@dfn{Bloom-filter-based error correction solution for high-throughput
1495sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
1496correction tool for genomic reads produced by @dfn{Next-generation
1497sequencing} (NGS). BLESS produces accurate correction results with much less
1498memory compared with previous solutions and is also able to tolerate a higher
1499false-positive rate. BLESS can extend reads like DNA assemblers to correct
1500errors at the end of reads.")
1501 (license license:gpl3+)))
1502
2c7ee167
RW
1503(define-public bowtie
1504 (package
1505 (name "bowtie")
21c83740 1506 (version "2.3.4.3")
2c7ee167 1507 (source (origin
21c83740
RW
1508 (method git-fetch)
1509 (uri (git-reference
1510 (url "https://github.com/BenLangmead/bowtie2.git")
1511 (commit (string-append "v" version))))
1512 (file-name (git-file-name name version))
2c7ee167
RW
1513 (sha256
1514 (base32
21c83740 1515 "1zl3cf327y2p7p03cavymbh7b00djc7lncfaqih33n96iy9q8ibp"))
2c7ee167
RW
1516 (modules '((guix build utils)))
1517 (snippet
6cbee49d
MW
1518 '(begin
1519 (substitute* "Makefile"
1520 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1521 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1522 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
1523 #t))))
2c7ee167 1524 (build-system gnu-build-system)
2c7ee167 1525 (arguments
0047d26a
RW
1526 '(#:make-flags
1527 (list "allall"
1528 "WITH_TBB=1"
1529 (string-append "prefix=" (assoc-ref %outputs "out")))
2c7ee167 1530 #:phases
06e37236
BW
1531 (modify-phases %standard-phases
1532 (delete 'configure)
1533 (replace 'check
21c83740
RW
1534 (lambda _
1535 (invoke "perl"
1536 "scripts/test/simple_tests.pl"
1537 "--bowtie2=./bowtie2"
1538 "--bowtie2-build=./bowtie2-build")
1539 #t)))))
1540 (inputs
1541 `(("tbb" ,tbb)
1542 ("zlib" ,zlib)
1543 ("python" ,python-wrapper)))
1544 (native-inputs
1545 `(("perl" ,perl)
1546 ("perl-clone" ,perl-clone)
1547 ("perl-test-deep" ,perl-test-deep)
1548 ("perl-test-simple" ,perl-test-simple)))
2c7ee167
RW
1549 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
1550 (synopsis "Fast and sensitive nucleotide sequence read aligner")
1551 (description
1552 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
1553reads to long reference sequences. It is particularly good at aligning reads
1554of about 50 up to 100s or 1,000s of characters, and particularly good at
1555aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
1556genome with an FM Index to keep its memory footprint small: for the human
1557genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
1558gapped, local, and paired-end alignment modes.")
241e1221 1559 (supported-systems '("x86_64-linux"))
2c7ee167
RW
1560 (license license:gpl3+)))
1561
afeb10a0
RW
1562(define-public bowtie1
1563 (package
1564 (name "bowtie1")
1565 (version "1.2.2")
1566 (source (origin
1567 (method url-fetch)
1568 (uri (string-append "mirror://sourceforge/bowtie-bio/bowtie/"
1569 version "/bowtie-" version "-src.zip"))
1570 (sha256
1571 (base32
1572 "1jl2cj9bz8lwz8dwnxbycn8yp8g4kky62fkcxifyf1ri0y6n2vc0"))
1573 (modules '((guix build utils)))
1574 (snippet
1575 '(substitute* "Makefile"
1576 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1577 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1578 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
1579 (build-system gnu-build-system)
1580 (arguments
1581 '(#:tests? #f ; no "check" target
1582 #:make-flags
1583 (list "all"
1584 (string-append "prefix=" (assoc-ref %outputs "out")))
1585 #:phases
1586 (modify-phases %standard-phases
1587 (delete 'configure))))
1588 (inputs
1589 `(("tbb" ,tbb)
1590 ("zlib" ,zlib)))
1591 (supported-systems '("x86_64-linux"))
1592 (home-page "http://bowtie-bio.sourceforge.net/index.shtml")
1593 (synopsis "Fast aligner for short nucleotide sequence reads")
1594 (description
1595 "Bowtie is a fast, memory-efficient short read aligner. It aligns short
1596DNA sequences (reads) to the human genome at a rate of over 25 million 35-bp
1597reads per hour. Bowtie indexes the genome with a Burrows-Wheeler index to
1598keep its memory footprint small: typically about 2.2 GB for the human
1599genome (2.9 GB for paired-end).")
1600 (license license:artistic2.0)))
1601
94ce537e
RW
1602(define-public tophat
1603 (package
1604 (name "tophat")
9a6808e0 1605 (version "2.1.1")
94ce537e
RW
1606 (source (origin
1607 (method url-fetch)
1608 (uri (string-append
1609 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
1610 version ".tar.gz"))
1611 (sha256
1612 (base32
9a6808e0 1613 "19add02kv2xhd6ihd779dr7x35ggym3jqr0m5c4315i1yfb0p11p"))
94ce537e
RW
1614 (modules '((guix build utils)))
1615 (snippet
1616 '(begin
1617 ;; Remove bundled SeqAn and samtools
9a6808e0 1618 (delete-file-recursively "src/SeqAn-1.4.2")
94ce537e
RW
1619 (delete-file-recursively "src/samtools-0.1.18")
1620 #t))))
1621 (build-system gnu-build-system)
1622 (arguments
1623 '(#:parallel-build? #f ; not supported
1624 #:phases
1625 (modify-phases %standard-phases
1626 (add-after 'unpack 'use-system-samtools
1627 (lambda* (#:key inputs #:allow-other-keys)
1628 (substitute* "src/Makefile.in"
1629 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
1630 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
1631 (("SAMPROG = samtools_0\\.1\\.18") "")
1632 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
1633 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
1634 (substitute* '("src/common.cpp"
1635 "src/tophat.py")
1636 (("samtools_0.1.18") (which "samtools")))
1637 (substitute* '("src/common.h"
1638 "src/bam2fastx.cpp")
1639 (("#include \"bam.h\"") "#include <samtools/bam.h>")
1640 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
1641 (substitute* '("src/bwt_map.h"
1642 "src/map2gtf.h"
1643 "src/align_status.h")
1644 (("#include <bam.h>") "#include <samtools/bam.h>")
1645 (("#include <sam.h>") "#include <samtools/sam.h>"))
1646 #t)))))
1647 (inputs
1648 `(("boost" ,boost)
1649 ("bowtie" ,bowtie)
1650 ("samtools" ,samtools-0.1)
1651 ("ncurses" ,ncurses)
1652 ("python" ,python-2)
1653 ("perl" ,perl)
1654 ("zlib" ,zlib)
4d93a9a3 1655 ("seqan" ,seqan-1)))
94ce537e
RW
1656 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
1657 (synopsis "Spliced read mapper for RNA-Seq data")
1658 (description
1659 "TopHat is a fast splice junction mapper for nucleotide sequence
1660reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
1661mammalian-sized genomes using the ultra high-throughput short read
1662aligner Bowtie, and then analyzes the mapping results to identify
1663splice junctions between exons.")
1664 ;; TopHat is released under the Boost Software License, Version 1.0
1665 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
1666 (license license:boost1.0)))
1667
9a8336d8
RW
1668(define-public bwa
1669 (package
1670 (name "bwa")
6f141eff 1671 (version "0.7.17")
9a8336d8
RW
1672 (source (origin
1673 (method url-fetch)
ae6e00f6
BW
1674 (uri (string-append
1675 "https://github.com/lh3/bwa/releases/download/v"
1676 version "/bwa-" version ".tar.bz2"))
9a8336d8
RW
1677 (sha256
1678 (base32
6f141eff 1679 "1zfhv2zg9v1icdlq4p9ssc8k01mca5d1bd87w71py2swfi74s6yy"))))
9a8336d8
RW
1680 (build-system gnu-build-system)
1681 (arguments
1682 '(#:tests? #f ;no "check" target
1683 #:phases
dc1d3cde
KK
1684 (modify-phases %standard-phases
1685 (replace 'install
1686 (lambda* (#:key outputs #:allow-other-keys)
1687 (let ((bin (string-append
1688 (assoc-ref outputs "out") "/bin"))
1689 (doc (string-append
1690 (assoc-ref outputs "out") "/share/doc/bwa"))
1691 (man (string-append
1692 (assoc-ref outputs "out") "/share/man/man1")))
1693 (install-file "bwa" bin)
1694 (install-file "README.md" doc)
1695 (install-file "bwa.1" man))
1696 #t))
1697 ;; no "configure" script
1698 (delete 'configure))))
9a8336d8 1699 (inputs `(("zlib" ,zlib)))
db94f8c7
RW
1700 ;; Non-portable SSE instructions are used so building fails on platforms
1701 ;; other than x86_64.
1702 (supported-systems '("x86_64-linux"))
9a8336d8
RW
1703 (home-page "http://bio-bwa.sourceforge.net/")
1704 (synopsis "Burrows-Wheeler sequence aligner")
1705 (description
1706 "BWA is a software package for mapping low-divergent sequences against a
1707large reference genome, such as the human genome. It consists of three
1708algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
1709designed for Illumina sequence reads up to 100bp, while the rest two for
1710longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
1711features such as long-read support and split alignment, but BWA-MEM, which is
1712the latest, is generally recommended for high-quality queries as it is faster
1713and more accurate. BWA-MEM also has better performance than BWA-backtrack for
171470-100bp Illumina reads.")
1715 (license license:gpl3+)))
1716
d29150b5
RW
1717(define-public bwa-pssm
1718 (package (inherit bwa)
1719 (name "bwa-pssm")
1720 (version "0.5.11")
1721 (source (origin
1d18ee6d
RW
1722 (method git-fetch)
1723 (uri (git-reference
1724 (url "https://github.com/pkerpedjiev/bwa-pssm.git")
1725 (commit version)))
1726 (file-name (git-file-name name version))
d29150b5
RW
1727 (sha256
1728 (base32
1d18ee6d 1729 "076c4q0cdqz8jgylb067y9zmvxglppnzi3qiscn0xiypgc6lgb5r"))))
d29150b5
RW
1730 (build-system gnu-build-system)
1731 (inputs
1732 `(("gdsl" ,gdsl)
1733 ("zlib" ,zlib)
1734 ("perl" ,perl)))
1735 (home-page "http://bwa-pssm.binf.ku.dk/")
1736 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
1737 (description
1738 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
1739the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
1740existing aligners it is fast and sensitive. Unlike most other aligners,
1741however, it is also adaptible in the sense that one can direct the alignment
1742based on known biases within the data set. It is coded as a modification of
1743the original BWA alignment program and shares the genome index structure as
1744well as many of the command line options.")
1745 (license license:gpl3+)))
1746
07c8b558
RW
1747(define-public bwa-meth
1748 (package
1749 (name "bwa-meth")
1750 (version "0.2.2")
1751 (source (origin
1752 (method git-fetch)
1753 (uri (git-reference
1754 (url "https://github.com/brentp/bwa-meth.git")
1755 (commit (string-append "v" version))))
1756 (file-name (git-file-name name version))
1757 (sha256
1758 (base32
1759 "17j31i7zws5j7mhsq9x3qgkxly6mlmrgwhfq0qbflgxrmx04yaiz"))))
1760 (build-system python-build-system)
1761 (arguments
1762 `(#:phases
1763 (modify-phases %standard-phases
1764 (add-after 'unpack 'keep-references-to-bwa
1765 (lambda* (#:key inputs #:allow-other-keys)
1766 (substitute* "bwameth.py"
1767 (("bwa mem")
1768 (string-append (which "bwa") " mem"))
1769 ;; There's an ill-advised check for "samtools" on PATH.
1770 (("^checkX.*") ""))
1771 #t)))))
1772 (inputs
1773 `(("bwa" ,bwa)))
1774 (native-inputs
1775 `(("python-toolshed" ,python-toolshed)))
1776 (home-page "https://github.com/brentp/bwa-meth")
1777 (synopsis "Fast and accurante alignment of BS-Seq reads")
1778 (description
1779 "BWA-Meth works for single-end reads and for paired-end reads from the
1780directional protocol (most common). It uses the method employed by
1781methylcoder and Bismark of in silico conversion of all C's to T's in both
1782reference and reads. It recovers the original read (needed to tabulate
1783methylation) by attaching it as a comment which BWA appends as a tag to the
1784read. It performs favorably to existing aligners gauged by number of on and
1785off-target reads for a capture method that targets CpG-rich region.")
1786 (license license:expat)))
1787
f5cec006 1788(define-public python-bx-python
ad641d53 1789 (package
f5cec006 1790 (name "python-bx-python")
2ba2d62c 1791 (version "0.8.2")
ad641d53
RW
1792 (source (origin
1793 (method url-fetch)
c1dfe8c3 1794 (uri (pypi-uri "bx-python" version))
ad641d53
RW
1795 (sha256
1796 (base32
2ba2d62c 1797 "11kksg2rbzihpmcid823xvg42xi88m7sz58rzk29abybkxy0rszs"))))
ad641d53 1798 (build-system python-build-system)
f5cec006
RW
1799 ;; Tests fail because test data are not included
1800 (arguments '(#:tests? #f))
2ba2d62c 1801 (propagated-inputs
f5cec006
RW
1802 `(("python-numpy" ,python-numpy)
1803 ("python-six" ,python-six)))
2ba2d62c
RW
1804 (inputs
1805 `(("zlib" ,zlib)))
ad641d53 1806 (native-inputs
f5cec006
RW
1807 `(("python-lzo" ,python-lzo)
1808 ("python-nose" ,python-nose)
1809 ("python-cython" ,python-cython)))
2ba2d62c 1810 (home-page "https://github.com/bxlab/bx-python")
ad641d53
RW
1811 (synopsis "Tools for manipulating biological data")
1812 (description
1813 "bx-python provides tools for manipulating biological data, particularly
1814multiple sequence alignments.")
1815 (license license:expat)))
1816
f5cec006
RW
1817(define-public python2-bx-python
1818 (package-with-python2 python-bx-python))
1819
55a9a8c2
RW
1820(define-public python-pysam
1821 (package
1822 (name "python-pysam")
939882f7 1823 (version "0.15.1")
d454640c 1824 (source (origin
939882f7 1825 (method git-fetch)
f536dce5 1826 ;; Test data is missing on PyPi.
939882f7
RW
1827 (uri (git-reference
1828 (url "https://github.com/pysam-developers/pysam.git")
1829 (commit (string-append "v" version))))
1830 (file-name (git-file-name name version))
d454640c
RW
1831 (sha256
1832 (base32
939882f7 1833 "1vj367w6xbn9bpmksm162l1aipf7cj97h1q83y7jcpm33ihwpf7x"))
dff26b23 1834 (modules '((guix build utils)))
6cbee49d
MW
1835 (snippet '(begin
1836 ;; Drop bundled htslib. TODO: Also remove samtools
1837 ;; and bcftools.
1838 (delete-file-recursively "htslib")
1839 #t))))
55a9a8c2
RW
1840 (build-system python-build-system)
1841 (arguments
71dbf592
RW
1842 `(#:modules ((ice-9 ftw)
1843 (srfi srfi-26)
1844 (guix build python-build-system)
1845 (guix build utils))
1846 #:phases
397d463a
MB
1847 (modify-phases %standard-phases
1848 (add-before 'build 'set-flags
dff26b23
MB
1849 (lambda* (#:key inputs #:allow-other-keys)
1850 (setenv "HTSLIB_MODE" "external")
1851 (setenv "HTSLIB_LIBRARY_DIR"
1852 (string-append (assoc-ref inputs "htslib") "/lib"))
1853 (setenv "HTSLIB_INCLUDE_DIR"
1854 (string-append (assoc-ref inputs "htslib") "/include"))
397d463a
MB
1855 (setenv "LDFLAGS" "-lncurses")
1856 (setenv "CFLAGS" "-D_CURSES_LIB=1")
f536dce5 1857 #t))
71dbf592 1858 (replace 'check
f536dce5 1859 (lambda* (#:key inputs outputs #:allow-other-keys)
939882f7
RW
1860 ;; This file contains tests that require a connection to the
1861 ;; internet.
1862 (delete-file "tests/tabix_test.py")
1863 ;; FIXME: This test fails
1864 (delete-file "tests/AlignmentFile_test.py")
71dbf592 1865 ;; Add first subdirectory of "build" directory to PYTHONPATH.
f536dce5
MB
1866 (setenv "PYTHONPATH"
1867 (string-append
1868 (getenv "PYTHONPATH")
71dbf592
RW
1869 ":" (getcwd) "/build/"
1870 (car (scandir "build"
e1f02f92 1871 (negate (cut string-prefix? "." <>))))))
f536dce5 1872 ;; Step out of source dir so python does not import from CWD.
71dbf592
RW
1873 (with-directory-excursion "tests"
1874 (setenv "HOME" "/tmp")
939882f7
RW
1875 (invoke "make" "-C" "pysam_data")
1876 (invoke "make" "-C" "cbcf_data")
1877 ;; Running nosetests without explicitly asking for a single
1878 ;; process leads to a crash. Running with multiple processes
1879 ;; fails because the tests are not designed to run in parallel.
31c374e0 1880
939882f7
RW
1881 ;; FIXME: tests keep timing out on some systems.
1882 (invoke "nosetests" "-v" "--processes" "1")))))))
dff26b23 1883 (propagated-inputs
939882f7 1884 `(("htslib" ,htslib))) ; Included from installed header files.
55a9a8c2 1885 (inputs
939882f7
RW
1886 `(("ncurses" ,ncurses)
1887 ("curl" ,curl)
1888 ("zlib" ,zlib)))
649e9b3b 1889 (native-inputs
939882f7 1890 `(("python-cython" ,python-cython)
f536dce5 1891 ;; Dependencies below are are for tests only.
939882f7
RW
1892 ("samtools" ,samtools)
1893 ("bcftools" ,bcftools)
1894 ("python-nose" ,python-nose)))
55a9a8c2
RW
1895 (home-page "https://github.com/pysam-developers/pysam")
1896 (synopsis "Python bindings to the SAMtools C API")
1897 (description
1898 "Pysam is a Python module for reading and manipulating files in the
1899SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
1900also includes an interface for tabix.")
1901 (license license:expat)))
1902
1903(define-public python2-pysam
1904 (package-with-python2 python-pysam))
1905
4db9433a
RW
1906(define-public python-twobitreader
1907 (package
1908 (name "python-twobitreader")
8640f9ec 1909 (version "3.1.6")
4db9433a 1910 (source (origin
8640f9ec
RW
1911 (method git-fetch)
1912 (uri (git-reference
1913 (url "https://github.com/benjschiller/twobitreader")
1914 (commit version)))
1915 (file-name (git-file-name name version))
4db9433a
RW
1916 (sha256
1917 (base32
8640f9ec 1918 "1qbxvv1h58cismbk1anpjrkpghsaiy64a11ir3lhy6qch6xf8n62"))))
4db9433a 1919 (build-system python-build-system)
8640f9ec
RW
1920 ;; Tests are not included
1921 (arguments '(#:tests? #f))
4db9433a
RW
1922 (native-inputs
1923 `(("python-sphinx" ,python-sphinx)))
1924 (home-page "https://github.com/benjschiller/twobitreader")
1925 (synopsis "Python library for reading .2bit files")
1926 (description
1927 "twobitreader is a Python library for reading .2bit files as used by the
1928UCSC genome browser.")
1929 (license license:artistic2.0)))
1930
1931(define-public python2-twobitreader
5c31f4aa 1932 (package-with-python2 python-twobitreader))
4db9433a 1933
f94bf198
RW
1934(define-public python-plastid
1935 (package
1936 (name "python-plastid")
897ab082 1937 (version "0.4.8")
f94bf198
RW
1938 (source (origin
1939 (method url-fetch)
1940 (uri (pypi-uri "plastid" version))
1941 (sha256
1942 (base32
897ab082 1943 "0l24dd3q66if8yj042m4s0g95n6acn7im1imqd3p6h8ns43kxhj8"))))
f94bf198
RW
1944 (build-system python-build-system)
1945 (arguments
1946 ;; Some test files are not included.
1947 `(#:tests? #f))
1948 (propagated-inputs
1949 `(("python-numpy" ,python-numpy)
1950 ("python-scipy" ,python-scipy)
1951 ("python-pandas" ,python-pandas)
1952 ("python-pysam" ,python-pysam)
1953 ("python-matplotlib" ,python-matplotlib)
1954 ("python-biopython" ,python-biopython)
99caa6f7
BW
1955 ("python-twobitreader" ,python-twobitreader)
1956 ("python-termcolor" ,python-termcolor)))
f94bf198
RW
1957 (native-inputs
1958 `(("python-cython" ,python-cython)
1959 ("python-nose" ,python-nose)))
1960 (home-page "https://github.com/joshuagryphon/plastid")
1961 (synopsis "Python library for genomic analysis")
1962 (description
1963 "plastid is a Python library for genomic analysis – in particular,
1964high-throughput sequencing data – with an emphasis on simplicity.")
1965 (license license:bsd-3)))
1966
1967(define-public python2-plastid
5c31f4aa 1968 (package-with-python2 python-plastid))
f94bf198 1969
0b5d12cc
RW
1970(define-public tetoolkit
1971 (package
1972 (name "tetoolkit")
1973 (version "2.0.3")
1974 (source (origin
1975 (method git-fetch)
1976 (uri (git-reference
1977 (url "https://github.com/mhammell-laboratory/tetoolkit.git")
1978 (commit version)))
1979 (file-name (git-file-name name version))
1980 (sha256
1981 (base32
1982 "1yzi0kfpzip8zpjb82x1ik6h22yzfyjiz2dv85v6as2awwqvk807"))))
1983 (build-system python-build-system)
1984 (arguments
1985 `(#:python ,python-2 ; not guaranteed to work with Python 3
1986 #:phases
1987 (modify-phases %standard-phases
1988 (add-after 'unpack 'make-writable
1989 (lambda _
1990 (for-each make-file-writable (find-files "."))
1991 #t))
1992 (add-after 'unpack 'patch-invocations
1993 (lambda* (#:key inputs #:allow-other-keys)
1994 (substitute* '("bin/TEtranscripts"
1995 "bin/TEcount")
1996 (("'sort ")
1997 (string-append "'" (which "sort") " "))
1998 (("'rm -f ")
1999 (string-append "'" (which "rm") " -f "))
2000 (("'Rscript'") (string-append "'" (which "Rscript") "'")))
2001 (substitute* "TEToolkit/IO/ReadInputs.py"
2002 (("BamToBED") (which "bamToBed")))
2003 (substitute* "TEToolkit/Normalization.py"
2004 (("\"Rscript\"")
2005 (string-append "\"" (which "Rscript") "\"")))
2006 #t))
2007 (add-after 'install 'wrap-program
2008 (lambda* (#:key outputs #:allow-other-keys)
2009 ;; Make sure the executables find R packages.
2010 (let ((out (assoc-ref outputs "out")))
2011 (for-each
2012 (lambda (script)
2013 (wrap-program (string-append out "/bin/" script)
2014 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
2015 '("TEtranscripts"
2016 "TEcount")))
2017 #t)))))
2018 (inputs
2019 `(("coreutils" ,coreutils)
2020 ("bedtools" ,bedtools)
2021 ("python-argparse" ,python2-argparse)
2022 ("python-pysam" ,python2-pysam)
2023 ("r-minimal" ,r-minimal)
2024 ("r-deseq2" ,r-deseq2)))
2025 (home-page "https://github.com/mhammell-laboratory/tetoolkit")
2026 (synopsis "Transposable elements in differential enrichment analysis")
2027 (description
2028 "This is package for including transposable elements in differential
2029enrichment analysis of sequencing datasets. TEtranscripts and TEcount take
2030RNA-seq (and similar data) and annotates reads to both genes and transposable
2031elements. TEtranscripts then performs differential analysis using DESeq2.
2032Note that TEtranscripts and TEcount rely on specially curated GTF files, which
2033are not included due to their size.")
2034 (license license:gpl3+)))
2035
6c1305f9
RW
2036(define-public cd-hit
2037 (package
2038 (name "cd-hit")
ba773f65 2039 (version "4.6.8")
6c1305f9
RW
2040 (source (origin
2041 (method url-fetch)
2042 (uri (string-append "https://github.com/weizhongli/cdhit"
2043 "/releases/download/V" version
ba773f65
BW
2044 "/cd-hit-v" version
2045 "-2017-0621-source.tar.gz"))
6c1305f9
RW
2046 (sha256
2047 (base32
d4735e8c 2048 "1b4mwm2520ixjbw57sil20f9iixzw4bkdqqwgg1fc3pzm6rz4zmn"))))
6c1305f9
RW
2049 (build-system gnu-build-system)
2050 (arguments
2051 `(#:tests? #f ; there are no tests
2052 #:make-flags
2053 ;; Executables are copied directly to the PREFIX.
3b296475
RW
2054 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin")
2055 ;; Support longer sequences (e.g. Pacbio sequences)
2056 "MAX_SEQ=60000000")
6c1305f9
RW
2057 #:phases
2058 (modify-phases %standard-phases
2059 ;; No "configure" script
2060 (delete 'configure)
2061 ;; Remove sources of non-determinism
2062 (add-after 'unpack 'be-timeless
2063 (lambda _
2064 (substitute* "cdhit-utility.c++"
2065 ((" \\(built on \" __DATE__ \"\\)") ""))
2066 (substitute* "cdhit-common.c++"
2067 (("__DATE__") "\"0\"")
2068 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
2069 #t))
ba773f65 2070 ;; The "install" target does not create the target directory.
6c1305f9
RW
2071 (add-before 'install 'create-target-dir
2072 (lambda* (#:key outputs #:allow-other-keys)
2073 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
2074 #t)))))
2075 (inputs
2076 `(("perl" ,perl)))
2077 (home-page "http://weizhongli-lab.org/cd-hit/")
2078 (synopsis "Cluster and compare protein or nucleotide sequences")
2079 (description
2080 "CD-HIT is a program for clustering and comparing protein or nucleotide
2081sequences. CD-HIT is designed to be fast and handle extremely large
2082databases.")
2083 ;; The manual says: "It can be copied under the GNU General Public License
2084 ;; version 2 (GPLv2)."
2085 (license license:gpl2)))
2086
810cff85
RW
2087(define-public clipper
2088 (package
2089 (name "clipper")
8b4102b9 2090 (version "1.2.1")
810cff85 2091 (source (origin
8b4102b9
RW
2092 (method git-fetch)
2093 (uri (git-reference
2094 (url "https://github.com/YeoLab/clipper.git")
2095 (commit version)))
2096 (file-name (git-file-name name version))
810cff85
RW
2097 (sha256
2098 (base32
8b4102b9 2099 "0fja1rj84wp9vpj8rxpj3n8zqzcqq454m904yp9as1w4phccirjb"))
810cff85
RW
2100 (modules '((guix build utils)))
2101 (snippet
433530a5
RW
2102 '(begin
2103 ;; remove unnecessary setup dependency
2104 (substitute* "setup.py"
2105 (("setup_requires = .*") ""))
433530a5 2106 #t))))
810cff85 2107 (build-system python-build-system)
8b4102b9
RW
2108 (arguments
2109 `(#:python ,python-2 ; only Python 2 is supported
2110 #:phases
2111 (modify-phases %standard-phases
2112 ;; This is fixed in upstream commit
2113 ;; f6c2990198f906bf97730d95695b4bd5a6d01ddb.
2114 (add-after 'unpack 'fix-typo
2115 (lambda _
2116 (substitute* "clipper/src/readsToWiggle.pyx"
2117 (("^sc.*") ""))
2118 #t)))))
810cff85 2119 (inputs
92971d68 2120 `(("htseq" ,python2-htseq)
810cff85
RW
2121 ("python-pybedtools" ,python2-pybedtools)
2122 ("python-cython" ,python2-cython)
2123 ("python-scikit-learn" ,python2-scikit-learn)
2124 ("python-matplotlib" ,python2-matplotlib)
433530a5 2125 ("python-pandas" ,python2-pandas)
810cff85
RW
2126 ("python-pysam" ,python2-pysam)
2127 ("python-numpy" ,python2-numpy)
2128 ("python-scipy" ,python2-scipy)))
2129 (native-inputs
f3b98f4f 2130 `(("python-mock" ,python2-mock) ; for tests
d281be18 2131 ("python-nose" ,python2-nose) ; for tests
f3b98f4f 2132 ("python-pytz" ,python2-pytz))) ; for tests
810cff85
RW
2133 (home-page "https://github.com/YeoLab/clipper")
2134 (synopsis "CLIP peak enrichment recognition")
2135 (description
2136 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
2137 (license license:gpl2)))
2138
6a35566d
RS
2139(define-public codingquarry
2140 (package
2141 (name "codingquarry")
2142 (version "2.0")
2143 (source (origin
2144 (method url-fetch)
2145 (uri (string-append
2146 "mirror://sourceforge/codingquarry/CodingQuarry_v"
2147 version ".tar.gz"))
2148 (sha256
2149 (base32
2150 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
2151 (build-system gnu-build-system)
2152 (arguments
2153 '(#:tests? #f ; no "check" target
2154 #:phases
2155 (modify-phases %standard-phases
2156 (delete 'configure)
2157 (replace 'install
2158 (lambda* (#:key outputs #:allow-other-keys)
2159 (let* ((out (assoc-ref outputs "out"))
2160 (bin (string-append out "/bin"))
2161 (doc (string-append out "/share/doc/codingquarry")))
2162 (install-file "INSTRUCTIONS.pdf" doc)
2163 (copy-recursively "QuarryFiles"
2164 (string-append out "/QuarryFiles"))
2165 (install-file "CodingQuarry" bin)
2e0f6905
MW
2166 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin))
2167 #t)))))
6a35566d
RS
2168 (inputs `(("openmpi" ,openmpi)))
2169 (native-search-paths
2170 (list (search-path-specification
2171 (variable "QUARRY_PATH")
2172 (files '("QuarryFiles")))))
2173 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
2174 (synopsis "Fungal gene predictor")
2175 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
2176gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
2177 (home-page "https://sourceforge.net/projects/codingquarry/")
2178 (license license:gpl3+)))
2179
36742f43
RW
2180(define-public couger
2181 (package
2182 (name "couger")
2183 (version "1.8.2")
2184 (source (origin
2185 (method url-fetch)
2186 (uri (string-append
2187 "http://couger.oit.duke.edu/static/assets/COUGER"
2188 version ".zip"))
2189 (sha256
2190 (base32
2191 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
2192 (build-system gnu-build-system)
2193 (arguments
2194 `(#:tests? #f
2195 #:phases
2196 (modify-phases %standard-phases
2197 (delete 'configure)
2198 (delete 'build)
2199 (replace
2200 'install
2201 (lambda* (#:key outputs #:allow-other-keys)
f3860753
TGR
2202 (let* ((out (assoc-ref outputs "out"))
2203 (bin (string-append out "/bin")))
36742f43 2204 (copy-recursively "src" (string-append out "/src"))
f3860753 2205 (mkdir bin)
36742f43
RW
2206 ;; Add "src" directory to module lookup path.
2207 (substitute* "couger"
2208 (("from argparse")
2209 (string-append "import sys\nsys.path.append(\""
2210 out "\")\nfrom argparse")))
f3860753 2211 (install-file "couger" bin))
36742f43
RW
2212 #t))
2213 (add-after
2214 'install 'wrap-program
2215 (lambda* (#:key inputs outputs #:allow-other-keys)
2216 ;; Make sure 'couger' runs with the correct PYTHONPATH.
2217 (let* ((out (assoc-ref outputs "out"))
2218 (path (getenv "PYTHONPATH")))
2219 (wrap-program (string-append out "/bin/couger")
2220 `("PYTHONPATH" ":" prefix (,path))))
2221 #t)))))
2222 (inputs
2223 `(("python" ,python-2)
2224 ("python2-pillow" ,python2-pillow)
2225 ("python2-numpy" ,python2-numpy)
2226 ("python2-scipy" ,python2-scipy)
2227 ("python2-matplotlib" ,python2-matplotlib)))
2228 (propagated-inputs
2d7c4ae3 2229 `(("r-minimal" ,r-minimal)
36742f43
RW
2230 ("libsvm" ,libsvm)
2231 ("randomjungle" ,randomjungle)))
2232 (native-inputs
2233 `(("unzip" ,unzip)))
2234 (home-page "http://couger.oit.duke.edu")
2235 (synopsis "Identify co-factors in sets of genomic regions")
2236 (description
2237 "COUGER can be applied to any two sets of genomic regions bound by
2238paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
2239putative co-factors that provide specificity to each TF. The framework
2240determines the genomic targets uniquely-bound by each TF, and identifies a
2241small set of co-factors that best explain the in vivo binding differences
2242between the two TFs.
2243
2244COUGER uses classification algorithms (support vector machines and random
2245forests) with features that reflect the DNA binding specificities of putative
2246co-factors. The features are generated either from high-throughput TF-DNA
2247binding data (from protein binding microarray experiments), or from large
2248collections of DNA motifs.")
2249 (license license:gpl3+)))
2250
bfe3c685
RW
2251(define-public clustal-omega
2252 (package
2253 (name "clustal-omega")
b3936f35 2254 (version "1.2.4")
bfe3c685
RW
2255 (source (origin
2256 (method url-fetch)
b3936f35
RW
2257 (uri (string-append "http://www.clustal.org/omega/clustal-omega-"
2258 version ".tar.gz"))
bfe3c685
RW
2259 (sha256
2260 (base32
b3936f35 2261 "1vm30mzncwdv881vrcwg11vzvrsmwy4wg80j5i0lcfk6dlld50w6"))))
bfe3c685
RW
2262 (build-system gnu-build-system)
2263 (inputs
2264 `(("argtable" ,argtable)))
2265 (home-page "http://www.clustal.org/omega/")
2266 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
2267 (description
2268 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
2269program for protein and DNA/RNA. It produces high quality MSAs and is capable
2270of handling data-sets of hundreds of thousands of sequences in reasonable
2271time.")
2272 (license license:gpl2+)))
2273
191c7101
RW
2274(define-public crossmap
2275 (package
2276 (name "crossmap")
7321920c 2277 (version "0.2.9")
191c7101
RW
2278 (source (origin
2279 (method url-fetch)
7321920c 2280 (uri (pypi-uri "CrossMap" version))
191c7101
RW
2281 (sha256
2282 (base32
7321920c 2283 "1byhclrqnqpvc1rqkfh4jwj6yhn0x9y7jk47i0qcjlhk0pjkw92p"))))
191c7101 2284 (build-system python-build-system)
7321920c 2285 (arguments `(#:python ,python-2))
191c7101 2286 (inputs
7321920c
RW
2287 `(("python-bx-python" ,python2-bx-python)
2288 ("python-numpy" ,python2-numpy)
191c7101
RW
2289 ("python-pysam" ,python2-pysam)
2290 ("zlib" ,zlib)))
2291 (native-inputs
2292 `(("python-cython" ,python2-cython)
f3b98f4f 2293 ("python-nose" ,python2-nose)))
191c7101
RW
2294 (home-page "http://crossmap.sourceforge.net/")
2295 (synopsis "Convert genome coordinates between assemblies")
2296 (description
2297 "CrossMap is a program for conversion of genome coordinates or annotation
2298files between different genome assemblies. It supports most commonly used
2299file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
2300 (license license:gpl2+)))
2301
a5b0038c
RW
2302(define-public python-dnaio
2303 (package
2304 (name "python-dnaio")
2305 (version "0.3")
2306 (source
2307 (origin
2308 (method url-fetch)
2309 (uri (pypi-uri "dnaio" version))
2310 (sha256
2311 (base32
2312 "0f16m7hdlm0fz1n7y5asy0v9ghyrq17ni1p9iybq22ddzyd49r27"))))
2313 (build-system python-build-system)
2314 (native-inputs
2315 `(("python-cython" ,python-cython)
2316 ("python-pytest" ,python-pytest)
2317 ("python-xopen" ,python-xopen)))
2318 (home-page "https://github.com/marcelm/dnaio/")
2319 (synopsis "Read FASTA and FASTQ files efficiently")
2320 (description
2321 "dnaio is a Python library for fast parsing of FASTQ and also FASTA
2322files. The code was previously part of the cutadapt tool.")
2323 (license license:expat)))
2324
8e913213
RW
2325(define-public cutadapt
2326 (package
2327 (name "cutadapt")
9ac17c62 2328 (version "2.1")
8e913213 2329 (source (origin
9ac17c62
RW
2330 (method url-fetch)
2331 (uri (pypi-uri "cutadapt" version))
8e913213
RW
2332 (sha256
2333 (base32
9ac17c62 2334 "1vqmsfkm6llxzmsz9wcfcvzx9a9f8iabvwik2rbyn7nc4wm25z89"))))
8e913213 2335 (build-system python-build-system)
1f94bff2 2336 (inputs
6b7260ba
RW
2337 `(("python-dnaio" ,python-dnaio)
2338 ("python-xopen" ,python-xopen)))
8e913213
RW
2339 (native-inputs
2340 `(("python-cython" ,python-cython)
9ac17c62
RW
2341 ("python-pytest" ,python-pytest)
2342 ("python-setuptools-scm" ,python-setuptools-scm)))
0c6c9c00 2343 (home-page "https://cutadapt.readthedocs.io/en/stable/")
8e913213
RW
2344 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
2345 (description
2346 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
2347other types of unwanted sequence from high-throughput sequencing reads.")
2348 (license license:expat)))
2349
1baee943
RW
2350(define-public libbigwig
2351 (package
2352 (name "libbigwig")
0d7974c3 2353 (version "0.4.2")
1baee943 2354 (source (origin
0d7974c3
RW
2355 (method git-fetch)
2356 (uri (git-reference
2357 (url "https://github.com/dpryan79/libBigWig.git")
2358 (commit version)))
2359 (file-name (string-append name "-" version "-checkout"))
1baee943
RW
2360 (sha256
2361 (base32
0d7974c3 2362 "0h2smg24v5srdcqzrmz2g23cmlp4va465mgx8r2z571sfz8pv454"))))
1baee943
RW
2363 (build-system gnu-build-system)
2364 (arguments
2365 `(#:test-target "test"
0d7974c3 2366 #:tests? #f ; tests require access to the web
1baee943
RW
2367 #:make-flags
2368 (list "CC=gcc"
2369 (string-append "prefix=" (assoc-ref %outputs "out")))
2370 #:phases
2371 (modify-phases %standard-phases
0d7974c3 2372 (delete 'configure))))
1baee943
RW
2373 (inputs
2374 `(("zlib" ,zlib)
2375 ("curl" ,curl)))
2376 (native-inputs
0d7974c3
RW
2377 `(("doxygen" ,doxygen)
2378 ;; Need for tests
2379 ("python" ,python-2)))
1baee943
RW
2380 (home-page "https://github.com/dpryan79/libBigWig")
2381 (synopsis "C library for handling bigWig files")
2382 (description
2383 "This package provides a C library for parsing local and remote BigWig
2384files.")
2385 (license license:expat)))
2386
69e0e03c
RW
2387(define-public python-pybigwig
2388 (package
2389 (name "python-pybigwig")
8afdeb87 2390 (version "0.3.12")
69e0e03c
RW
2391 (source (origin
2392 (method url-fetch)
2393 (uri (pypi-uri "pyBigWig" version))
2394 (sha256
2395 (base32
8afdeb87 2396 "00w4kfnm2c5l7wdwr2nj1z5djv8kzgf7h1zhsgv6njff1rwr26g0"))
69e0e03c
RW
2397 (modules '((guix build utils)))
2398 (snippet
2399 '(begin
2400 ;; Delete bundled libBigWig sources
6cbee49d
MW
2401 (delete-file-recursively "libBigWig")
2402 #t))))
69e0e03c
RW
2403 (build-system python-build-system)
2404 (arguments
2405 `(#:phases
2406 (modify-phases %standard-phases
2407 (add-after 'unpack 'link-with-libBigWig
2408 (lambda* (#:key inputs #:allow-other-keys)
2409 (substitute* "setup.py"
2410 (("libs=\\[") "libs=[\"BigWig\", "))
2411 #t)))))
8afdeb87
RW
2412 (propagated-inputs
2413 `(("python-numpy" ,python-numpy)))
69e0e03c
RW
2414 (inputs
2415 `(("libbigwig" ,libbigwig)
2416 ("zlib" ,zlib)
2417 ("curl" ,curl)))
2418 (home-page "https://github.com/dpryan79/pyBigWig")
2419 (synopsis "Access bigWig files in Python using libBigWig")
2420 (description
2421 "This package provides Python bindings to the libBigWig library for
2422accessing bigWig files.")
2423 (license license:expat)))
2424
2425(define-public python2-pybigwig
5c31f4aa 2426 (package-with-python2 python-pybigwig))
69e0e03c 2427
ec2a67de
BW
2428(define-public python-dendropy
2429 (package
2430 (name "python-dendropy")
9e0c135c 2431 (version "4.4.0")
ec2a67de
BW
2432 (source
2433 (origin
42643fc2 2434 (method git-fetch)
9e0c135c 2435 ;; Source from GitHub so that tests are included.
42643fc2
RW
2436 (uri (git-reference
2437 (url "https://github.com/jeetsukumaran/DendroPy.git")
2438 (commit (string-append "v" version))))
2439 (file-name (git-file-name name version))
ec2a67de
BW
2440 (sha256
2441 (base32
42643fc2 2442 "097hfyv2kaf4x92i4rjx0paw2cncxap48qivv8zxng4z7nhid0x9"))))
ec2a67de
BW
2443 (build-system python-build-system)
2444 (home-page "http://packages.python.org/DendroPy/")
2445 (synopsis "Library for phylogenetics and phylogenetic computing")
2446 (description
2447 "DendroPy is a library for phylogenetics and phylogenetic computing: reading,
2448writing, simulation, processing and manipulation of phylogenetic
2449trees (phylogenies) and characters.")
9e0c135c 2450 (license license:bsd-3)))
ec2a67de
BW
2451
2452(define-public python2-dendropy
617c4785
BW
2453 (let ((base (package-with-python2 python-dendropy)))
2454 (package
2455 (inherit base)
2456 (arguments
2457 `(#:phases
2458 (modify-phases %standard-phases
2459 (add-after 'unpack 'remove-failing-test
2460 (lambda _
2461 ;; This test fails when the full test suite is run, as documented
2462 ;; at https://github.com/jeetsukumaran/DendroPy/issues/74
2463 (substitute* "tests/test_dataio_nexml_reader_tree_list.py"
2464 (("test_collection_comments_and_annotations")
2465 "do_not_test_collection_comments_and_annotations"))
2466 #t)))
2467 ,@(package-arguments base))))))
ec2a67de 2468
eb2200f3
RW
2469(define-public python-py2bit
2470 (package
2471 (name "python-py2bit")
6b31040a 2472 (version "0.3.0")
eb2200f3
RW
2473 (source
2474 (origin
2475 (method url-fetch)
2476 (uri (pypi-uri "py2bit" version))
2477 (sha256
2478 (base32
6b31040a 2479 "1vw2nvw1yrl7ikkqsqs1pg239yr5nspvd969r1x9arms1k25a1a5"))))
eb2200f3
RW
2480 (build-system python-build-system)
2481 (home-page "https://github.com/dpryan79/py2bit")
2482 (synopsis "Access 2bit files using lib2bit")
2483 (description
2484 "This package provides Python bindings for lib2bit to access 2bit files
2485with Python.")
2486 (license license:expat)))
ec2a67de 2487
1921b1de
RW
2488(define-public deeptools
2489 (package
2490 (name "deeptools")
4d494a4f 2491 (version "3.1.3")
1921b1de 2492 (source (origin
8e72f0f3
RW
2493 (method git-fetch)
2494 (uri (git-reference
2495 (url "https://github.com/deeptools/deepTools.git")
2496 (commit version)))
2497 (file-name (git-file-name name version))
1921b1de
RW
2498 (sha256
2499 (base32
4d494a4f 2500 "1vggnf52g6q2vifdl4cyi7s2fnfqq0ky2zrkj5zv2qfzsc3p3siw"))))
1921b1de 2501 (build-system python-build-system)
8e72f0f3
RW
2502 (arguments
2503 `(#:phases
2504 (modify-phases %standard-phases
2505 ;; This phase fails, but it's not needed.
2506 (delete 'reset-gzip-timestamps))))
14bda1ff 2507 (inputs
8e72f0f3
RW
2508 `(("python-plotly" ,python-plotly)
2509 ("python-scipy" ,python-scipy)
fed72008
RW
2510 ("python-numpy" ,python-numpy)
2511 ("python-numpydoc" ,python-numpydoc)
2512 ("python-matplotlib" ,python-matplotlib)
2513 ("python-pysam" ,python-pysam)
2514 ("python-py2bit" ,python-py2bit)
2515 ("python-pybigwig" ,python-pybigwig)))
1921b1de 2516 (native-inputs
fed72008
RW
2517 `(("python-mock" ,python-mock) ;for tests
2518 ("python-nose" ,python-nose) ;for tests
2519 ("python-pytz" ,python-pytz))) ;for tests
cd70f9bd 2520 (home-page "https://github.com/deeptools/deepTools")
1921b1de
RW
2521 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
2522 (description
2523 "DeepTools addresses the challenge of handling the large amounts of data
2524that are now routinely generated from DNA sequencing centers. To do so,
2525deepTools contains useful modules to process the mapped reads data to create
2526coverage files in standard bedGraph and bigWig file formats. By doing so,
2527deepTools allows the creation of normalized coverage files or the comparison
2528between two files (for example, treatment and control). Finally, using such
2529normalized and standardized files, multiple visualizations can be created to
2530identify enrichments with functional annotations of the genome.")
2531 (license license:gpl3+)))
2532
fdc30687
RJ
2533(define-public delly
2534 (package
2535 (name "delly")
7a1e62ca 2536 (version "0.7.9")
fdc30687 2537 (source (origin
7a1e62ca
RW
2538 (method git-fetch)
2539 (uri (git-reference
2540 (url "https://github.com/dellytools/delly.git")
2541 (commit (string-append "v" version))))
2542 (file-name (git-file-name name version))
fdc30687 2543 (sha256
7a1e62ca
RW
2544 (base32 "034jqsxswy9gqdh2zkgc1js99qkv75ks4xvzgmh0284sraagv61z"))
2545 (modules '((guix build utils)))
2546 (snippet
2547 '(begin
2548 (delete-file-recursively "src/htslib")
2549 #t))))
fdc30687
RJ
2550 (build-system gnu-build-system)
2551 (arguments
2552 `(#:tests? #f ; There are no tests to run.
7a1e62ca
RW
2553 #:make-flags
2554 (list "PARALLEL=1" ; Allow parallel execution at run-time.
2555 (string-append "prefix=" (assoc-ref %outputs "out")))
fdc30687
RJ
2556 #:phases
2557 (modify-phases %standard-phases
2558 (delete 'configure) ; There is no configure phase.
7a1e62ca
RW
2559 (add-after 'install 'install-templates
2560 (lambda* (#:key outputs #:allow-other-keys)
2561 (let ((templates (string-append (assoc-ref outputs "out")
fdc30687 2562 "/share/delly/templates")))
fdc30687
RJ
2563 (mkdir-p templates)
2564 (copy-recursively "excludeTemplates" templates)
7a1e62ca 2565 #t))))))
fdc30687
RJ
2566 (inputs
2567 `(("boost" ,boost)
2568 ("htslib" ,htslib)
2569 ("zlib" ,zlib)
2570 ("bzip2" ,bzip2)))
7a1e62ca 2571 (home-page "https://github.com/dellytools/delly")
fdc30687
RJ
2572 (synopsis "Integrated structural variant prediction method")
2573 (description "Delly is an integrated structural variant prediction method
2574that can discover and genotype deletions, tandem duplications, inversions and
2575translocations at single-nucleotide resolution in short-read massively parallel
2576sequencing data. It uses paired-ends and split-reads to sensitively and
2577accurately delineate genomic rearrangements throughout the genome.")
2578 (license license:gpl3+)))
2579
684bf7c7
BW
2580(define-public diamond
2581 (package
2582 (name "diamond")
2c5289b2 2583 (version "0.9.22")
684bf7c7 2584 (source (origin
1c063993
RW
2585 (method git-fetch)
2586 (uri (git-reference
2587 (url "https://github.com/bbuchfink/diamond.git")
2588 (commit (string-append "v" version))))
2589 (file-name (git-file-name name version))
684bf7c7
BW
2590 (sha256
2591 (base32
1c063993 2592 "0bky78v79g3wmdpsd706cscckgw1v09fg8vdd0z8z0d5b97aj9zl"))))
122395f9 2593 (build-system cmake-build-system)
684bf7c7 2594 (arguments
7c544991
BW
2595 '(#:tests? #f ; no "check" target
2596 #:phases
2597 (modify-phases %standard-phases
2598 (add-after 'unpack 'remove-native-compilation
2599 (lambda _
2600 (substitute* "CMakeLists.txt" (("-march=native") ""))
2601 #t)))))
684bf7c7 2602 (inputs
122395f9 2603 `(("zlib" ,zlib)))
684bf7c7
BW
2604 (home-page "https://github.com/bbuchfink/diamond")
2605 (synopsis "Accelerated BLAST compatible local sequence aligner")
2606 (description
2607 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
2608translated DNA query sequences against a protein reference database (BLASTP
2609and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
2610reads at a typical sensitivity of 90-99% relative to BLAST depending on the
2611data and settings.")
ef81341f 2612 (license license:agpl3+)))
684bf7c7 2613
97b9da68
RW
2614(define-public discrover
2615 (package
2616 (name "discrover")
2617 (version "1.6.0")
2618 (source
2619 (origin
5748fe5f
RW
2620 (method git-fetch)
2621 (uri (git-reference
2622 (url "https://github.com/maaskola/discrover.git")
2623 (commit version)))
2624 (file-name (git-file-name name version))
97b9da68
RW
2625 (sha256
2626 (base32
5748fe5f 2627 "173fwi2vb6a5kp406hm3jj6j7v4whww796f2qcygp4rpvamh307y"))))
97b9da68 2628 (build-system cmake-build-system)
fa702e1a
RW
2629 (arguments
2630 `(#:tests? #f ; there are no tests
2631 #:phases
2632 (modify-phases %standard-phases
3ca1d917
RW
2633 (add-after 'unpack 'fix-latex-errors
2634 (lambda _
2635 (with-fluids ((%default-port-encoding #f))
2636 (substitute* "doc/references.bib"
2637 (("\\{S\\}illanp[^,]+,")
2638 "{S}illanp{\\\"a}{\\\"a},")))
2639 ;; XXX: I just can't get pdflatex to not complain about these
2640 ;; characters. They end up in the manual via the generated
2641 ;; discrover-cli-help.txt.
2642 (substitute* "src/hmm/cli.cpp"
2643 (("µ") "mu")
2644 (("η") "eta")
2645 (("≤") "<="))
2646 ;; This seems to be a syntax error.
2647 (substitute* "doc/discrover-manual.tex"
2648 (("theverbbox\\[t\\]") "theverbbox"))
2649 #t))
fa702e1a
RW
2650 (add-after 'unpack 'add-missing-includes
2651 (lambda _
2652 (substitute* "src/executioninformation.hpp"
2653 (("#define EXECUTIONINFORMATION_HPP" line)
2654 (string-append line "\n#include <random>")))
2655 (substitute* "src/plasma/fasta.hpp"
2656 (("#define FASTA_HPP" line)
2657 (string-append line "\n#include <random>")))
3ca1d917
RW
2658 #t))
2659 ;; FIXME: this is needed because we're using texlive-union, which
2660 ;; doesn't handle fonts correctly. It expects to be able to generate
2661 ;; fonts in the home directory.
2662 (add-before 'build 'setenv-HOME
2663 (lambda _ (setenv "HOME" "/tmp") #t)))))
97b9da68
RW
2664 (inputs
2665 `(("boost" ,boost)
3ca1d917
RW
2666 ("cairo" ,cairo)
2667 ("rmath-standalone" ,rmath-standalone)))
97b9da68 2668 (native-inputs
3ca1d917
RW
2669 `(("texlive" ,(texlive-union (list texlive-fonts-cm
2670 texlive-fonts-amsfonts
3ca1d917
RW
2671
2672 texlive-latex-doi
2673 texlive-latex-examplep
2674 texlive-latex-hyperref
2675 texlive-latex-ms
2676 texlive-latex-natbib
2677 texlive-bibtex ; style files used by natbib
3ca1d917 2678 texlive-latex-pgf ; tikz
0ce256dc 2679 texlive-latex-verbatimbox)))
97b9da68
RW
2680 ("imagemagick" ,imagemagick)))
2681 (home-page "http://dorina.mdc-berlin.de/public/rajewsky/discrover/")
2682 (synopsis "Discover discriminative nucleotide sequence motifs")
2683 (description "Discrover is a motif discovery method to find binding sites
2684of nucleic acid binding proteins.")
2685 (license license:gpl3+)))
2686
6619f9c7 2687(define-public eigensoft
949fa34b
RW
2688 (package
2689 (name "eigensoft")
2690 (version "7.2.1")
2691 (source
2692 (origin
2693 (method git-fetch)
2694 (uri (git-reference
2695 (url "https://github.com/DReichLab/EIG.git")
2696 (commit (string-append "v" version))))
2697 (file-name (git-file-name name version))
2698 (sha256
2699 (base32
2700 "1c141fqvhnzibmnf22sv23vbmzm20kjjyrib44cfh75wyndp2d9k"))
2701 (modules '((guix build utils)))
2702 ;; Remove pre-built binaries.
2703 (snippet '(begin
2704 (delete-file-recursively "bin")
2705 (mkdir "bin")
2706 #t))))
2707 (build-system gnu-build-system)
2708 (arguments
2709 `(#:tests? #f ; There are no tests.
2710 #:make-flags '("CC=gcc")
2711 #:phases
2712 (modify-phases %standard-phases
2713 ;; There is no configure phase, but the Makefile is in a
2714 ;; sub-directory.
2715 (replace 'configure
2716 (lambda _ (chdir "src") #t))
2717 ;; The provided install target only copies executables to
2718 ;; the "bin" directory in the build root.
2719 (add-after 'install 'actually-install
2720 (lambda* (#:key outputs #:allow-other-keys)
2721 (let* ((out (assoc-ref outputs "out"))
2722 (bin (string-append out "/bin")))
2723 (for-each (lambda (file)
2724 (install-file file bin))
2725 (find-files "../bin" ".*"))
2726 #t))))))
2727 (inputs
2728 `(("gsl" ,gsl)
2729 ("lapack" ,lapack)
2730 ("openblas" ,openblas)
2731 ("perl" ,perl)
2732 ("gfortran" ,gfortran "lib")))
2733 (home-page "https://github.com/DReichLab/EIG")
2734 (synopsis "Tools for population genetics")
2735 (description "The EIGENSOFT package provides tools for population
6619f9c7
RW
2736genetics and stratification correction. EIGENSOFT implements methods commonly
2737used in population genetics analyses such as PCA, computation of Tracy-Widom
2738statistics, and finding related individuals in structured populations. It
2739comes with a built-in plotting script and supports multiple file formats and
2740quantitative phenotypes.")
949fa34b
RW
2741 ;; The license of the eigensoft tools is Expat, but since it's
2742 ;; linking with the GNU Scientific Library (GSL) the effective
2743 ;; license is the GPL.
2744 (license license:gpl3+)))
6619f9c7 2745
365c8153
RW
2746(define-public edirect
2747 (package
2748 (name "edirect")
c96ca68f 2749 (version "10.2.20181018")
365c8153
RW
2750 (source (origin
2751 (method url-fetch)
c96ca68f
RW
2752 (uri (string-append "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect"
2753 "/versions/" version
2754 "/edirect-" version ".tar.gz"))
365c8153
RW
2755 (sha256
2756 (base32
c96ca68f 2757 "091f4aigzpbqih6h82nq566gkp3y07i72yqndmqskfgar1vwgci7"))))
365c8153
RW
2758 (build-system perl-build-system)
2759 (arguments
c96ca68f 2760 `(#:phases
365c8153
RW
2761 (modify-phases %standard-phases
2762 (delete 'configure)
2763 (delete 'build)
c96ca68f 2764 (delete 'check) ; simple check after install
365c8153 2765 (replace 'install
c96ca68f
RW
2766 (lambda* (#:key outputs #:allow-other-keys)
2767 (install-file "edirect.pl"
2768 (string-append (assoc-ref outputs "out") "/bin"))
2769 #t))
2770 (add-after 'install 'wrap-program
2771 (lambda* (#:key outputs #:allow-other-keys)
2772 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
2773 (let* ((out (assoc-ref outputs "out"))
2774 (path (getenv "PERL5LIB")))
2775 (wrap-program (string-append out "/bin/edirect.pl")
2776 `("PERL5LIB" ":" prefix (,path))))
2777 #t))
2778 (add-after 'wrap-program 'check
2779 (lambda* (#:key outputs #:allow-other-keys)
2780 (invoke (string-append (assoc-ref outputs "out")
2781 "/bin/edirect.pl")
2782 "-filter" "-help")
2783 #t)))))
365c8153
RW
2784 (inputs
2785 `(("perl-html-parser" ,perl-html-parser)
2786 ("perl-encode-locale" ,perl-encode-locale)
2787 ("perl-file-listing" ,perl-file-listing)
2788 ("perl-html-tagset" ,perl-html-tagset)
2789 ("perl-html-tree" ,perl-html-tree)
2790 ("perl-http-cookies" ,perl-http-cookies)
2791 ("perl-http-date" ,perl-http-date)
2792 ("perl-http-message" ,perl-http-message)
2793 ("perl-http-negotiate" ,perl-http-negotiate)
2794 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
2795 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
2796 ("perl-net-http" ,perl-net-http)
2797 ("perl-uri" ,perl-uri)
2798 ("perl-www-robotrules" ,perl-www-robotrules)
c96ca68f 2799 ("perl-xml-simple" ,perl-xml-simple)
365c8153 2800 ("perl" ,perl)))
3d51ec91 2801 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
365c8153
RW
2802 (synopsis "Tools for accessing the NCBI's set of databases")
2803 (description
2804 "Entrez Direct (EDirect) is a method for accessing the National Center
2805for Biotechnology Information's (NCBI) set of interconnected
2806databases (publication, sequence, structure, gene, variation, expression,
2807etc.) from a terminal. Functions take search terms from command-line
2808arguments. Individual operations are combined to build multi-step queries.
2809Record retrieval and formatting normally complete the process.
2810
2811EDirect also provides an argument-driven function that simplifies the
2812extraction of data from document summaries or other results that are returned
2813in structured XML format. This can eliminate the need for writing custom
2814software to answer ad hoc questions.")
2815 (license license:public-domain)))
2816
b16728b0
BW
2817(define-public exonerate
2818 (package
2819 (name "exonerate")
2820 (version "2.4.0")
2821 (source
2822 (origin
2823 (method url-fetch)
2824 (uri
2825 (string-append
2826 "http://ftp.ebi.ac.uk/pub/software/vertebrategenomics/exonerate/"
2827 "exonerate-" version ".tar.gz"))
2828 (sha256
2829 (base32
2830 "0hj0m9xygiqsdxvbg79wq579kbrx1mdrabi2bzqz2zn9qwfjcjgq"))))
2831 (build-system gnu-build-system)
2832 (arguments
2833 `(#:parallel-build? #f)) ; Building in parallel fails on some machines.
2834 (native-inputs
2835 `(("pkg-config" ,pkg-config)))
2836 (inputs
2837 `(("glib" ,glib)))
2838 (home-page
2839 "https://www.ebi.ac.uk/about/vertebrate-genomics/software/exonerate")
2840 (synopsis "Generic tool for biological sequence alignment")
2841 (description
2842 "Exonerate is a generic tool for pairwise sequence comparison. It allows
2843the alignment of sequences using a many alignment models, either exhaustive
2844dynamic programming or a variety of heuristics.")
2845 (license license:gpl3)))
2846
e4e5a4d8
RW
2847(define-public express
2848 (package
2849 (name "express")
2850 (version "1.5.1")
2851 (source (origin
2852 (method url-fetch)
2853 (uri
2854 (string-append
2855 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
2856 version "/express-" version "-src.tgz"))
2857 (sha256
2858 (base32
2859 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
2860 (build-system cmake-build-system)
2861 (arguments
2862 `(#:tests? #f ;no "check" target
2863 #:phases
dc1d3cde
KK
2864 (modify-phases %standard-phases
2865 (add-after 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
2866 (lambda* (#:key inputs #:allow-other-keys)
2867 (substitute* "CMakeLists.txt"
2868 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
2869 "set(Boost_USE_STATIC_LIBS OFF)")
2870 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
2871 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
2872 (substitute* "src/CMakeLists.txt"
2873 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
4b93efec
RJ
2874 (string-append (assoc-ref inputs "bamtools") "/lib"))
2875 (("libprotobuf.a") "libprotobuf.so"))
dc1d3cde 2876 #t)))))
e4e5a4d8
RW
2877 (inputs
2878 `(("boost" ,boost)
2879 ("bamtools" ,bamtools)
2880 ("protobuf" ,protobuf)
2881 ("zlib" ,zlib)))
2882 (home-page "http://bio.math.berkeley.edu/eXpress")
2883 (synopsis "Streaming quantification for high-throughput genomic sequencing")
2884 (description
2885 "eXpress is a streaming tool for quantifying the abundances of a set of
2886target sequences from sampled subsequences. Example applications include
2887transcript-level RNA-Seq quantification, allele-specific/haplotype expression
2888analysis (from RNA-Seq), transcription factor binding quantification in
2889ChIP-Seq, and analysis of metagenomic data.")
2890 (license license:artistic2.0)))
2891
f3674b1c
BW
2892(define-public express-beta-diversity
2893 (package
2894 (name "express-beta-diversity")
38622ccd 2895 (version "1.0.8")
f3674b1c 2896 (source (origin
38622ccd
RW
2897 (method git-fetch)
2898 (uri (git-reference
2899 (url "https://github.com/dparks1134/ExpressBetaDiversity.git")
2900 (commit (string-append "v" version))))
2901 (file-name (git-file-name name version))
f3674b1c
BW
2902 (sha256
2903 (base32
38622ccd 2904 "0s0yzg5c21349rh7x4w9266jsvnp7j1hp9cf8sk32hz8nvrj745x"))))
f3674b1c
BW
2905 (build-system gnu-build-system)
2906 (arguments
2907 `(#:phases
2908 (modify-phases %standard-phases
2909 (delete 'configure)
2910 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
2911 (replace 'check
38622ccd 2912 (lambda _ (invoke "../bin/ExpressBetaDiversity" "-u") #t))
f3674b1c 2913 (replace 'install
38622ccd
RW
2914 (lambda* (#:key outputs #:allow-other-keys)
2915 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2916 (install-file "../scripts/convertToEBD.py" bin)
2917 (install-file "../bin/ExpressBetaDiversity" bin)
2918 #t))))))
f3674b1c
BW
2919 (inputs
2920 `(("python" ,python-2)))
2921 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
2922 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
2923 (description
2924 "Express Beta Diversity (EBD) calculates ecological beta diversity
2925(dissimilarity) measures between biological communities. EBD implements a
2926variety of diversity measures including those that make use of phylogenetic
2927similarity of community members.")
2928 (license license:gpl3+)))
2929
12b04cbe
BW
2930(define-public fasttree
2931 (package
2932 (name "fasttree")
88682c9a 2933 (version "2.1.10")
12b04cbe
BW
2934 (source (origin
2935 (method url-fetch)
2936 (uri (string-append
2937 "http://www.microbesonline.org/fasttree/FastTree-"
2938 version ".c"))
2939 (sha256
2940 (base32
88682c9a 2941 "0vcjdvy1j4m702vmak4svbfkrpcw63k7wymfksjp9a982zy8kjsl"))))
12b04cbe
BW
2942 (build-system gnu-build-system)
2943 (arguments
2944 `(#:tests? #f ; no "check" target
2945 #:phases
2946 (modify-phases %standard-phases
2947 (delete 'unpack)
2948 (delete 'configure)
2949 (replace 'build
e03a5153 2950 (lambda* (#:key source #:allow-other-keys)
0db75f7a
RW
2951 (invoke "gcc"
2952 "-O3"
2953 "-finline-functions"
2954 "-funroll-loops"
2955 "-Wall"
2956 "-o"
2957 "FastTree"
2958 source
2959 "-lm")
2960 (invoke "gcc"
2961 "-DOPENMP"
2962 "-fopenmp"
2963 "-O3"
2964 "-finline-functions"
2965 "-funroll-loops"
2966 "-Wall"
2967 "-o"
2968 "FastTreeMP"
2969 source
2970 "-lm")
2971 #t))
12b04cbe 2972 (replace 'install
e03a5153 2973 (lambda* (#:key outputs #:allow-other-keys)
0db75f7a 2974 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
f3860753
TGR
2975 (install-file "FastTree" bin)
2976 (install-file "FastTreeMP" bin)
e03a5153 2977 #t))))))
12b04cbe
BW
2978 (home-page "http://www.microbesonline.org/fasttree")
2979 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
2980 (description
2981 "FastTree can handle alignments with up to a million of sequences in a
2982reasonable amount of time and memory. For large alignments, FastTree is
2983100-1,000 times faster than PhyML 3.0 or RAxML 7.")
2984 (license license:gpl2+)))
2985
2127cedb
RW
2986(define-public fastx-toolkit
2987 (package
2988 (name "fastx-toolkit")
2989 (version "0.0.14")
2990 (source (origin
2991 (method url-fetch)
2992 (uri
2993 (string-append
2994 "https://github.com/agordon/fastx_toolkit/releases/download/"
2995 version "/fastx_toolkit-" version ".tar.bz2"))
2996 (sha256
2997 (base32
2998 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
2999 (build-system gnu-build-system)
3000 (inputs
3001 `(("libgtextutils" ,libgtextutils)))
3002 (native-inputs
3003 `(("pkg-config" ,pkg-config)))
3004 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
3005 (synopsis "Tools for FASTA/FASTQ file preprocessing")
3006 (description
3007 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
3008FASTA/FASTQ files preprocessing.
3009
3010Next-Generation sequencing machines usually produce FASTA or FASTQ files,
3011containing multiple short-reads sequences. The main processing of such
3012FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
3013is sometimes more productive to preprocess the files before mapping the
3014sequences to the genome---manipulating the sequences to produce better mapping
3015results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
3016 (license license:agpl3+)))
3017
d7678942
RW
3018(define-public flexbar
3019 (package
3020 (name "flexbar")
f8ee22fc 3021 (version "3.4.0")
d7678942 3022 (source (origin
f8ee22fc
RW
3023 (method git-fetch)
3024 (uri (git-reference
3025 (url "https://github.com/seqan/flexbar.git")
3026 (commit (string-append "v" version))))
3027 (file-name (git-file-name name version))
d7678942
RW
3028 (sha256
3029 (base32
f8ee22fc 3030 "1pq9sxvdnldl14libk234m72dqhwgzs3acgl943wchwdqlcsi5r2"))))
d7678942
RW
3031 (build-system cmake-build-system)
3032 (arguments
f8ee22fc 3033 `(#:phases
dc1d3cde 3034 (modify-phases %standard-phases
8aa1ca85
RW
3035 (add-after 'unpack 'do-not-tune-to-CPU
3036 (lambda _
3037 (substitute* "src/CMakeLists.txt"
3038 ((" -march=native") ""))
3039 #t))
dc1d3cde
KK
3040 (replace 'check
3041 (lambda* (#:key outputs #:allow-other-keys)
f8ee22fc
RW
3042 (setenv "PATH" (string-append (getcwd) ":" (getenv "PATH")))
3043 (with-directory-excursion "../source/test"
3044 (invoke "bash" "flexbar_test.sh"))
3045 #t))
3046 (replace 'install
3047 (lambda* (#:key outputs #:allow-other-keys)
3048 (let* ((out (string-append (assoc-ref outputs "out")))
3049 (bin (string-append out "/bin/")))
3050 (install-file "flexbar" bin))
3051 #t)))))
d7678942
RW
3052 (inputs
3053 `(("tbb" ,tbb)
3054 ("zlib" ,zlib)))
3055 (native-inputs
3056 `(("pkg-config" ,pkg-config)
3057 ("seqan" ,seqan)))
f8ee22fc 3058 (home-page "https://github.com/seqan/flexbar")
d7678942
RW
3059 (synopsis "Barcode and adapter removal tool for sequencing platforms")
3060 (description
3061 "Flexbar preprocesses high-throughput nucleotide sequencing data
3062efficiently. It demultiplexes barcoded runs and removes adapter sequences.
3063Moreover, trimming and filtering features are provided. Flexbar increases
3064read mapping rates and improves genome and transcriptome assemblies. It
3065supports next-generation sequencing data in fasta/q and csfasta/q format from
3066Illumina, Roche 454, and the SOLiD platform.")
f8ee22fc 3067 (license license:bsd-3)))
d7678942 3068
19f4554c
BW
3069(define-public fraggenescan
3070 (package
3071 (name "fraggenescan")
74297231 3072 (version "1.30")
19f4554c
BW
3073 (source
3074 (origin
3075 (method url-fetch)
3076 (uri
3077 (string-append "mirror://sourceforge/fraggenescan/"
3078 "FragGeneScan" version ".tar.gz"))
3079 (sha256
74297231 3080 (base32 "158dcnwczgcyhwm4qlx19sanrwgdpzf6bn2y57mbpx55lkgz1mzj"))))
19f4554c
BW
3081 (build-system gnu-build-system)
3082 (arguments
3083 `(#:phases
3084 (modify-phases %standard-phases
3085 (delete 'configure)
3086 (add-before 'build 'patch-paths
3087 (lambda* (#:key outputs #:allow-other-keys)
3088 (let* ((out (string-append (assoc-ref outputs "out")))
3089 (share (string-append out "/share/fraggenescan/")))
3090 (substitute* "run_FragGeneScan.pl"
3091 (("system\\(\"rm")
3092 (string-append "system(\"" (which "rm")))
3093 (("system\\(\"mv")
3094 (string-append "system(\"" (which "mv")))
74297231 3095 (("\\\"awk") (string-append "\"" (which "awk")))
19f4554c
BW
3096 ;; This script and other programs expect the training files
3097 ;; to be in the non-standard location bin/train/XXX. Change
3098 ;; this to be share/fraggenescan/train/XXX instead.
3099 (("^\\$train.file = \\$dir.*")
3100 (string-append "$train_file = \""
3101 share
3102 "train/\".$FGS_train_file;")))
3103 (substitute* "run_hmm.c"
3104 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
74297231 3105 (string-append " strcpy(train_dir, \"" share "/train/\");"))))
19f4554c
BW
3106 #t))
3107 (replace 'build
e438c965
RW
3108 (lambda _
3109 (invoke "make" "clean")
3110 (invoke "make" "fgs")
3111 #t))
19f4554c
BW
3112 (replace 'install
3113 (lambda* (#:key outputs #:allow-other-keys)
3114 (let* ((out (string-append (assoc-ref outputs "out")))
3115 (bin (string-append out "/bin/"))
3116 (share (string-append out "/share/fraggenescan/train")))
3117 (install-file "run_FragGeneScan.pl" bin)
3118 (install-file "FragGeneScan" bin)
2e0f6905
MW
3119 (copy-recursively "train" share))
3120 #t))
19f4554c
BW
3121 (delete 'check)
3122 (add-after 'install 'post-install-check
3123 ;; In lieu of 'make check', run one of the examples and check the
3124 ;; output files gets created.
3125 (lambda* (#:key outputs #:allow-other-keys)
3126 (let* ((out (string-append (assoc-ref outputs "out")))
74297231
BW
3127 (bin (string-append out "/bin/"))
3128 (frag (string-append bin "run_FragGeneScan.pl")))
e438c965
RW
3129 ;; Test complete genome.
3130 (invoke frag
3131 "-genome=./example/NC_000913.fna"
3132 "-out=./test2"
3133 "-complete=1"
3134 "-train=complete")
3135 (unless (and (file-exists? "test2.faa")
3136 (file-exists? "test2.ffn")
3137 (file-exists? "test2.gff")
3138 (file-exists? "test2.out"))
3139 (error "Expected files do not exist."))
3140 ;; Test incomplete sequences.
3141 (invoke frag
3142 "-genome=./example/NC_000913-fgs.ffn"
3143 "-out=out"
3144 "-complete=0"
3145 "-train=454_30")
3146 #t))))))
19f4554c
BW
3147 (inputs
3148 `(("perl" ,perl)
3149 ("python" ,python-2))) ;not compatible with python 3.
3150 (home-page "https://sourceforge.net/projects/fraggenescan/")
3151 (synopsis "Finds potentially fragmented genes in short reads")
3152 (description
3153 "FragGeneScan is a program for predicting bacterial and archaeal genes in
3154short and error-prone DNA sequencing reads. It can also be applied to predict
3155genes in incomplete assemblies or complete genomes.")
3156 ;; GPL3+ according to private correspondense with the authors.
3157 (license license:gpl3+)))
3158
81f3e0c1
BW
3159(define-public fxtract
3160 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
3161 (package
3162 (name "fxtract")
3163 (version "2.3")
3164 (source
3165 (origin
91b71cfb
RW
3166 (method git-fetch)
3167 (uri (git-reference
3168 (url "https://github.com/ctSkennerton/fxtract.git")
3169 (commit version)))
3170 (file-name (git-file-name name version))
81f3e0c1
BW
3171 (sha256
3172 (base32
91b71cfb 3173 "0hab3gpwf4w9s87qlbswq6ws1qqybh4dcqk79q1ahyldzai5fgp5"))))
81f3e0c1
BW
3174 (build-system gnu-build-system)
3175 (arguments
3176 `(#:make-flags (list
3177 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3178 "CC=gcc")
3179 #:test-target "fxtract_test"
3180 #:phases
3181 (modify-phases %standard-phases
3182 (delete 'configure)
3183 (add-before 'build 'copy-util
3184 (lambda* (#:key inputs #:allow-other-keys)
3185 (rmdir "util")
3186 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
3187 #t))
3188 ;; Do not use make install as this requires additional dependencies.
3189 (replace 'install
3190 (lambda* (#:key outputs #:allow-other-keys)
3191 (let* ((out (assoc-ref outputs "out"))
3192 (bin (string-append out"/bin")))
3193 (install-file "fxtract" bin)
3194 #t))))))
3195 (inputs
3196 `(("pcre" ,pcre)
3197 ("zlib" ,zlib)))
3198 (native-inputs
3199 ;; ctskennerton-util is licensed under GPL2.
3200 `(("ctskennerton-util"
3201 ,(origin
3202 (method git-fetch)
3203 (uri (git-reference
3204 (url "https://github.com/ctSkennerton/util.git")
3205 (commit util-commit)))
3206 (file-name (string-append
3207 "ctstennerton-util-" util-commit "-checkout"))
3208 (sha256
3209 (base32
3210 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
3211 (home-page "https://github.com/ctSkennerton/fxtract")
3212 (synopsis "Extract sequences from FASTA and FASTQ files")
3213 (description
3214 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
3215or FASTQ) file given a subsequence. It uses a simple substring search for
3216basic tasks but can change to using POSIX regular expressions, PCRE, hash
3217lookups or multi-pattern searching as required. By default fxtract looks in
3218the sequence of each record but can also be told to look in the header,
3219comment or quality sections.")
afde1a26
BW
3220 ;; 'util' requires SSE instructions.
3221 (supported-systems '("x86_64-linux"))
81f3e0c1
BW
3222 (license license:expat))))
3223
2b18ad05
PP
3224(define-public gemma
3225 (package
3226 (name "gemma")
152bebd9 3227 (version "0.98")
2b18ad05 3228 (source (origin
b113f390
RW
3229 (method git-fetch)
3230 (uri (git-reference
3231 (url "https://github.com/xiangzhou/GEMMA.git")
3232 (commit (string-append "v" version))))
3233 (file-name (git-file-name name version))
2b18ad05
PP
3234 (sha256
3235 (base32
152bebd9 3236 "1s3ncnbn45r2hh1cvrqky1kbqq6546biypr4f5mkw1kqlrgyh0yg"))))
2b18ad05 3237 (inputs
152bebd9
RW
3238 `(("eigen" ,eigen)
3239 ("gfortran" ,gfortran "lib")
3240 ("gsl" ,gsl)
2b18ad05 3241 ("lapack" ,lapack)
152bebd9 3242 ("openblas" ,openblas)
2b18ad05
PP
3243 ("zlib" ,zlib)))
3244 (build-system gnu-build-system)
3245 (arguments
2c9232ae 3246 `(#:make-flags
ce7e361f
EF
3247 '(,@(match (%current-system)
3248 ("x86_64-linux"
3249 '("FORCE_DYNAMIC=1"))
3250 ("i686-linux"
3251 '("FORCE_DYNAMIC=1" "FORCE_32BIT=1"))
3252 (_
3253 '("FORCE_DYNAMIC=1" "NO_INTEL_COMPAT=1"))))
2b18ad05
PP
3254 #:phases
3255 (modify-phases %standard-phases
3256 (delete 'configure)
152bebd9
RW
3257 (add-after 'unpack 'find-eigen
3258 (lambda* (#:key inputs #:allow-other-keys)
3259 ;; Ensure that Eigen headers can be found
3260 (setenv "CPLUS_INCLUDE_PATH"
3261 (string-append (getenv "CPLUS_INCLUDE_PATH")
3262 ":"
3263 (assoc-ref inputs "eigen")
3264 "/include/eigen3"))
3265 #t))
2b18ad05 3266 (add-before 'build 'bin-mkdir
07bf6929
EF
3267 (lambda _
3268 (mkdir-p "bin")
3269 #t))
2b18ad05 3270 (replace 'install
07bf6929
EF
3271 (lambda* (#:key outputs #:allow-other-keys)
3272 (let ((out (assoc-ref outputs "out")))
3273 (install-file "bin/gemma"
3274 (string-append
3275 out "/bin")))
3276 #t)))
2b18ad05
PP
3277 #:tests? #f)) ; no tests included yet
3278 (home-page "https://github.com/xiangzhou/GEMMA")
3279 (synopsis "Tool for genome-wide efficient mixed model association")
3280 (description
3281 "Genome-wide Efficient Mixed Model Association (GEMMA) provides a
3282standard linear mixed model resolver with application in genome-wide
3283association studies (GWAS).")
3284 (license license:gpl3)))
3285
5854f685
RW
3286(define-public grit
3287 (package
3288 (name "grit")
c8f02c1d 3289 (version "2.0.5")
5854f685 3290 (source (origin
8d75adbf
RW
3291 (method git-fetch)
3292 (uri (git-reference
3293 (url "https://github.com/nboley/grit.git")
3294 (commit version)))
3295 (file-name (git-file-name name version))
5854f685
RW
3296 (sha256
3297 (base32
c8f02c1d 3298 "1l5v8vfvfbrpmgnrvbrbv40d0arhxcnmxgv2f1mlcqfa3q6bkqm9"))))
5854f685
RW
3299 (build-system python-build-system)
3300 (arguments
3301 `(#:python ,python-2
3302 #:phases
dc1d3cde
KK
3303 (modify-phases %standard-phases
3304 (add-after 'unpack 'generate-from-cython-sources
3305 (lambda* (#:key inputs outputs #:allow-other-keys)
3306 ;; Delete these C files to force fresh generation from pyx sources.
3307 (delete-file "grit/sparsify_support_fns.c")
3308 (delete-file "grit/call_peaks_support_fns.c")
3309 (substitute* "setup.py"
c8f02c1d 3310 (("Cython.Setup") "Cython.Build"))
dc1d3cde 3311 #t)))))
5854f685
RW
3312 (inputs
3313 `(("python-scipy" ,python2-scipy)
3314 ("python-numpy" ,python2-numpy)
3315 ("python-pysam" ,python2-pysam)
3316 ("python-networkx" ,python2-networkx)))
3317 (native-inputs
f3b98f4f 3318 `(("python-cython" ,python2-cython)))
5854f685
RW
3319 (home-page "http://grit-bio.org")
3320 (synopsis "Tool for integrative analysis of RNA-seq type assays")
3321 (description
3322 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
3323full length transcript models. When none of these data sources are available,
3324GRIT can be run by providing a candidate set of TES or TSS sites. In
3325addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
3326also be run in quantification mode, where it uses a provided GTF file and just
3327estimates transcript expression.")
3328 (license license:gpl3+)))
3329
346a829a
RW
3330(define-public hisat
3331 (package
3332 (name "hisat")
3333 (version "0.1.4")
3334 (source (origin
3335 (method url-fetch)
3336 (uri (string-append
3337 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
3338 version "-beta-source.zip"))
3339 (sha256
3340 (base32
3341 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
3342 (build-system gnu-build-system)
3343 (arguments
e58d01fa
RW
3344 `(#:tests? #f ;no check target
3345 #:make-flags '("allall"
3346 ;; Disable unsupported `popcnt' instructions on
3347 ;; architectures other than x86_64
3348 ,@(if (string-prefix? "x86_64"
3349 (or (%current-target-system)
3350 (%current-system)))
3351 '()
3352 '("POPCNT_CAPABILITY=0")))
346a829a 3353 #:phases
dc1d3cde
KK
3354 (modify-phases %standard-phases
3355 (add-after 'unpack 'patch-sources
3356 (lambda _
3357 ;; XXX Cannot use snippet because zip files are not supported
3358 (substitute* "Makefile"
3359 (("^CC = .*$") "CC = gcc")
3360 (("^CPP = .*$") "CPP = g++")
3361 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
3362 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
3363 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
3364 (substitute* '("hisat-build" "hisat-inspect")
3365 (("/usr/bin/env") (which "env")))
3366 #t))
3367 (replace 'install
3368 (lambda* (#:key outputs #:allow-other-keys)
3369 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
3370 (for-each (lambda (file)
3371 (install-file file bin))
3372 (find-files
3373 "."
3374 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$")))
3375 #t))
3376 (delete 'configure))))
346a829a
RW
3377 (native-inputs
3378 `(("unzip" ,unzip)))
3379 (inputs
3380 `(("perl" ,perl)
3381 ("python" ,python)
3382 ("zlib" ,zlib)))
60af3d82
RW
3383 ;; Non-portable SSE instructions are used so building fails on platforms
3384 ;; other than x86_64.
3385 (supported-systems '("x86_64-linux"))
346a829a
RW
3386 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
3387 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
3388 (description
3389 "HISAT is a fast and sensitive spliced alignment program for mapping
3390RNA-seq reads. In addition to one global FM index that represents a whole
3391genome, HISAT uses a large set of small FM indexes that collectively cover the
3392whole genome. These small indexes (called local indexes) combined with
3393several alignment strategies enable effective alignment of RNA-seq reads, in
3394particular, reads spanning multiple exons.")
3395 (license license:gpl3+)))
3396
e84efc50
RW
3397(define-public hisat2
3398 (package
3399 (name "hisat2")
3400 (version "2.0.5")
3401 (source
3402 (origin
3403 (method url-fetch)
57be690d
RW
3404 (uri (string-append "ftp://ftp.ccb.jhu.edu/pub/infphilo/hisat2"
3405 "/downloads/hisat2-" version "-source.zip"))
e84efc50
RW
3406 (sha256
3407 (base32
57be690d 3408 "0lywnr8kijwsc2aw10dwxic0n0yvip6fl3rjlvc8zzwahamy4x7g"))))
e84efc50
RW
3409 (build-system gnu-build-system)
3410 (arguments
3411 `(#:tests? #f ; no check target
3412 #:make-flags (list "CC=gcc" "CXX=g++" "allall")
3413 #:modules ((guix build gnu-build-system)
3414 (guix build utils)
3415 (srfi srfi-26))
3416 #:phases
3417 (modify-phases %standard-phases
3418 (add-after 'unpack 'make-deterministic
3419 (lambda _
3420 (substitute* "Makefile"
3421 (("`date`") "0"))
3422 #t))
3423 (delete 'configure)
3424 (replace 'install
3425 (lambda* (#:key outputs #:allow-other-keys)
3426 (let* ((out (assoc-ref outputs "out"))
3427 (bin (string-append out "/bin/"))
3428 (doc (string-append out "/share/doc/hisat2/")))
3429 (for-each
3430 (cut install-file <> bin)
3431 (find-files "."
3432 "hisat2(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))
3433 (mkdir-p doc)
3434 (install-file "doc/manual.inc.html" doc))
3435 #t)))))
3436 (native-inputs
3437 `(("unzip" ,unzip) ; needed for archive from ftp
3438 ("perl" ,perl)
3439 ("pandoc" ,ghc-pandoc))) ; for documentation
3440 (home-page "http://ccb.jhu.edu/software/hisat2/index.shtml")
3441 (synopsis "Graph-based alignment of genomic sequencing reads")
3442 (description "HISAT2 is a fast and sensitive alignment program for mapping
3443next-generation sequencing reads (both DNA and RNA) to a population of human
3444genomes (as well as to a single reference genome). In addition to using one
3445global @dfn{graph FM} (GFM) index that represents a population of human
3446genomes, HISAT2 uses a large set of small GFM indexes that collectively cover
3447the whole genome. These small indexes, combined with several alignment
3448strategies, enable rapid and accurate alignment of sequencing reads. This new
3449indexing scheme is called a @dfn{Hierarchical Graph FM index} (HGFM).")
3450 ;; HISAT2 contains files from Bowtie2, which is released under
3451 ;; GPLv2 or later. The HISAT2 source files are released under
3452 ;; GPLv3 or later.
3453 (license license:gpl3+)))
3454
c684629f
BW
3455(define-public hmmer
3456 (package
3457 (name "hmmer")
05fb1e00 3458 (version "3.2.1")
79f09fa2
BW
3459 (source
3460 (origin
3461 (method url-fetch)
3462 (uri (string-append
05fb1e00 3463 "http://eddylab.org/software/hmmer/hmmer-" version ".tar.gz"))
79f09fa2
BW
3464 (sha256
3465 (base32
05fb1e00 3466 "171bivy6xhgjsz5nv53n81pc3frnwz29ylblawk2bv46szwjjqd5"))))
c684629f 3467 (build-system gnu-build-system)
b3546174 3468 (native-inputs `(("perl" ,perl)))
a83e6046 3469 (home-page "http://hmmer.org/")
c684629f
BW
3470 (synopsis "Biosequence analysis using profile hidden Markov models")
3471 (description
3472 "HMMER is used for searching sequence databases for homologs of protein
3473sequences, and for making protein sequence alignments. It implements methods
3474using probabilistic models called profile hidden Markov models (profile
3475HMMs).")
05fb1e00
BW
3476 ;; hmmer uses non-portable SSE intrinsics so building fails on other
3477 ;; platforms.
3478 (supported-systems '("x86_64-linux" "i686-linux"))
3479 (license license:bsd-3)))
c684629f 3480
85652f59
RW
3481(define-public htseq
3482 (package
3483 (name "htseq")
92971d68 3484 (version "0.9.1")
85652f59
RW
3485 (source (origin
3486 (method url-fetch)
75e6639f 3487 (uri (pypi-uri "HTSeq" version))
85652f59
RW
3488 (sha256
3489 (base32
92971d68 3490 "11flgb1381xdhk43bzbfm3vhnszkpqg6jk76rpa5xd1zbrvvlnxg"))))
85652f59 3491 (build-system python-build-system)
92971d68
BW
3492 (native-inputs
3493 `(("python-cython" ,python-cython)))
0536727e
RW
3494 ;; Numpy needs to be propagated when htseq is used as a Python library.
3495 (propagated-inputs
92971d68 3496 `(("python-numpy" ,python-numpy)))
578b05d9 3497 (inputs
92971d68
BW
3498 `(("python-pysam" ,python-pysam)
3499 ("python-matplotlib" ,python-matplotlib)))
85652f59
RW
3500 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
3501 (synopsis "Analysing high-throughput sequencing data with Python")
3502 (description
3503 "HTSeq is a Python package that provides infrastructure to process data
3504from high-throughput sequencing assays.")
3505 (license license:gpl3+)))
3506
92971d68
BW
3507(define-public python2-htseq
3508 (package-with-python2 htseq))
3509
1ad15c16 3510(define-public java-htsjdk
15a3c3d4 3511 (package
1ad15c16 3512 (name "java-htsjdk")
bd94b6f8 3513 (version "2.3.0") ; last version without build dependency on gradle
15a3c3d4 3514 (source (origin
b8a6230d
RW
3515 (method git-fetch)
3516 (uri (git-reference
3517 (url "https://github.com/samtools/htsjdk.git")
3518 (commit version)))
3519 (file-name (git-file-name name version))
15a3c3d4
RW
3520 (sha256
3521 (base32
b8a6230d 3522 "1b178ixcabanm834ydjl3jiakpyxdmki32hqfv2abrzn3rcwa28i"))
15a3c3d4 3523 (modules '((guix build utils)))
bd94b6f8
RW
3524 (snippet
3525 ;; Delete pre-built binaries
3526 '(begin
3527 (delete-file-recursively "lib")
3528 (mkdir-p "lib")
3529 #t))))
10b4a969 3530 (build-system ant-build-system)
15a3c3d4 3531 (arguments
10b4a969 3532 `(#:tests? #f ; test require Internet access
bd94b6f8 3533 #:jdk ,icedtea-8
10b4a969
RW
3534 #:make-flags
3535 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
3536 "/share/java/htsjdk/"))
3537 #:build-target "all"
3538 #:phases
3539 (modify-phases %standard-phases
3540 ;; The build phase also installs the jars
3541 (delete 'install))))
bd94b6f8
RW
3542 (inputs
3543 `(("java-ngs" ,java-ngs)
3544 ("java-snappy-1" ,java-snappy-1)
3545 ("java-commons-compress" ,java-commons-compress)
3546 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3547 ("java-commons-jexl-2" ,java-commons-jexl-2)
3548 ("java-xz" ,java-xz)))
3549 (native-inputs
3550 `(("java-testng" ,java-testng)))
15a3c3d4
RW
3551 (home-page "http://samtools.github.io/htsjdk/")
3552 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3553 (description
3554 "HTSJDK is an implementation of a unified Java library for accessing
3555common file formats, such as SAM and VCF, used for high-throughput
3556sequencing (HTS) data. There are also an number of useful utilities for
3557manipulating HTS data.")
3558 (license license:expat)))
3559
9a599c17
RW
3560(define-public java-htsjdk-latest
3561 (package
3562 (name "java-htsjdk")
3563 (version "2.14.3")
3564 (source (origin
3565 (method git-fetch)
3566 (uri (git-reference
3567 (url "https://github.com/samtools/htsjdk.git")
3568 (commit version)))
3569 (file-name (string-append name "-" version "-checkout"))
3570 (sha256
3571 (base32
3572 "1lmya1fdjy03mz6zmdmd86j9v9vfhqb3952mqq075navx1i6g4bc"))))
3573 (build-system ant-build-system)
3574 (arguments
3575 `(#:tests? #f ; test require Scala
3576 #:jdk ,icedtea-8
3577 #:jar-name "htsjdk.jar"
3578 #:phases
3579 (modify-phases %standard-phases
3580 (add-after 'unpack 'remove-useless-build.xml
3581 (lambda _ (delete-file "build.xml") #t))
3582 ;; The tests require the scalatest package.
3583 (add-after 'unpack 'remove-tests
3584 (lambda _ (delete-file-recursively "src/test") #t)))))
3585 (inputs
3586 `(("java-ngs" ,java-ngs)
3587 ("java-snappy-1" ,java-snappy-1)
3588 ("java-commons-compress" ,java-commons-compress)
3589 ("java-commons-logging-minimal" ,java-commons-logging-minimal)
3590 ("java-commons-jexl-2" ,java-commons-jexl-2)
3591 ("java-xz" ,java-xz)))
3592 (native-inputs
3593 `(("java-junit" ,java-junit)))
3594 (home-page "http://samtools.github.io/htsjdk/")
15a3c3d4
RW
3595 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
3596 (description
3597 "HTSJDK is an implementation of a unified Java library for accessing
3598common file formats, such as SAM and VCF, used for high-throughput
3599sequencing (HTS) data. There are also an number of useful utilities for
3600manipulating HTS data.")
3601 (license license:expat)))
3602
719fa958
RW
3603;; This is needed for picard 2.10.3
3604(define-public java-htsjdk-2.10.1
3605 (package (inherit java-htsjdk-latest)
3606 (name "java-htsjdk")
3607 (version "2.10.1")
3608 (source (origin
3609 (method git-fetch)
3610 (uri (git-reference
3611 (url "https://github.com/samtools/htsjdk.git")
3612 (commit version)))
3613 (file-name (string-append name "-" version "-checkout"))
3614 (sha256
3615 (base32
3616 "1kxh7slm2pm3x9p6jxa1wqsq9a31dhiiflhxnxqcisan4k3rwia2"))))
3617 (build-system ant-build-system)
3618 (arguments
3619 `(#:tests? #f ; tests require Scala
3620 #:jdk ,icedtea-8
3621 #:jar-name "htsjdk.jar"
3622 #:phases
3623 (modify-phases %standard-phases
3624 (add-after 'unpack 'remove-useless-build.xml
3625 (lambda _ (delete-file "build.xml") #t))
3626 ;; The tests require the scalatest package.
3627 (add-after 'unpack 'remove-tests
3628 (lambda _ (delete-file-recursively "src/test") #t)))))))
3629
d7fed31a
RW
3630;; This version matches java-htsjdk 2.3.0. Later versions also require a more
3631;; recent version of java-htsjdk, which depends on gradle.
3632(define-public java-picard
3633 (package
3634 (name "java-picard")
3635 (version "2.3.0")
3636 (source (origin
3637 (method git-fetch)
3638 (uri (git-reference
3639 (url "https://github.com/broadinstitute/picard.git")
3640 (commit version)))
3641 (file-name (string-append "java-picard-" version "-checkout"))
3642 (sha256
3643 (base32
3644 "1ll7mf4r3by92w2nhlmpa591xd1f46xlkwh59mq6fvbb5pdwzvx6"))
3645 (modules '((guix build utils)))
3646 (snippet
3647 '(begin
3648 ;; Delete pre-built binaries.
3649 (delete-file-recursively "lib")
3650 (mkdir-p "lib")
3651 (substitute* "build.xml"
3652 ;; Remove build-time dependency on git.
3653 (("failifexecutionfails=\"true\"")
3654 "failifexecutionfails=\"false\"")
3655 ;; Use our htsjdk.
3656 (("depends=\"compile-htsjdk, ")
3657 "depends=\"")
3658 (("depends=\"compile-htsjdk-tests, ")
3659 "depends=\"")
3660 ;; Build picard-lib.jar before building picard.jar
3661 (("name=\"picard-jar\" depends=\"" line)
3662 (string-append line "picard-lib-jar, ")))
3663 #t))))
3664 (build-system ant-build-system)
3665 (arguments
3666 `(#:build-target "picard-jar"
3667 #:test-target "test"
3668 ;; Tests require jacoco:coverage.
3669 #:tests? #f
3670 #:make-flags
3671 (list (string-append "-Dhtsjdk_lib_dir="
3672 (assoc-ref %build-inputs "java-htsjdk")
3673 "/share/java/htsjdk/")
3674 "-Dhtsjdk-classes=dist/tmp"
3675 (string-append "-Dhtsjdk-version="
3676 ,(package-version java-htsjdk)))
3677 #:jdk ,icedtea-8
3678 #:phases
3679 (modify-phases %standard-phases
1f94ba94
RW
3680 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3681 (delete 'generate-jar-indices)
d7fed31a
RW
3682 (add-after 'unpack 'use-our-htsjdk
3683 (lambda* (#:key inputs #:allow-other-keys)
3684 (substitute* "build.xml"
3685 (("\\$\\{htsjdk\\}/lib")
3686 (string-append (assoc-ref inputs "java-htsjdk")
3687 "/share/java/htsjdk/")))
3688 #t))
3689 (add-after 'unpack 'make-test-target-independent
3690 (lambda* (#:key inputs #:allow-other-keys)
3691 (substitute* "build.xml"
3692 (("name=\"test\" depends=\"compile, ")
3693 "name=\"test\" depends=\""))
3694 #t))
3695 (replace 'install (install-jars "dist")))))
3696 (inputs
3697 `(("java-htsjdk" ,java-htsjdk)
3698 ("java-guava" ,java-guava)))
3699 (native-inputs
3700 `(("java-testng" ,java-testng)))
3701 (home-page "http://broadinstitute.github.io/picard/")
3702 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3703 (description "Picard is a set of Java command line tools for manipulating
3704high-throughput sequencing (HTS) data and formats. Picard is implemented
3705using the HTSJDK Java library to support accessing file formats that are
3706commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3707VCF.")
3708 (license license:expat)))
3709
72299db9
RW
3710;; This is needed for dropseq-tools
3711(define-public java-picard-2.10.3
3712 (package
3713 (name "java-picard")
3714 (version "2.10.3")
3715 (source (origin
3716 (method git-fetch)
3717 (uri (git-reference
3718 (url "https://github.com/broadinstitute/picard.git")
3719 (commit version)))
3720 (file-name (string-append "java-picard-" version "-checkout"))
3721 (sha256
3722 (base32
3723 "1ajlx31l6i1k3y2rhnmgq07sz99g2czqfqgkr9mihmdjp3gwjhvi"))))
3724 (build-system ant-build-system)
3725 (arguments
3726 `(#:jar-name "picard.jar"
3727 ;; Tests require jacoco:coverage.
3728 #:tests? #f
3729 #:jdk ,icedtea-8
3730 #:main-class "picard.cmdline.PicardCommandLine"
3731 #:modules ((guix build ant-build-system)
3732 (guix build utils)
3733 (guix build java-utils)
3734 (sxml simple)
3735 (sxml transform)
3736 (sxml xpath))
3737 #:phases
3738 (modify-phases %standard-phases
e847f402
RW
3739 ;; FIXME: this phase fails with "duplicate entry: htsjdk/samtools/AbstractBAMFileIndex$1.class"
3740 (delete 'generate-jar-indices)
72299db9
RW
3741 (add-after 'unpack 'remove-useless-build.xml
3742 (lambda _ (delete-file "build.xml") #t))
3743 ;; This is necessary to ensure that htsjdk is found when using
3744 ;; picard.jar as an executable.
3745 (add-before 'build 'edit-classpath-in-manifest
3746 (lambda* (#:key inputs #:allow-other-keys)
3747 (chmod "build.xml" #o664)
3748 (call-with-output-file "build.xml.new"
3749 (lambda (port)
3750 (sxml->xml
3751 (pre-post-order
3752 (with-input-from-file "build.xml"
3753 (lambda _ (xml->sxml #:trim-whitespace? #t)))
3754 `((target . ,(lambda (tag . kids)
3755 (let ((name ((sxpath '(name *text*))
3756 (car kids)))
3757 ;; FIXME: We're breaking the line
3758 ;; early with a dummy path to
3759 ;; ensure that the store reference
3760 ;; isn't broken apart and can still
3761 ;; be found by the reference
3762 ;; scanner.
3763 (msg (format #f
3764 "\
3765Class-Path: /~a \
d60772dc 3766 ~a/share/java/htsjdk.jar${line.separator}${line.separator}"
72299db9
RW
3767 ;; maximum line length is 70
3768 (string-tabulate (const #\b) 57)
3769 (assoc-ref inputs "java-htsjdk"))))
3770 (if (member "manifest" name)
3771 `(,tag ,@kids
d60772dc
GB
3772 (replaceregexp
3773 (@ (file "${manifest.file}")
3774 (match "\\r\\n\\r\\n")
3775 (replace "${line.separator}")))
72299db9
RW
3776 (echo
3777 (@ (message ,msg)
3778 (file "${manifest.file}")
3779 (append "true"))))
3780 `(,tag ,@kids)))))
3781 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
3782 (*text* . ,(lambda (_ txt) txt))))
3783 port)))
3784 (rename-file "build.xml.new" "build.xml")
3785 #t)))))
3786 (propagated-inputs
3787 `(("java-htsjdk" ,java-htsjdk-2.10.1)))
3788 (native-inputs
3789 `(("java-testng" ,java-testng)
3790 ("java-guava" ,java-guava)))
3791 (home-page "http://broadinstitute.github.io/picard/")
3792 (synopsis "Tools for manipulating high-throughput sequencing data and formats")
3793 (description "Picard is a set of Java command line tools for manipulating
3794high-throughput sequencing (HTS) data and formats. Picard is implemented
3795using the HTSJDK Java library to support accessing file formats that are
3796commonly used for high-throughput sequencing data such as SAM, BAM, CRAM and
3797VCF.")
3798 (license license:expat)))
3799
d7f24778
RW
3800;; This is the last version of Picard to provide net.sf.samtools
3801(define-public java-picard-1.113
3802 (package (inherit java-picard)
3803 (name "java-picard")
3804 (version "1.113")
3805 (source (origin
3806 (method git-fetch)
3807 (uri (git-reference
3808 (url "https://github.com/broadinstitute/picard.git")
3809 (commit version)))
3810 (file-name (string-append "java-picard-" version "-checkout"))
3811 (sha256
3812 (base32
3813 "0lkpvin2fz3hhly4l02kk56fqy8lmlgyzr9kmvljk6ry6l1hw973"))
3814 (modules '((guix build utils)))
3815 (snippet
3816 '(begin
3817 ;; Delete pre-built binaries.
3818 (delete-file-recursively "lib")
3819 (mkdir-p "lib")
3820 #t))))
3821 (build-system ant-build-system)
3822 (arguments
3823 `(#:build-target "picard-jar"
3824 #:test-target "test"
3825 ;; FIXME: the class path at test time is wrong.
3826 ;; [testng] Error: A JNI error has occurred, please check your installation and try again
3827 ;; [testng] Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException
3828 #:tests? #f
3829 #:jdk ,icedtea-8
3830 ;; This is only used for tests.
3831 #:make-flags
3832 (list "-Dsamjdk.intel_deflater_so_path=lib/jni/libIntelDeflater.so")
3833 #:phases
3834 (modify-phases %standard-phases
a993ad83
RW
3835 ;; FIXME: This phase fails.
3836 (delete 'generate-jar-indices)
d7f24778
RW
3837 ;; Do not use bundled ant bzip2.
3838 (add-after 'unpack 'use-ant-bzip
3839 (lambda* (#:key inputs #:allow-other-keys)
3840 (substitute* "build.xml"
3841 (("\\$\\{lib\\}/apache-ant-1.8.2-bzip2.jar")
3842 (string-append (assoc-ref inputs "ant")
3843 "/lib/ant.jar")))
3844 #t))
3845 (add-after 'unpack 'make-test-target-independent
3846 (lambda* (#:key inputs #:allow-other-keys)
3847 (substitute* "build.xml"
3848 (("name=\"test\" depends=\"compile, ")
3849 "name=\"test\" depends=\"compile-tests, ")
3850 (("name=\"compile\" depends=\"compile-src, compile-tests\"")
3851 "name=\"compile\" depends=\"compile-src\""))
3852 #t))
3853 (add-after 'unpack 'fix-deflater-path
3854 (lambda* (#:key outputs #:allow-other-keys)
3855 (substitute* "src/java/net/sf/samtools/Defaults.java"
3856 (("getStringProperty\\(\"intel_deflater_so_path\", null\\)")
3857 (string-append "getStringProperty(\"intel_deflater_so_path\", \""
3858 (assoc-ref outputs "out")
3859 "/lib/jni/libIntelDeflater.so"
3860 "\")")))
3861 #t))
3862 ;; Build the deflater library, because we've previously deleted the
3863 ;; pre-built one. This can only be built with access to the JDK
3864 ;; sources.
3865 (add-after 'build 'build-jni
3866 (lambda* (#:key inputs #:allow-other-keys)
3867 (mkdir-p "lib/jni")
3868 (mkdir-p "jdk-src")
c527d36f
RW
3869 (invoke "tar" "--strip-components=1" "-C" "jdk-src"
3870 "-xf" (assoc-ref inputs "jdk-src"))
3871 (invoke "javah" "-jni"
3872 "-classpath" "classes"
3873 "-d" "lib/"
3874 "net.sf.samtools.util.zip.IntelDeflater")
3875 (with-directory-excursion "src/c/inteldeflater"
3876 (invoke "gcc" "-I../../../lib" "-I."
3877 (string-append "-I" (assoc-ref inputs "jdk")
3878 "/include/linux")
3879 "-I../../../jdk-src/src/share/native/common/"
3880 "-I../../../jdk-src/src/solaris/native/common/"
3881 "-c" "-O3" "-fPIC" "IntelDeflater.c")
3882 (invoke "gcc" "-shared"
3883 "-o" "../../../lib/jni/libIntelDeflater.so"
3884 "IntelDeflater.o" "-lz" "-lstdc++"))
3885 #t))
d7f24778
RW
3886 ;; We can only build everything else after building the JNI library.
3887 (add-after 'build-jni 'build-rest
3888 (lambda* (#:key make-flags #:allow-other-keys)
c527d36f
RW
3889 (apply invoke `("ant" "all" ,@make-flags))
3890 #t))
d7f24778
RW
3891 (add-before 'build 'set-JAVA6_HOME
3892 (lambda _
3893 (setenv "JAVA6_HOME" (getenv "JAVA_HOME"))
3894 #t))
3895 (replace 'install (install-jars "dist"))
3896 (add-after 'install 'install-jni-lib
3897 (lambda* (#:key outputs #:allow-other-keys)
3898 (let ((jni (string-append (assoc-ref outputs "out")
3899 "/lib/jni")))
3900 (mkdir-p jni)
3901 (install-file "lib/jni/libIntelDeflater.so" jni)
3902 #t))))))
3903 (inputs
3904 `(("java-snappy-1" ,java-snappy-1)
3905 ("java-commons-jexl-2" ,java-commons-jexl-2)
3906 ("java-cofoja" ,java-cofoja)
3907 ("ant" ,ant) ; for bzip2 support at runtime
3908 ("zlib" ,zlib)))
3909 (native-inputs
3910 `(("ant-apache-bcel" ,ant-apache-bcel)
3911 ("ant-junit" ,ant-junit)
3912 ("java-testng" ,java-testng)
3913 ("java-commons-bcel" ,java-commons-bcel)
3914 ("java-jcommander" ,java-jcommander)
3915 ("jdk" ,icedtea-8 "jdk")
3916 ("jdk-src" ,(car (assoc-ref (package-native-inputs icedtea-8) "jdk-drop")))))))
3917
bd975831
RW
3918(define-public fastqc
3919 (package
3920 (name "fastqc")
3921 (version "0.11.5")
3922 (source
3923 (origin
3924 (method url-fetch)
3925 (uri (string-append "http://www.bioinformatics.babraham.ac.uk/"
3926 "projects/fastqc/fastqc_v"
3927 version "_source.zip"))
3928 (sha256
3929 (base32
3930 "18rrlkhcrxvvvlapch4dpj6xc6mpayzys8qfppybi8jrpgx5cc5f"))))
3931 (build-system ant-build-system)
3932 (arguments
3933 `(#:tests? #f ; there are no tests
3934 #:build-target "build"
3935 #:phases
3936 (modify-phases %standard-phases
3937 (add-after 'unpack 'fix-dependencies
3938 (lambda* (#:key inputs #:allow-other-keys)
3939 (substitute* "build.xml"
3940 (("jbzip2-0.9.jar")
3941 (string-append (assoc-ref inputs "java-jbzip2")
3942 "/share/java/jbzip2.jar"))
3943 (("sam-1.103.jar")
3944 (string-append (assoc-ref inputs "java-picard-1.113")
3945 "/share/java/sam-1.112.jar"))
3946 (("cisd-jhdf5.jar")
3947 (string-append (assoc-ref inputs "java-cisd-jhdf5")
3948 "/share/java/sis-jhdf5.jar")))
3949 #t))
3950 ;; There is no installation target
3951 (replace 'install
3952 (lambda* (#:key inputs outputs #:allow-other-keys)
3953 (let* ((out (assoc-ref outputs "out"))
3954 (bin (string-append out "/bin"))
3955 (share (string-append out "/share/fastqc/"))
3956 (exe (string-append share "/fastqc")))
3957 (for-each mkdir-p (list bin share))
3958 (copy-recursively "bin" share)
3959 (substitute* exe
3960 (("my \\$java_bin = 'java';")
3961 (string-append "my $java_bin = '"
3962 (assoc-ref inputs "java")
3963 "/bin/java';")))
3964 (chmod exe #o555)
3965 (symlink exe (string-append bin "/fastqc"))
3966 #t))))))
3967 (inputs
3968 `(("java" ,icedtea)
3969 ("perl" ,perl) ; needed for the wrapper script
3970 ("java-cisd-jhdf5" ,java-cisd-jhdf5)
3971 ("java-picard-1.113" ,java-picard-1.113)
3972 ("java-jbzip2" ,java-jbzip2)))
3973 (native-inputs
3974 `(("unzip" ,unzip)))
3975 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/fastqc/")
3976 (synopsis "Quality control tool for high throughput sequence data")
3977 (description
3978 "FastQC aims to provide a simple way to do some quality control
3979checks on raw sequence data coming from high throughput sequencing
3980pipelines. It provides a modular set of analyses which you can use to
3981give a quick impression of whether your data has any problems of which
3982you should be aware before doing any further analysis.
3983
3984The main functions of FastQC are:
3985
3986@itemize
3987@item Import of data from BAM, SAM or FastQ files (any variant);
3988@item Providing a quick overview to tell you in which areas there may
3989 be problems;
3990@item Summary graphs and tables to quickly assess your data;
3991@item Export of results to an HTML based permanent report;
3992@item Offline operation to allow automated generation of reports
3993 without running the interactive application.
3994@end itemize\n")
3995 (license license:gpl3+)))
3996
a1b80245
RW
3997(define-public fastp
3998 (package
3999 (name "fastp")
4000 (version "0.14.1")
4001 (source
4002 (origin
4003 (method git-fetch)
4004 (uri (git-reference
4005 (url "https://github.com/OpenGene/fastp.git")
4006 (commit (string-append "v" version))))
4007 (file-name (git-file-name name version))
4008 (sha256
4009 (base32
4010 "1r6ms5zbf5rps4rgp4z73nczadl00b5rqylw8f684isfz27dp0xh"))))
4011 (build-system gnu-build-system)
4012 (arguments
4013 `(#:tests? #f ; there are none
4014 #:make-flags
4015 (list (string-append "BINDIR=" (assoc-ref %outputs "out") "/bin"))
4016 #:phases
4017 (modify-phases %standard-phases
4018 (delete 'configure)
4019 (add-before 'install 'create-target-dir
4020 (lambda* (#:key outputs #:allow-other-keys)
4021 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4022 #t)))))
4023 (inputs
4024 `(("zlib" ,zlib)))
4025 (home-page "https://github.com/OpenGene/fastp/")
4026 (synopsis "All-in-one FastQ preprocessor")
4027 (description
4028 "Fastp is a tool designed to provide fast all-in-one preprocessing for
4029FastQ files. This tool has multi-threading support to afford high
4030performance.")
4031 (license license:expat)))
4032
e7c09730
RW
4033(define-public htslib
4034 (package
4035 (name "htslib")
bd5f5eec 4036 (version "1.9")
e7c09730
RW
4037 (source (origin
4038 (method url-fetch)
4039 (uri (string-append
4040 "https://github.com/samtools/htslib/releases/download/"
4041 version "/htslib-" version ".tar.bz2"))
4042 (sha256
4043 (base32
bd5f5eec 4044 "16ljv43sc3fxmv63w7b2ff8m1s7h89xhazwmbm1bicz8axq8fjz0"))))
e7c09730 4045 (build-system gnu-build-system)
e7c09730 4046 (inputs
a9e4a1e6
BW
4047 `(("openssl" ,openssl)
4048 ("curl" ,curl)
4049 ("zlib" ,zlib)))
e7c09730
RW
4050 (native-inputs
4051 `(("perl" ,perl)))
4052 (home-page "http://www.htslib.org")
4053 (synopsis "C library for reading/writing high-throughput sequencing data")
4054 (description
4055 "HTSlib is a C library for reading/writing high-throughput sequencing
8057dee1
TGR
4056data. It also provides the @command{bgzip}, @command{htsfile}, and
4057@command{tabix} utilities.")
e7c09730
RW
4058 ;; Files under cram/ are released under the modified BSD license;
4059 ;; the rest is released under the Expat license
4060 (license (list license:expat license:bsd-3))))
4061
bca2c576
BW
4062;; This package should be removed once no packages rely upon it.
4063(define htslib-1.3
4064 (package
4065 (inherit htslib)
4066 (version "1.3.1")
4067 (source (origin
4068 (method url-fetch)
4069 (uri (string-append
4070 "https://github.com/samtools/htslib/releases/download/"
4071 version "/htslib-" version ".tar.bz2"))
4072 (sha256
4073 (base32
4074 "1rja282fwdc25ql6izkhdyh8ppw8x2fs0w0js78zgkmqjlikmma9"))))))
4075
c4325f62
RW
4076(define-public idr
4077 (package
4078 (name "idr")
aa33cc29 4079 (version "2.0.3")
c4325f62 4080 (source (origin
f0731591
RW
4081 (method git-fetch)
4082 (uri (git-reference
4083 (url "https://github.com/nboley/idr.git")
4084 (commit version)))
4085 (file-name (git-file-name name version))
c4325f62
RW
4086 (sha256
4087 (base32
f0731591 4088 "04j876h6z444v2q79drxx283d3k5snd72kj895wbalnl42206x9g"))
aa33cc29
RW
4089 ;; Delete generated C code.
4090 (snippet
4091 '(begin (delete-file "idr/inv_cdf.c") #t))))
c4325f62 4092 (build-system python-build-system)
aa33cc29
RW
4093 ;; There is only one test ("test_inv_cdf.py") and it tests features that
4094 ;; are no longer part of this package. It also asserts False, which
4095 ;; causes the tests to always fail.
4096 (arguments `(#:tests? #f))
b7a820fc 4097 (propagated-inputs
c4325f62 4098 `(("python-scipy" ,python-scipy)
b7a820fc 4099 ("python-sympy" ,python-sympy)
c4325f62
RW
4100 ("python-numpy" ,python-numpy)
4101 ("python-matplotlib" ,python-matplotlib)))
4102 (native-inputs
f3b98f4f 4103 `(("python-cython" ,python-cython)))
c4325f62
RW
4104 (home-page "https://github.com/nboley/idr")
4105 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
4106 (description
4107 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
4108to measure the reproducibility of findings identified from replicate
4109experiments and provide highly stable thresholds based on reproducibility.")
40590caf 4110 (license license:gpl2+)))
c4325f62 4111
43c565d2
RW
4112(define-public jellyfish
4113 (package
4114 (name "jellyfish")
647465ac 4115 (version "2.2.10")
43c565d2
RW
4116 (source (origin
4117 (method url-fetch)
4118 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
4119 "releases/download/v" version
4120 "/jellyfish-" version ".tar.gz"))
4121 (sha256
4122 (base32
647465ac 4123 "1k4pc3fvv6w1km2yph4m5sd78fbxp21d6xyzgmy0gjihzc6mb249"))))
43c565d2
RW
4124 (build-system gnu-build-system)
4125 (outputs '("out" ;for library
4126 "ruby" ;for Ruby bindings
4127 "python")) ;for Python bindings
4128 (arguments
4129 `(#:configure-flags
4130 (list (string-append "--enable-ruby-binding="
4131 (assoc-ref %outputs "ruby"))
4132 (string-append "--enable-python-binding="
4133 (assoc-ref %outputs "python")))
4134 #:phases
4135 (modify-phases %standard-phases
4136 (add-before 'check 'set-SHELL-variable
4137 (lambda _
4138 ;; generator_manager.hpp either uses /bin/sh or $SHELL
4139 ;; to run tests.
4140 (setenv "SHELL" (which "bash"))
4141 #t)))))
4142 (native-inputs
4143 `(("bc" ,bc)
4144 ("time" ,time)
4145 ("ruby" ,ruby)
117d8cc4
RW
4146 ("python" ,python-2)
4147 ("pkg-config" ,pkg-config)))
4148 (inputs
4149 `(("htslib" ,htslib)))
43c565d2
RW
4150 (synopsis "Tool for fast counting of k-mers in DNA")
4151 (description
4152 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
4153DNA. A k-mer is a substring of length k, and counting the occurrences of all
4154such substrings is a central step in many analyses of DNA sequence. Jellyfish
4155is a command-line program that reads FASTA and multi-FASTA files containing
4156DNA sequences. It outputs its k-mer counts in a binary format, which can be
4157translated into a human-readable text format using the @code{jellyfish dump}
4158command, or queried for specific k-mers with @code{jellyfish query}.")
4159 (home-page "http://www.genome.umd.edu/jellyfish.html")
647465ac
EF
4160 ;; JELLYFISH seems to be 64-bit only.
4161 (supported-systems '("x86_64-linux" "aarch64-linux" "mips64el-linux"))
43c565d2
RW
4162 ;; The combined work is published under the GPLv3 or later. Individual
4163 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
4164 (license (list license:gpl3+ license:expat))))
4165
94ff3157
BW
4166(define-public khmer
4167 (package
4168 (name "khmer")
4b8f4536 4169 (version "2.1.2")
94ff3157
BW
4170 (source
4171 (origin
4b8f4536
RW
4172 (method git-fetch)
4173 (uri (git-reference
4174 (url "https://github.com/dib-lab/khmer.git")
4175 (commit (string-append "v" version))))
4176 (file-name (git-file-name name version))
94ff3157
BW
4177 (sha256
4178 (base32
4b8f4536
RW
4179 "02x38d9jw2r58y8dmnj4hffy9wxv1yc1jwbvdbhby9dxndv94r9m"))
4180 (patches (search-patches "khmer-use-libraries.patch"))
4181 (modules '((guix build utils)))
4182 (snippet
4183 '(begin
4184 ;; Delete bundled libraries. We do not replace the bundled seqan
4185 ;; as it is a modified subset of the old version 1.4.1.
4186 ;;
4187 ;; We do not replace the bundled MurmurHash as the canonical
4188 ;; repository for this code 'SMHasher' is unsuitable for providing
4189 ;; a library. See
4190 ;; https://lists.gnu.org/archive/html/guix-devel/2016-06/msg00977.html
4191 (delete-file-recursively "third-party/zlib")
4192 (delete-file-recursively "third-party/bzip2")
4193 #t))))
94ff3157
BW
4194 (build-system python-build-system)
4195 (arguments
4196 `(#:phases
4197 (modify-phases %standard-phases
94ff3157 4198 (add-after 'unpack 'set-cc
4b8f4536
RW
4199 (lambda _ (setenv "CC" "gcc") #t))
4200 ;; FIXME: This fails with "permission denied".
4201 (delete 'reset-gzip-timestamps))))
94ff3157 4202 (native-inputs
4b8f4536
RW
4203 `(("python-cython" ,python-cython)
4204 ("python-pytest" ,python-pytest)
4205 ("python-pytest-runner" ,python-pytest-runner)))
94ff3157
BW
4206 (inputs
4207 `(("zlib" ,zlib)
4208 ("bzip2" ,bzip2)
4209 ("python-screed" ,python-screed)
4b8f4536 4210 ("python-bz2file" ,python-bz2file)))
94ff3157
BW
4211 (home-page "https://khmer.readthedocs.org/")
4212 (synopsis "K-mer counting, filtering and graph traversal library")
4213 (description "The khmer software is a set of command-line tools for
4214working with DNA shotgun sequencing data from genomes, transcriptomes,
4215metagenomes and single cells. Khmer can make de novo assemblies faster, and
4216sometimes better. Khmer can also identify and fix problems with shotgun
4217data.")
8157af2e
EF
4218 ;; When building on i686, armhf and mips64el, we get the following error:
4219 ;; error: ['khmer', 'khmer.tests', 'oxli'] require 64-bit operating system
3df57b3a 4220 (supported-systems '("x86_64-linux" "aarch64-linux"))
94ff3157
BW
4221 (license license:bsd-3)))
4222
b9a601d9
RJ
4223(define-public kaiju
4224 (package
4225 (name "kaiju")
2dc28391 4226 (version "1.6.3")
b9a601d9 4227 (source (origin
6fe323bf
RW
4228 (method git-fetch)
4229 (uri (git-reference
4230 (url "https://github.com/bioinformatics-centre/kaiju")
4231 (commit (string-append "v" version))))
4232 (file-name (git-file-name name version))
b9a601d9
RJ
4233 (sha256
4234 (base32
2dc28391 4235 "119pzi0ddzv9mjg4wwa6han0cwr3k3ssn7kirvsjfcq05mi5ka0x"))))
b9a601d9
RJ
4236 (build-system gnu-build-system)
4237 (arguments
4238 `(#:tests? #f ; There are no tests.
4239 #:phases
4240 (modify-phases %standard-phases
4241 (delete 'configure)
4242 (add-before 'build 'move-to-src-dir
4243 (lambda _ (chdir "src") #t))
4244 (replace 'install
4245 (lambda* (#:key inputs outputs #:allow-other-keys)
4246 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
4247 (mkdir-p bin)
4248 (chdir "..")
6fe323bf 4249 (copy-recursively "bin" bin))
b9a601d9
RJ
4250 #t)))))
4251 (inputs
53e42694
RJ
4252 `(("perl" ,perl)
4253 ("zlib" ,zlib)))
b9a601d9
RJ
4254 (home-page "http://kaiju.binf.ku.dk/")
4255 (synopsis "Fast and sensitive taxonomic classification for metagenomics")
4256 (description "Kaiju is a program for sensitive taxonomic classification
4257of high-throughput sequencing reads from metagenomic whole genome sequencing
4258experiments.")
4259 (license license:gpl3+)))
4260
d57e6d0f
RW
4261(define-public macs
4262 (package
4263 (name "macs")
ffe8d214 4264 (version "2.1.1.20160309")
d57e6d0f
RW
4265 (source (origin
4266 (method url-fetch)
43ec07f1 4267 (uri (pypi-uri "MACS2" version))
d57e6d0f
RW
4268 (sha256
4269 (base32
ffe8d214 4270 "09ixspd1vcqmz1c81ih70xs4m7qml2iy5vyx1y74zww3iy1vl210"))))
d57e6d0f
RW
4271 (build-system python-build-system)
4272 (arguments
4273 `(#:python ,python-2 ; only compatible with Python 2.7
4274 #:tests? #f)) ; no test target
4275 (inputs
4276 `(("python-numpy" ,python2-numpy)))
7bf837fd 4277 (home-page "https://github.com/taoliu/MACS/")
d57e6d0f
RW
4278 (synopsis "Model based analysis for ChIP-Seq data")
4279 (description
4280 "MACS is an implementation of a ChIP-Seq analysis algorithm for
4281identifying transcript factor binding sites named Model-based Analysis of
4282ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
4283the significance of enriched ChIP regions and it improves the spatial
4284resolution of binding sites through combining the information of both
4285sequencing tag position and orientation.")
4286 (license license:bsd-3)))
4287
41ddebdd
BW
4288(define-public mafft
4289 (package
4290 (name "mafft")
c7a8aa13 4291 (version "7.394")
41ddebdd
BW
4292 (source (origin
4293 (method url-fetch)
4294 (uri (string-append
3146f22d 4295 "https://mafft.cbrc.jp/alignment/software/mafft-" version
41ddebdd
BW
4296 "-without-extensions-src.tgz"))
4297 (file-name (string-append name "-" version ".tgz"))
4298 (sha256
4299 (base32
c7a8aa13 4300 "0bacjkxfg944p5khhyh5rd4y7wkjc9qk4v2jjj442sqlq0f8ar7b"))))
41ddebdd
BW
4301 (build-system gnu-build-system)
4302 (arguments
4303 `(#:tests? #f ; no automated tests, though there are tests in the read me
4304 #:make-flags (let ((out (assoc-ref %outputs "out")))
4305 (list (string-append "PREFIX=" out)
4306 (string-append "BINDIR="
4307 (string-append out "/bin"))))
4308 #:phases
4309 (modify-phases %standard-phases
4310 (add-after 'unpack 'enter-dir
101e8f71 4311 (lambda _ (chdir "core") #t))
41ddebdd 4312 (add-after 'enter-dir 'patch-makefile
101e8f71
BW
4313 (lambda _
4314 ;; on advice from the MAFFT authors, there is no need to
4315 ;; distribute mafft-profile, mafft-distance, or
4316 ;; mafft-homologs.rb as they are too "specialised".
4317 (substitute* "Makefile"
4318 ;; remove mafft-homologs.rb from SCRIPTS
4319 (("^SCRIPTS = mafft mafft-homologs.rb")
4320 "SCRIPTS = mafft")
4321 ;; remove mafft-homologs from MANPAGES
4322 (("^MANPAGES = mafft.1 mafft-homologs.1")
4323 "MANPAGES = mafft.1")
4324 ;; remove mafft-distance from PROGS
4325 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
4326 "PROGS = dvtditr dndfast7 dndblast sextet5")
4327 ;; remove mafft-profile from PROGS
4328 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
4329 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
4330 (("^rm -f mafft-profile mafft-profile.exe") "#")
4331 (("^rm -f mafft-distance mafft-distance.exe") ")#")
4332 ;; do not install MAN pages in libexec folder
4333 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
41ddebdd 4334\\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
101e8f71 4335 #t))
02f35bb5
BW
4336 (add-after 'enter-dir 'patch-paths
4337 (lambda* (#:key inputs #:allow-other-keys)
4338 (substitute* '("pairash.c"
4339 "mafft.tmpl")
4340 (("perl") (which "perl"))
4341 (("([\"`| ])awk" _ prefix)
4342 (string-append prefix (which "awk")))
4343 (("grep") (which "grep")))
4344 #t))
101e8f71
BW
4345 (delete 'configure)
4346 (add-after 'install 'wrap-programs
4347 (lambda* (#:key outputs #:allow-other-keys)
4348 (let* ((out (assoc-ref outputs "out"))
4349 (bin (string-append out "/bin"))
4350 (path (string-append
4351 (assoc-ref %build-inputs "coreutils") "/bin:")))
4352 (for-each (lambda (file)
4353 (wrap-program file
4354 `("PATH" ":" prefix (,path))))
4355 (find-files bin)))
4356 #t)))))
41ddebdd 4357 (inputs
02f35bb5 4358 `(("perl" ,perl)
71461f88 4359 ("ruby" ,ruby)
02f35bb5 4360 ("gawk" ,gawk)
101e8f71
BW
4361 ("grep" ,grep)
4362 ("coreutils" ,coreutils)))
41ddebdd
BW
4363 (home-page "http://mafft.cbrc.jp/alignment/software/")
4364 (synopsis "Multiple sequence alignment program")
4365 (description
4366 "MAFFT offers a range of multiple alignment methods for nucleotide and
4367protein sequences. For instance, it offers L-INS-i (accurate; for alignment
4368of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
4369sequences).")
4370 (license (license:non-copyleft
4371 "http://mafft.cbrc.jp/alignment/software/license.txt"
4372 "BSD-3 with different formatting"))))
8fd790eb 4373
84be3b99
MB
4374(define-public mash
4375 (package
4376 (name "mash")
5c1f35e7 4377 (version "2.1")
84be3b99 4378 (source (origin
497fc04d
RW
4379 (method git-fetch)
4380 (uri (git-reference
4381 (url "https://github.com/marbl/mash.git")
4382 (commit (string-append "v" version))))
4383 (file-name (git-file-name name version))
84be3b99
MB
4384 (sha256
4385 (base32
5c1f35e7 4386 "049hwcc059p2fd9vwndn63laifvvsi0wmv84i6y1fr79k15dxwy6"))
84be3b99
MB
4387 (modules '((guix build utils)))
4388 (snippet
6cbee49d
MW
4389 '(begin
4390 ;; Delete bundled kseq.
4391 ;; TODO: Also delete bundled murmurhash and open bloom filter.
4392 (delete-file "src/mash/kseq.h")
4393 #t))))
84be3b99
MB
4394 (build-system gnu-build-system)
4395 (arguments
4396 `(#:tests? #f ; No tests.
4397 #:configure-flags
4398 (list
4399 (string-append "--with-capnp=" (assoc-ref %build-inputs "capnproto"))
4400 (string-append "--with-gsl=" (assoc-ref %build-inputs "gsl")))
4401 #:make-flags (list "CC=gcc")
4402 #:phases
4403 (modify-phases %standard-phases
4404 (add-after 'unpack 'fix-includes
4405 (lambda _
f38ac742
BW
4406 (substitute* '("src/mash/Sketch.cpp"
4407 "src/mash/CommandFind.cpp"
4408 "src/mash/CommandScreen.cpp")
84be3b99
MB
4409 (("^#include \"kseq\\.h\"")
4410 "#include \"htslib/kseq.h\""))
9718265e
CB
4411 #t))
4412 (add-after 'fix-includes 'use-c++14
4413 (lambda _
4414 ;; capnproto 0.7 requires c++14 to build
4415 (substitute* "configure.ac"
4416 (("c\\+\\+11") "c++14"))
4417 (substitute* "Makefile.in"
4418 (("c\\+\\+11") "c++14"))
e35dce01 4419 #t)))))
84be3b99
MB
4420 (native-inputs
4421 `(("autoconf" ,autoconf)
4422 ;; Capnproto and htslib are statically embedded in the final
4423 ;; application. Therefore we also list their licenses, below.
4424 ("capnproto" ,capnproto)
4425 ("htslib" ,htslib)))
4426 (inputs
4427 `(("gsl" ,gsl)
4428 ("zlib" ,zlib)))
4429 (supported-systems '("x86_64-linux"))
4430 (home-page "https://mash.readthedocs.io")
4431 (synopsis "Fast genome and metagenome distance estimation using MinHash")
4432 (description "Mash is a fast sequence distance estimator that uses the
4433MinHash algorithm and is designed to work with genomes and metagenomes in the
4434form of assemblies or reads.")
4435 (license (list license:bsd-3 ; Mash
4436 license:expat ; HTSlib and capnproto
4437 license:public-domain ; MurmurHash 3
4438 license:cpl1.0)))) ; Open Bloom Filter
4439
8fd790eb 4440(define-public metabat
f3f68a44
BW
4441 (package
4442 (name "metabat")
25bd1fc1 4443 (version "2.12.1")
f3f68a44
BW
4444 (source
4445 (origin
b58d9e4a
RW
4446 (method git-fetch)
4447 (uri (git-reference
4448 (url "https://bitbucket.org/berkeleylab/metabat.git")
4449 (commit (string-append "v" version))))
4450 (file-name (git-file-name name version))
f3f68a44
BW
4451 (sha256
4452 (base32
b58d9e4a 4453 "0hyg2smw1nz69mfvjpk45xyyychmda92c80a0cv7baji84ri4iyn"))
25bd1fc1 4454 (patches (search-patches "metabat-fix-compilation.patch"))))
9364a520 4455 (build-system scons-build-system)
8fd790eb 4456 (arguments
9364a520
AI
4457 `(#:scons ,scons-python2
4458 #:scons-flags
4459 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
4460 (string-append "BOOST_ROOT=" (assoc-ref %build-inputs "boost")))
4461 #:tests? #f ;; Tests are run during the build phase.
4462 #:phases
8fd790eb
BW
4463 (modify-phases %standard-phases
4464 (add-after 'unpack 'fix-includes
45469ebe
BW
4465 (lambda _
4466 (substitute* "src/BamUtils.h"
4467 (("^#include \"bam/bam\\.h\"")
4468 "#include \"samtools/bam.h\"")
4469 (("^#include \"bam/sam\\.h\"")
4470 "#include \"samtools/sam.h\""))
4471 (substitute* "src/KseqReader.h"
4472 (("^#include \"bam/kseq\\.h\"")
4473 "#include \"htslib/kseq.h\""))
4474 #t))
8fd790eb 4475 (add-after 'unpack 'fix-scons
f3f68a44
BW
4476 (lambda* (#:key inputs #:allow-other-keys)
4477 (substitute* "SConstruct"
4478 (("^htslib_dir += 'samtools'")
4479 (string-append "htslib_dir = '"
4480 (assoc-ref inputs "htslib")
4481 "'"))
4482 (("^samtools_dir = 'samtools'")
4483 (string-append "samtools_dir = '"
4484 (assoc-ref inputs "samtools")
4485 "'"))
4486 (("^findStaticOrShared\\('bam', hts_lib")
4487 (string-append "findStaticOrShared('bam', '"
4488 (assoc-ref inputs "samtools")
4489 "/lib'"))
4490 ;; Do not distribute README.
4491 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)") ""))
9364a520 4492 #t)))))
8fd790eb
BW
4493 (inputs
4494 `(("zlib" ,zlib)
4495 ("perl" ,perl)
4496 ("samtools" ,samtools)
4497 ("htslib" ,htslib)
4498 ("boost" ,boost)))
8fd790eb
BW
4499 (home-page "https://bitbucket.org/berkeleylab/metabat")
4500 (synopsis
4501 "Reconstruction of single genomes from complex microbial communities")
4502 (description
4503 "Grouping large genomic fragments assembled from shotgun metagenomic
4504sequences to deconvolute complex microbial communities, or metagenome binning,
4505enables the study of individual organisms and their interactions. MetaBAT is
4506an automated metagenome binning software, which integrates empirical
4507probabilistic distances of genome abundance and tetranucleotide frequency.")
d931a4bb
EF
4508 ;; The source code contains inline assembly.
4509 (supported-systems '("x86_64-linux" "i686-linux"))
f3f68a44
BW
4510 (license (license:non-copyleft "file://license.txt"
4511 "See license.txt in the distribution."))))
8fd790eb 4512
318c0aee
MB
4513(define-public minced
4514 (package
4515 (name "minced")
6052264b 4516 (version "0.3.2")
318c0aee 4517 (source (origin
9d94ca0e
RW
4518 (method git-fetch)
4519 (uri (git-reference
4520 (url "https://github.com/ctSkennerton/minced.git")
4521 (commit version)))
4522 (file-name (git-file-name name version))
318c0aee
MB
4523 (sha256
4524 (base32
6052264b 4525 "1f5h9him0gd355cnx7p6pnxpknhckd4g0v62mg8zyhfbx9as25fv"))))
318c0aee
MB
4526 (build-system gnu-build-system)
4527 (arguments
4528 `(#:test-target "test"
4529 #:phases
4530 (modify-phases %standard-phases
4531 (delete 'configure)
4532 (add-before 'check 'fix-test
4533 (lambda _
4534 ;; Fix test for latest version.
4535 (substitute* "t/Aquifex_aeolicus_VF5.expected"
4536 (("minced:0.1.6") "minced:0.2.0"))
4537 #t))
4538 (replace 'install ; No install target.
4539 (lambda* (#:key inputs outputs #:allow-other-keys)
4540 (let* ((out (assoc-ref outputs "out"))
4541 (bin (string-append out "/bin"))
4542 (wrapper (string-append bin "/minced")))
4543 ;; Minced comes with a wrapper script that tries to figure out where
4544 ;; it is located before running the JAR. Since these paths are known
4545 ;; to us, we build our own wrapper to avoid coreutils dependency.
4546 (install-file "minced.jar" bin)
4547 (with-output-to-file wrapper
4548 (lambda _
4549 (display
4550 (string-append
4551 "#!" (assoc-ref inputs "bash") "/bin/sh\n\n"
4552 (assoc-ref inputs "jre") "/bin/java -jar "
4553 bin "/minced.jar \"$@\"\n"))))
2e0f6905
MW
4554 (chmod wrapper #o555))
4555 #t)))))
318c0aee
MB
4556 (native-inputs
4557 `(("jdk" ,icedtea "jdk")))
4558 (inputs
4559 `(("bash" ,bash)
4560 ("jre" ,icedtea "out")))
4561 (home-page "https://github.com/ctSkennerton/minced")
4562 (synopsis "Mining CRISPRs in Environmental Datasets")
4563 (description
4564 "MinCED is a program to find Clustered Regularly Interspaced Short
4565Palindromic Repeats (CRISPRs) in DNA sequences. It can be used for
4566unassembled metagenomic reads, but is mainly designed for full genomes and
4567assembled metagenomic sequence.")
4568 (license license:gpl3+)))
4569
ddd82e0e
RW
4570(define-public miso
4571 (package
4572 (name "miso")
ce4dfde0 4573 (version "0.5.4")
ddd82e0e
RW
4574 (source (origin
4575 (method url-fetch)
34260a10 4576 (uri (pypi-uri "misopy" version))
ddd82e0e
RW
4577 (sha256
4578 (base32
ce4dfde0 4579 "1z3x0vd8ma7pdrnywj7i3kgwl89sdkwrrn62zl7r5calqaq2hyip"))
ddd82e0e 4580 (modules '((guix build utils)))
6cbee49d
MW
4581 (snippet '(begin
4582 (substitute* "setup.py"
4583 ;; Use setuptools, or else the executables are not
4584 ;; installed.
4585 (("distutils.core") "setuptools")
4586 ;; use "gcc" instead of "cc" for compilation
4587 (("^defines")
4588 "cc.set_executables(
ddd82e0e
RW
4589compiler='gcc',
4590compiler_so='gcc',
4591linker_exe='gcc',
6cbee49d
MW
4592linker_so='gcc -shared'); defines"))
4593 #t))))
ddd82e0e
RW
4594 (build-system python-build-system)
4595 (arguments
4596 `(#:python ,python-2 ; only Python 2 is supported
4597 #:tests? #f)) ; no "test" target
4598 (inputs
4599 `(("samtools" ,samtools)
4600 ("python-numpy" ,python2-numpy)
4601 ("python-pysam" ,python2-pysam)
4602 ("python-scipy" ,python2-scipy)
4603 ("python-matplotlib" ,python2-matplotlib)))
4604 (native-inputs
f3b98f4f
HG
4605 `(("python-mock" ,python2-mock) ;for tests
4606 ("python-pytz" ,python2-pytz))) ;for tests
ddd82e0e
RW
4607 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
4608 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
4609 (description
4610 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
4611the expression level of alternatively spliced genes from RNA-Seq data, and
4612identifies differentially regulated isoforms or exons across samples. By
4613modeling the generative process by which reads are produced from isoforms in
4614RNA-Seq, the MISO model uses Bayesian inference to compute the probability
4615that a read originated from a particular isoform.")
4616 (license license:gpl2)))
4617
324efb88
BW
4618(define-public muscle
4619 (package
4620 (name "muscle")
4621 (version "3.8.1551")
4622 (source (origin
4623 (method url-fetch/tarbomb)
324efb88
BW
4624 (uri (string-append
4625 "http://www.drive5.com/muscle/muscle_src_"
4626 version ".tar.gz"))
4627 (sha256
4628 (base32
4629 "0bj8kj7sdizy3987zx6w7axihk40fk8rn76mpbqqjcnd64i5a367"))))
4630 (build-system gnu-build-system)
4631 (arguments
4632 `(#:make-flags (list "LDLIBS = -lm")
4633 #:phases
4634 (modify-phases %standard-phases
4635 (delete 'configure)
4636 (replace 'check
4637 ;; There are no tests, so just test if it runs.
17941646 4638 (lambda _ (invoke "./muscle" "-version") #t))
324efb88
BW
4639 (replace 'install
4640 (lambda* (#:key outputs #:allow-other-keys)
4641 (let* ((out (assoc-ref outputs "out"))
4642 (bin (string-append out "/bin")))
17941646
RW
4643 (install-file "muscle" bin)
4644 #t))))))
324efb88
BW
4645 (home-page "http://www.drive5.com/muscle")
4646 (synopsis "Multiple sequence alignment program")
4647 (description
4648 "MUSCLE aims to be a fast and accurate multiple sequence alignment
4649program for nucleotide and protein sequences.")
4650 ;; License information found in 'muscle -h' and usage.cpp.
4651 (license license:public-domain)))
4652
99268755
BW
4653(define-public newick-utils
4654 ;; There are no recent releases so we package from git.
4655 (let ((commit "da121155a977197cab9fbb15953ca1b40b11eb87"))
4656 (package
4657 (name "newick-utils")
4658 (version (string-append "1.6-1." (string-take commit 8)))
4659 (source (origin
4660 (method git-fetch)
4661 (uri (git-reference
4662 (url "https://github.com/tjunier/newick_utils.git")
4663 (commit commit)))
4664 (file-name (string-append name "-" version "-checkout"))
4665 (sha256
4666 (base32
4667 "1hkw21rq1mwf7xp0rmbb2gqc0i6p11108m69i7mr7xcjl268pxnb"))))
4668 (build-system gnu-build-system)
99268755
BW
4669 (inputs
4670 ;; XXX: TODO: Enable Lua and Guile bindings.
4671 ;; https://github.com/tjunier/newick_utils/issues/13
4672 `(("libxml2" ,libxml2)
4673 ("flex" ,flex)
4674 ("bison" ,bison)))
4675 (native-inputs
4676 `(("autoconf" ,autoconf)
4677 ("automake" ,automake)
4678 ("libtool" ,libtool)))
4679 (synopsis "Programs for working with newick format phylogenetic trees")
4680 (description
4681 "Newick-utils is a suite of utilities for processing phylogenetic trees
4682in Newick format. Functions include re-rooting, extracting subtrees,
4683trimming, pruning, condensing, drawing (ASCII graphics or SVG).")
4684 (home-page "https://github.com/tjunier/newick_utils")
4685 (license license:bsd-3))))
4686
1e44cf8b
BW
4687(define-public orfm
4688 (package
4689 (name "orfm")
dfc83ead 4690 (version "0.7.1")
1e44cf8b
BW
4691 (source (origin
4692 (method url-fetch)
4693 (uri (string-append
4694 "https://github.com/wwood/OrfM/releases/download/v"
4695 version "/orfm-" version ".tar.gz"))
4696 (sha256
4697 (base32
dfc83ead 4698 "16iigyr2gd8x0imzkk1dr3k5xsds9bpmwg31ayvjg0f4pir9rwqr"))))
1e44cf8b
BW
4699 (build-system gnu-build-system)
4700 (inputs `(("zlib" ,zlib)))
6b6f7d6a
BW
4701 (native-inputs
4702 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
4703 ("ruby-rspec" ,ruby-rspec)
4704 ("ruby" ,ruby)))
1e44cf8b
BW
4705 (synopsis "Simple and not slow open reading frame (ORF) caller")
4706 (description
6b6f7d6a 4707 "An ORF caller finds stretches of DNA that, when translated, are not
1e44cf8b
BW
4708interrupted by stop codons. OrfM finds and prints these ORFs.")
4709 (home-page "https://github.com/wwood/OrfM")
4710 (license license:lgpl3+)))
4711
19ee9201
RW
4712(define-public python2-pbcore
4713 (package
4714 (name "python2-pbcore")
e301bfc8 4715 (version "1.2.10")
19ee9201
RW
4716 (source (origin
4717 (method url-fetch)
ddb83129 4718 (uri (pypi-uri "pbcore" version))
19ee9201
RW
4719 (sha256
4720 (base32
e301bfc8 4721 "1kjmv891d6qbpp4shhhvkl02ff4q5xlpnls2513sm2cjcrs52f1i"))))
19ee9201
RW
4722 (build-system python-build-system)
4723 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
de5bc890 4724 (propagated-inputs
19ee9201
RW
4725 `(("python-cython" ,python2-cython)
4726 ("python-numpy" ,python2-numpy)
4727 ("python-pysam" ,python2-pysam)
4728 ("python-h5py" ,python2-h5py)))
4729 (native-inputs
de5bc890
HG
4730 `(("python-nose" ,python2-nose)
4731 ("python-sphinx" ,python2-sphinx)
4732 ("python-pyxb" ,python2-pyxb)))
19ee9201
RW
4733 (home-page "http://pacificbiosciences.github.io/pbcore/")
4734 (synopsis "Library for reading and writing PacBio data files")
4735 (description
4736 "The pbcore package provides Python APIs for interacting with PacBio data
4737files and writing bioinformatics applications.")
4738 (license license:bsd-3)))
4739
c61fe02c
RW
4740(define-public python2-warpedlmm
4741 (package
4742 (name "python2-warpedlmm")
4743 (version "0.21")
4744 (source
4745 (origin
4746 (method url-fetch)
4cd7c58c 4747 (uri (pypi-uri "WarpedLMM" version ".zip"))
c61fe02c
RW
4748 (sha256
4749 (base32
4750 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
4751 (build-system python-build-system)
4752 (arguments
54c85e12 4753 `(#:python ,python-2)) ; requires Python 2.7
c61fe02c
RW
4754 (propagated-inputs
4755 `(("python-scipy" ,python2-scipy)
4756 ("python-numpy" ,python2-numpy)
4757 ("python-matplotlib" ,python2-matplotlib)
4758 ("python-fastlmm" ,python2-fastlmm)
4759 ("python-pandas" ,python2-pandas)
4760 ("python-pysnptools" ,python2-pysnptools)))
4761 (native-inputs
f3b98f4f 4762 `(("python-mock" ,python2-mock)
c61fe02c
RW
4763 ("python-nose" ,python2-nose)
4764 ("unzip" ,unzip)))
4765 (home-page "https://github.com/PMBio/warpedLMM")
4766 (synopsis "Implementation of warped linear mixed models")
4767 (description
4768 "WarpedLMM is a Python implementation of the warped linear mixed model,
4769which automatically learns an optimal warping function (or transformation) for
4770the phenotype as it models the data.")
4771 (license license:asl2.0)))
4772
2c16316e 4773(define-public pbtranscript-tofu
698bd297 4774 (let ((commit "8f5467fe6a4472bcfb4226c8720993c8507adfe4"))
2c16316e
RW
4775 (package
4776 (name "pbtranscript-tofu")
698bd297 4777 (version (string-append "2.2.3." (string-take commit 7)))
2c16316e
RW
4778 (source (origin
4779 (method git-fetch)
4780 (uri (git-reference
4781 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
4782 (commit commit)))
9a067efd 4783 (file-name (string-append name "-" version "-checkout"))
2c16316e
RW
4784 (sha256
4785 (base32
9a067efd
RW
4786 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
4787 (modules '((guix build utils)))
4788 (snippet
4789 '(begin
4790 ;; remove bundled Cython sources
4791 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
4792 #t))))
2c16316e
RW
4793 (build-system python-build-system)
4794 (arguments
4795 `(#:python ,python-2
cdc2bb50
MB
4796 ;; FIXME: Tests fail with "No such file or directory:
4797 ;; pbtools/pbtranscript/modified_bx_intervals/intersection_unique.so"
4798 #:tests? #f
2c16316e 4799 #:phases
9a067efd
RW
4800 (modify-phases %standard-phases
4801 (add-after 'unpack 'enter-directory
4802 (lambda _
4803 (chdir "pbtranscript-tofu/pbtranscript/")
4804 #t))
4805 ;; With setuptools version 18.0 and later this setup.py hack causes
4806 ;; a build error, so we disable it.
4807 (add-after 'enter-directory 'patch-setuppy
4808 (lambda _
4809 (substitute* "setup.py"
4810 (("if 'setuptools.extension' in sys.modules:")
4811 "if False:"))
4812 #t)))))
2c16316e 4813 (inputs
9a067efd 4814 `(("python-numpy" ,python2-numpy)
2c16316e 4815 ("python-bx-python" ,python2-bx-python)
c5372108
RW
4816 ("python-networkx" ,python2-networkx)
4817 ("python-scipy" ,python2-scipy)
9a067efd
RW
4818 ("python-pbcore" ,python2-pbcore)
4819 ("python-h5py" ,python2-h5py)))
2c16316e 4820 (native-inputs
9a067efd 4821 `(("python-cython" ,python2-cython)
f3b98f4f 4822 ("python-nose" ,python2-nose)))
2c16316e
RW
4823 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
4824 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
4825 (description
4826 "pbtranscript-tofu contains scripts to analyze transcriptome data
4827generated using the PacBio Iso-Seq protocol.")
4828 (license license:bsd-3))))
4829
024130d2
BW
4830(define-public prank
4831 (package
4832 (name "prank")
4833 (version "150803")
4834 (source (origin
4835 (method url-fetch)
4836 (uri (string-append
4837 "http://wasabiapp.org/download/prank/prank.source."
4838 version ".tgz"))
4839 (sha256
4840 (base32
4841 "0am4z94fs3w2n5xpfls9zda61vq7qqz4q2i7b9hlsxz5q4j3kfm4"))))
4842 (build-system gnu-build-system)
4843 (arguments
4844 `(#:phases
4845 (modify-phases %standard-phases
4846 (add-after 'unpack 'enter-src-dir
4847 (lambda _
4848 (chdir "src")
4849 #t))
62d00095
EF
4850 (add-after 'unpack 'remove-m64-flag
4851 ;; Prank will build with the correct 'bit-ness' without this flag
4852 ;; and this allows building on 32-bit machines.
4853 (lambda _ (substitute* "src/Makefile"
4854 (("-m64") ""))
4855 #t))
024130d2
BW
4856 (delete 'configure)
4857 (replace 'install
4858 (lambda* (#:key outputs #:allow-other-keys)
4859 (let* ((out (assoc-ref outputs "out"))
4860 (bin (string-append out "/bin"))
4861 (man (string-append out "/share/man/man1"))
4862 (path (string-append
4863 (assoc-ref %build-inputs "mafft") "/bin:"
4864 (assoc-ref %build-inputs "exonerate") "/bin:"
4865 (assoc-ref %build-inputs "bppsuite") "/bin")))
4866 (install-file "prank" bin)
4867 (wrap-program (string-append bin "/prank")
4868 `("PATH" ":" prefix (,path)))
4869 (install-file "prank.1" man))
4870 #t)))))
4871 (inputs
4872 `(("mafft" ,mafft)
4873 ("exonerate" ,exonerate)
4874 ("bppsuite" ,bppsuite)))
4875 (home-page "http://wasabiapp.org/software/prank/")
4876 (synopsis "Probabilistic multiple sequence alignment program")
4877 (description
4878 "PRANK is a probabilistic multiple sequence alignment program for DNA,
4879codon and amino-acid sequences. It is based on a novel algorithm that treats
4880insertions correctly and avoids over-estimation of the number of deletion
4881events. In addition, PRANK borrows ideas from maximum likelihood methods used
4882in phylogenetics and correctly takes into account the evolutionary distances
4883between sequences. Lastly, PRANK allows for defining a potential structure
4884for sequences to be aligned and then, simultaneously with the alignment,
4885predicts the locations of structural units in the sequences.")
4886 (license license:gpl2+)))
4887
31a9d653
BW
4888(define-public proteinortho
4889 (package
4890 (name "proteinortho")
8c864901 4891 (version "5.16b")
31a9d653
BW
4892 (source
4893 (origin
4894 (method url-fetch)
4895 (uri
4896 (string-append
4897 "http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v"
4898 version "_src.tar.gz"))
4899 (sha256
4900 (base32
8c864901 4901 "1wl0dawpssqwfjvr651r4wlww8hhjin8nba6xh71ks7sbypx886j"))))
31a9d653
BW
4902 (build-system gnu-build-system)
4903 (arguments
4904 `(#:test-target "test"
4905 #:phases
4906 (modify-phases %standard-phases
4907 (replace 'configure
4908 ;; There is no configure script, so we modify the Makefile directly.
4909 (lambda* (#:key outputs #:allow-other-keys)
4910 (substitute* "Makefile"
4911 (("INSTALLDIR=.*")
4912 (string-append
4913 "INSTALLDIR=" (assoc-ref outputs "out") "/bin\n")))
4914 #t))
4915 (add-before 'install 'make-install-directory
4916 ;; The install directory is not created during 'make install'.
4917 (lambda* (#:key outputs #:allow-other-keys)
4918 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
4919 #t))
4920 (add-after 'install 'wrap-programs
4921 (lambda* (#:key inputs outputs #:allow-other-keys)
4922 (let* ((path (getenv "PATH"))
4923 (out (assoc-ref outputs "out"))
4924 (binary (string-append out "/bin/proteinortho5.pl")))
4925 (wrap-program binary `("PATH" ":" prefix (,path))))
4926 #t)))))
4927 (inputs
4928 `(("perl" ,perl)
4929 ("python" ,python-2)
4930 ("blast+" ,blast+)))
4931 (home-page "http://www.bioinf.uni-leipzig.de/Software/proteinortho")
4932 (synopsis "Detect orthologous genes across species")
4933 (description
4934 "Proteinortho is a tool to detect orthologous genes across different
4935species. For doing so, it compares similarities of given gene sequences and
4936clusters them to find significant groups. The algorithm was designed to handle
4937large-scale data and can be applied to hundreds of species at once.")
4938 (license license:gpl2+)))
4939
846e3409
RW
4940(define-public pyicoteo
4941 (package
4942 (name "pyicoteo")
4943 (version "2.0.7")
4944 (source
4945 (origin
5e242b02
RW
4946 (method git-fetch)
4947 (uri (git-reference
4948 (url "https://bitbucket.org/regulatorygenomicsupf/pyicoteo.git")
4949 (commit (string-append "v" version))))
4950 (file-name (git-file-name name version))
846e3409
RW
4951 (sha256
4952 (base32
5e242b02 4953 "0hz5g8d25lbjy1wpscr490l0lmyvaix893hhax4fxnh1h9w34w8p"))))
846e3409
RW
4954 (build-system python-build-system)
4955 (arguments
4956 `(#:python ,python-2 ; does not work with Python 3
4957 #:tests? #f)) ; there are no tests
4958 (inputs
4959 `(("python2-matplotlib" ,python2-matplotlib)))
4960 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
4961 (synopsis "Analyze high-throughput genetic sequencing data")
4962 (description
4963 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
4964sequencing data. It works with genomic coordinates. There are currently six
4965different command-line tools:
4966
4967@enumerate
4968@item pyicoregion: for generating exploratory regions automatically;
4969@item pyicoenrich: for differential enrichment between two conditions;
4970@item pyicoclip: for calling CLIP-Seq peaks without a control;
4971@item pyicos: for genomic coordinates manipulation;
4972@item pyicoller: for peak calling on punctuated ChIP-Seq;
4973@item pyicount: to count how many reads from N experiment files overlap in a
4974 region file;
4975@item pyicotrocol: to combine operations from pyicoteo.
4976@end enumerate\n")
4977 (license license:gpl3+)))
4978
af860475
BW
4979(define-public prodigal
4980 (package
4981 (name "prodigal")
e70f7a23 4982 (version "2.6.3")
af860475 4983 (source (origin
fff67cc8
RW
4984 (method git-fetch)
4985 (uri (git-reference
4986 (url "https://github.com/hyattpd/Prodigal.git")
4987 (commit (string-append "v" version))))
4988 (file-name (git-file-name name version))
af860475
BW
4989 (sha256
4990 (base32
fff67cc8 4991 "1fs1hqk83qjbjhrvhw6ni75zakx5ki1ayy3v6wwkn3xvahc9hi5s"))))
af860475
BW
4992 (build-system gnu-build-system)
4993 (arguments
4994 `(#:tests? #f ;no check target
4995 #:make-flags (list (string-append "INSTALLDIR="
4996 (assoc-ref %outputs "out")
4997 "/bin"))
4998 #:phases
4999 (modify-phases %standard-phases
5000 (delete 'configure))))
5001 (home-page "http://prodigal.ornl.gov")
5002 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
5003 (description
5004 "Prodigal runs smoothly on finished genomes, draft genomes, and
5005metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
5006format. It runs quickly, in an unsupervised fashion, handles gaps, handles
5007partial genes, and identifies translation initiation sites.")
5008 (license license:gpl3+)))
608dd932 5009
ceb62d54
BW
5010(define-public roary
5011 (package
5012 (name "roary")
dad9556c 5013 (version "3.12.0")
ceb62d54
BW
5014 (source
5015 (origin
5016 (method url-fetch)
5017 (uri (string-append
5018 "mirror://cpan/authors/id/A/AJ/AJPAGE/Bio-Roary-"
5019 version ".tar.gz"))
5020 (sha256
5021 (base32
dad9556c 5022 "0qxrds9wx7cfhlkihrp6697kx0flhhxymap9fwan0b3rbdhcnmff"))))
ceb62d54
BW
5023 (build-system perl-build-system)
5024 (arguments
5025 `(#:phases
5026 (modify-phases %standard-phases
5027 (delete 'configure)
5028 (delete 'build)
5029 (replace 'check
5030 (lambda _
5031 ;; The tests are not run by default, so we run each test file
5032 ;; directly.
5033 (setenv "PATH" (string-append (getcwd) "/bin" ":"
5034 (getenv "PATH")))
5035 (setenv "PERL5LIB" (string-append (getcwd) "/lib" ":"
5036 (getenv "PERL5LIB")))
ce49fdcc
RW
5037 (for-each (lambda (file)
5038 (display file)(display "\n")
5039 (invoke "perl" file))
5040 (find-files "t" ".*\\.t$"))
5041 #t))
ceb62d54
BW
5042 (replace 'install
5043 ;; There is no 'install' target in the Makefile.
5044 (lambda* (#:key outputs #:allow-other-keys)
5045 (let* ((out (assoc-ref outputs "out"))
5046 (bin (string-append out "/bin"))
5047 (perl (string-append out "/lib/perl5/site_perl"))
5048 (roary-plots "contrib/roary_plots"))
5049 (mkdir-p bin)
5050 (mkdir-p perl)
5051 (copy-recursively "bin" bin)
5052 (copy-recursively "lib" perl)
5053 #t)))
5054 (add-after 'install 'wrap-programs
5055 (lambda* (#:key inputs outputs #:allow-other-keys)
5056 (let* ((out (assoc-ref outputs "out"))
5057 (perl5lib (getenv "PERL5LIB"))
5058 (path (getenv "PATH")))
5059 (for-each (lambda (prog)
5060 (let ((binary (string-append out "/" prog)))
5061 (wrap-program binary
5062 `("PERL5LIB" ":" prefix
5063 (,(string-append perl5lib ":" out
5064 "/lib/perl5/site_perl"))))
5065 (wrap-program binary
5066 `("PATH" ":" prefix
5067 (,(string-append path ":" out "/bin"))))))
5068 (find-files "bin" ".*[^R]$"))
5069 (let ((file
5070 (string-append out "/bin/roary-create_pan_genome_plots.R"))
5071 (r-site-lib (getenv "R_LIBS_SITE"))
5072 (coreutils-path
5073 (string-append (assoc-ref inputs "coreutils") "/bin")))
5074 (wrap-program file
5075 `("R_LIBS_SITE" ":" prefix
5076 (,(string-append r-site-lib ":" out "/site-library/"))))
5077 (wrap-program file
5078 `("PATH" ":" prefix
5079 (,(string-append coreutils-path ":" out "/bin"))))))
5080 #t)))))
5081 (native-inputs
5082 `(("perl-env-path" ,perl-env-path)
5083 ("perl-test-files" ,perl-test-files)
5084 ("perl-test-most" ,perl-test-most)
5085 ("perl-test-output" ,perl-test-output)))
5086 (inputs
5087 `(("perl-array-utils" ,perl-array-utils)
5088 ("bioperl" ,bioperl-minimal)
da4a707c 5089 ("perl-digest-md5-file" ,perl-digest-md5-file)
ceb62d54
BW
5090 ("perl-exception-class" ,perl-exception-class)
5091 ("perl-file-find-rule" ,perl-file-find-rule)
5092 ("perl-file-grep" ,perl-file-grep)
5093 ("perl-file-slurper" ,perl-file-slurper)
5094 ("perl-file-which" ,perl-file-which)
5095 ("perl-graph" ,perl-graph)
5096 ("perl-graph-readwrite" ,perl-graph-readwrite)
5097 ("perl-log-log4perl" ,perl-log-log4perl)
5098 ("perl-moose" ,perl-moose)
5099 ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
5100 ("perl-text-csv" ,perl-text-csv)
5101 ("bedtools" ,bedtools)
5102 ("cd-hit" ,cd-hit)
5103 ("blast+" ,blast+)
5104 ("mcl" ,mcl)
5105 ("parallel" ,parallel)
5106 ("prank" ,prank)
5107 ("mafft" ,mafft)
5108 ("fasttree" ,fasttree)
5109 ("grep" ,grep)
5110 ("sed" ,sed)
5111 ("gawk" ,gawk)
2d7c4ae3 5112 ("r-minimal" ,r-minimal)
ceb62d54
BW
5113 ("r-ggplot2" ,r-ggplot2)
5114 ("coreutils" ,coreutils)))
5115 (home-page "http://sanger-pathogens.github.io/Roary")
5116 (synopsis "High speed stand-alone pan genome pipeline")
5117 (description
5118 "Roary is a high speed stand alone pan genome pipeline, which takes
5119annotated assemblies in GFF3 format (produced by the Prokka program) and
5120calculates the pan genome. Using a standard desktop PC, it can analyse
5121datasets with thousands of samples, without compromising the quality of the
5122results. 128 samples can be analysed in under 1 hour using 1 GB of RAM and a
5123single processor. Roary is not intended for metagenomics or for comparing
5124extremely diverse sets of genomes.")
5125 (license license:gpl3)))
5126
608dd932
BW
5127(define-public raxml
5128 (package
5129 (name "raxml")
b9d0c356 5130 (version "8.2.12")
608dd932
BW
5131 (source
5132 (origin
4715d4af
RW
5133 (method git-fetch)
5134 (uri (git-reference
5135 (url "https://github.com/stamatak/standard-RAxML.git")
5136 (commit (string-append "v" version))))
5137 (file-name (git-file-name name version))
608dd932
BW
5138 (sha256
5139 (base32
b9d0c356 5140 "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh"))))
608dd932
BW
5141 (build-system gnu-build-system)
5142 (arguments
5143 `(#:tests? #f ; There are no tests.
5144 ;; Use 'standard' Makefile rather than SSE or AVX ones.
5145 #:make-flags (list "-f" "Makefile.HYBRID.gcc")
5146 #:phases
5147 (modify-phases %standard-phases
5148 (delete 'configure)
5149 (replace 'install
5150 (lambda* (#:key outputs #:allow-other-keys)
5151 (let* ((out (assoc-ref outputs "out"))
5152 (bin (string-append out "/bin"))
5153 (executable "raxmlHPC-HYBRID"))
5154 (install-file executable bin)
5155 (symlink (string-append bin "/" executable) "raxml"))
5156 #t)))))
5157 (inputs
5158 `(("openmpi" ,openmpi)))
5159 (home-page "http://sco.h-its.org/exelixis/web/software/raxml/index.html")
5160 (synopsis "Randomized Axelerated Maximum Likelihood phylogenetic trees")
5161 (description
5162 "RAxML is a tool for phylogenetic analysis and post-analysis of large
5163phylogenies.")
2805f9b2
EF
5164 ;; The source includes x86 specific code
5165 (supported-systems '("x86_64-linux" "i686-linux"))
608dd932 5166 (license license:gpl2+)))
af860475 5167
66e3eff1
RW
5168(define-public rsem
5169 (package
5170 (name "rsem")
89ee8a6e 5171 (version "1.3.1")
66e3eff1
RW
5172 (source
5173 (origin
89ee8a6e
RW
5174 (method git-fetch)
5175 (uri (git-reference
5176 (url "https://github.com/deweylab/RSEM.git")
5177 (commit (string-append "v" version))))
66e3eff1 5178 (sha256
89ee8a6e
RW
5179 (base32 "1jlq11d1p8qp64w75yj8cnbbd1a93viq10pzsbwal7vdn8fg13j1"))
5180 (file-name (git-file-name name version))
66e3eff1
RW
5181 (modules '((guix build utils)))
5182 (snippet
5183 '(begin
89ee8a6e 5184 ;; remove bundled copy of boost and samtools
66e3eff1 5185 (delete-file-recursively "boost")
89ee8a6e 5186 (delete-file-recursively "samtools-1.3")
66e3eff1
RW
5187 #t))))
5188 (build-system gnu-build-system)
5189 (arguments
5190 `(#:tests? #f ;no "check" target
89ee8a6e
RW
5191 #:make-flags
5192 (list (string-append "BOOST="
5193 (assoc-ref %build-inputs "boost")
5194 "/include/")
5195 (string-append "SAMHEADERS="
5196 (assoc-ref %build-inputs "htslib")
5197 "/include/htslib/sam.h")
5198 (string-append "SAMLIBS="
5199 (assoc-ref %build-inputs "htslib")
5200 "/lib/libhts.a"))
66e3eff1
RW
5201 #:phases
5202 (modify-phases %standard-phases
5203 ;; No "configure" script.
5204 ;; Do not build bundled samtools library.
5205 (replace 'configure
89ee8a6e
RW
5206 (lambda _
5207 (substitute* "Makefile"
5208 (("^all : \\$\\(PROGRAMS\\).*") "all: $(PROGRAMS)\n")
5209 (("^\\$\\(SAMLIBS\\).*") ""))
5210 #t))
66e3eff1 5211 (replace 'install
89ee8a6e
RW
5212 (lambda* (#:key outputs #:allow-other-keys)
5213 (let* ((out (string-append (assoc-ref outputs "out")))
5214 (bin (string-append out "/bin/"))
5215 (perl (string-append out "/lib/perl5/site_perl")))
5216 (mkdir-p bin)
5217 (mkdir-p perl)
5218 (for-each (lambda (file)
5219 (install-file file bin))
5220 (find-files "." "rsem-.*"))
5221 (install-file "rsem_perl_utils.pm" perl))
5222 #t))
5223 (add-after 'install 'wrap-program
5224 (lambda* (#:key outputs #:allow-other-keys)
5225 (let ((out (assoc-ref outputs "out")))
5226 (for-each (lambda (prog)
5227 (wrap-program (string-append out "/bin/" prog)
5228 `("PERL5LIB" ":" prefix
5229 (,(string-append out "/lib/perl5/site_perl")))))
5230 '("rsem-calculate-expression"
5231 "rsem-control-fdr"
5232 "rsem-generate-data-matrix"
5233 "rsem-generate-ngvector"
5234 "rsem-plot-transcript-wiggles"
5235 "rsem-prepare-reference"
5236 "rsem-run-ebseq"
5237 "rsem-run-prsem-testing-procedure")))
5238 #t)))))
66e3eff1
RW
5239 (inputs
5240 `(("boost" ,boost)
2d7c4ae3 5241 ("r-minimal" ,r-minimal)
66e3eff1 5242 ("perl" ,perl)
89ee8a6e 5243 ("htslib" ,htslib-1.3)
66e3eff1
RW
5244 ("zlib" ,zlib)))
5245 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
5246 (synopsis "Estimate gene expression levels from RNA-Seq data")
5247 (description
5248 "RSEM is a software package for estimating gene and isoform expression
5249levels from RNA-Seq data. The RSEM package provides a user-friendly
5250interface, supports threads for parallel computation of the EM algorithm,
5251single-end and paired-end read data, quality scores, variable-length reads and
5252RSPD estimation. In addition, it provides posterior mean and 95% credibility
5253interval estimates for expression levels. For visualization, it can generate
5254BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
5255 (license license:gpl3+)))
5256
8622a072
RW
5257(define-public rseqc
5258 (package
5259 (name "rseqc")
5260 (version "2.6.1")
5261 (source
5262 (origin
5263 (method url-fetch)
5264 (uri
5265 (string-append "mirror://sourceforge/rseqc/"
de67e922 5266 "RSeQC-" version ".tar.gz"))
8622a072 5267 (sha256
8214b7fb 5268 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
8622a072
RW
5269 (modules '((guix build utils)))
5270 (snippet
5271 '(begin
5272 ;; remove bundled copy of pysam
5273 (delete-file-recursively "lib/pysam")
5274 (substitute* "setup.py"
5275 ;; remove dependency on outdated "distribute" module
5276 (("^from distribute_setup import use_setuptools") "")
5277 (("^use_setuptools\\(\\)") "")
5278 ;; do not use bundled copy of pysam
6cbee49d
MW
5279 (("^have_pysam = False") "have_pysam = True"))
5280 #t))))
8622a072
RW
5281 (build-system python-build-system)
5282 (arguments `(#:python ,python-2))
5283 (inputs
5284 `(("python-cython" ,python2-cython)
5285 ("python-pysam" ,python2-pysam)
5286 ("python-numpy" ,python2-numpy)
8622a072
RW
5287 ("zlib" ,zlib)))
5288 (native-inputs
5289 `(("python-nose" ,python2-nose)))
5290 (home-page "http://rseqc.sourceforge.net/")
5291 (synopsis "RNA-seq quality control package")
5292 (description
5293 "RSeQC provides a number of modules that can comprehensively evaluate
5294high throughput sequence data, especially RNA-seq data. Some basic modules
5295inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
5296while RNA-seq specific modules evaluate sequencing saturation, mapped reads
5297distribution, coverage uniformity, strand specificity, etc.")
5298 (license license:gpl3+)))
5299
ec946638
RW
5300(define-public seek
5301 ;; There are no release tarballs. According to the installation
5302 ;; instructions at http://seek.princeton.edu/installation.jsp, the latest
5303 ;; stable release is identified by this changeset ID.
5304 (let ((changeset "2329130")
5305 (revision "1"))
5306 (package
5307 (name "seek")
5308 (version (string-append "0-" revision "." changeset))
5309 (source (origin
5310 (method hg-fetch)
5311 (uri (hg-reference
5312 (url "https://bitbucket.org/libsleipnir/sleipnir")
5313 (changeset changeset)))
51106724 5314 (file-name (string-append name "-" version "-checkout"))
ec946638
RW
5315 (sha256
5316 (base32
5317 "0qrvilwh18dpbhkf92qvxbmay0j75ra3jg2wrhz67gf538zzphsx"))))
5318 (build-system gnu-build-system)
5319 (arguments
5320 `(#:modules ((srfi srfi-1)
5321 (guix build gnu-build-system)
5322 (guix build utils))
5323 #:phases
5324 (let ((dirs '("SeekMiner"
5325 "SeekEvaluator"
5326 "SeekPrep"
5327 "Distancer"
5328 "Data2DB"
5329 "PCL2Bin")))
5330 (modify-phases %standard-phases
189be331 5331 (replace 'bootstrap
ec946638 5332 (lambda _
a9542937
RW
5333 (substitute* "gen_tools_am"
5334 (("/usr/bin/env.*") (which "perl")))
5335 (invoke "bash" "gen_auto")
5336 #t))
ec946638
RW
5337 (add-after 'build 'build-additional-tools
5338 (lambda* (#:key make-flags #:allow-other-keys)
a9542937
RW
5339 (for-each (lambda (dir)
5340 (with-directory-excursion (string-append "tools/" dir)
5341 (apply invoke "make" make-flags)))
5342 dirs)
5343 #t))
ec946638
RW
5344 (add-after 'install 'install-additional-tools
5345 (lambda* (#:key make-flags #:allow-other-keys)
a9542937
RW
5346 (for-each (lambda (dir)
5347 (with-directory-excursion (string-append "tools/" dir)
5348 (apply invoke `("make" ,@make-flags "install"))))
5349 dirs)
5350 #t))))))
ec946638
RW
5351 (inputs
5352 `(("gsl" ,gsl)
5353 ("boost" ,boost)
5354 ("libsvm" ,libsvm)
5355 ("readline" ,readline)
5356 ("gengetopt" ,gengetopt)
5357 ("log4cpp" ,log4cpp)))
5358 (native-inputs
5359 `(("autoconf" ,autoconf)
5360 ("automake" ,automake)
5361 ("perl" ,perl)))
5362 (home-page "http://seek.princeton.edu")
5363 (synopsis "Gene co-expression search engine")
5364 (description
5365 "SEEK is a computational gene co-expression search engine. SEEK provides
5366biologists with a way to navigate the massive human expression compendium that
5367now contains thousands of expression datasets. SEEK returns a robust ranking
5368of co-expressed genes in the biological area of interest defined by the user's
5369query genes. It also prioritizes thousands of expression datasets according
5370to the user's query of interest.")
5371 (license license:cc-by3.0))))
5372
4e10a221
RW
5373(define-public samtools
5374 (package
5375 (name "samtools")
4ae4a152 5376 (version "1.9")
4e10a221
RW
5377 (source
5378 (origin
5379 (method url-fetch)
5380 (uri
de67e922 5381 (string-append "mirror://sourceforge/samtools/samtools/"
4e10a221
RW
5382 version "/samtools-" version ".tar.bz2"))
5383 (sha256
5384 (base32
4ae4a152
RW
5385 "10ilqbmm7ri8z431sn90lvbjwizd0hhkf9rcqw8j823hf26nhgq8"))
5386 (modules '((guix build utils)))
5387 (snippet '(begin
5388 ;; Delete bundled htslib.
5389 (delete-file-recursively "htslib-1.9")
5390 #t))))
4e10a221
RW
5391 (build-system gnu-build-system)
5392 (arguments
c4473411 5393 `(#:modules ((ice-9 ftw)
5bdda30b
RW
5394 (ice-9 regex)
5395 (guix build gnu-build-system)
5396 (guix build utils))
4ae4a152 5397 #:configure-flags (list "--with-ncurses")
4e10a221 5398 #:phases
c842d425
BW
5399 (modify-phases %standard-phases
5400 (add-after 'unpack 'patch-tests
5401 (lambda _
5402 (substitute* "test/test.pl"
5403 ;; The test script calls out to /bin/bash
5404 (("/bin/bash") (which "bash")))
b2d748ed 5405 #t))
c842d425
BW
5406 (add-after 'install 'install-library
5407 (lambda* (#:key outputs #:allow-other-keys)
5408 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
5409 (install-file "libbam.a" lib)
5410 #t)))
5411 (add-after 'install 'install-headers
5412 (lambda* (#:key outputs #:allow-other-keys)
5413 (let ((include (string-append (assoc-ref outputs "out")
5414 "/include/samtools/")))
5415 (for-each (lambda (file)
5416 (install-file file include))
5417 (scandir "." (lambda (name) (string-match "\\.h$" name))))
5418 #t))))))
4e10a221 5419 (native-inputs `(("pkg-config" ,pkg-config)))
4ab16440
BW
5420 (inputs
5421 `(("htslib" ,htslib)
5422 ("ncurses" ,ncurses)
5423 ("perl" ,perl)
5424 ("python" ,python)
5425 ("zlib" ,zlib)))
4e10a221
RW
5426 (home-page "http://samtools.sourceforge.net")
5427 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
5428 (description
5429 "Samtools implements various utilities for post-processing nucleotide
5430sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
5431variant calling (in conjunction with bcftools), and a simple alignment
5432viewer.")
5433 (license license:expat)))
d3517eda 5434
0b84a0aa
RW
5435(define-public samtools-0.1
5436 ;; This is the most recent version of the 0.1 line of samtools. The input
5437 ;; and output formats differ greatly from that used and produced by samtools
5438 ;; 1.x and is still used in many bioinformatics pipelines.
5439 (package (inherit samtools)
5440 (version "0.1.19")
5441 (source
5442 (origin
5443 (method url-fetch)
5444 (uri
de67e922 5445 (string-append "mirror://sourceforge/samtools/samtools/"
0b84a0aa
RW
5446 version "/samtools-" version ".tar.bz2"))
5447 (sha256
5448 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
5449 (arguments
2309ed68 5450 `(#:tests? #f ;no "check" target
a6798218
RW
5451 #:make-flags
5452 (list "LIBCURSES=-lncurses")
2309ed68 5453 ,@(substitute-keyword-arguments (package-arguments samtools)
2309ed68
RW
5454 ((#:phases phases)
5455 `(modify-phases ,phases
5456 (replace 'install
5457 (lambda* (#:key outputs #:allow-other-keys)
5458 (let ((bin (string-append
5459 (assoc-ref outputs "out") "/bin")))
5460 (mkdir-p bin)
f3860753 5461 (install-file "samtools" bin)
b2d748ed 5462 #t)))
2309ed68
RW
5463 (delete 'patch-tests)
5464 (delete 'configure))))))))
0b84a0aa 5465
fe4c37c2 5466(define-public mosaik
698bd297 5467 (let ((commit "5c25216d3522d6a33e53875cd76a6d65001e4e67"))
fe4c37c2
RW
5468 (package
5469 (name "mosaik")
5470 (version "2.2.30")
5471 (source (origin
5472 ;; There are no release tarballs nor tags.
5473 (method git-fetch)
5474 (uri (git-reference
5475 (url "https://github.com/wanpinglee/MOSAIK.git")
5476 (commit commit)))
5477 (file-name (string-append name "-" version))
5478 (sha256
5479 (base32
5480 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
5481 (build-system gnu-build-system)
5482 (arguments
5483 `(#:tests? #f ; no tests
5484 #:make-flags (list "CC=gcc")
5485 #:phases
5486 (modify-phases %standard-phases
5487 (replace 'configure
5488 (lambda _ (chdir "src") #t))
5489 (replace 'install
5490 (lambda* (#:key outputs #:allow-other-keys)
5491 (let ((bin (string-append (assoc-ref outputs "out")
5492 "/bin")))
5493 (mkdir-p bin)
5494 (copy-recursively "../bin" bin)
5495 #t))))))
5496 (inputs
5497 `(("perl" ,perl)
f028823c 5498 ("zlib:static" ,zlib "static")
fe4c37c2 5499 ("zlib" ,zlib)))
029d9f77 5500 (supported-systems '("x86_64-linux"))
0c6c9c00 5501 (home-page "https://github.com/wanpinglee/MOSAIK")
fe4c37c2
RW
5502 (synopsis "Map nucleotide sequence reads to reference genomes")
5503 (description
5504 "MOSAIK is a program for mapping second and third-generation sequencing
5505reads to a reference genome. MOSAIK can align reads generated by all the
5506major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
5507Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
5508 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
5509 ;; code released into the public domain:
5510 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
5511 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
5512 (license (list license:gpl2+ license:public-domain)))))
5513
282c5087
RW
5514(define-public ngs-sdk
5515 (package
5516 (name "ngs-sdk")
8d3eaa92 5517 (version "2.9.3")
4031e7f1
RW
5518 (source (origin
5519 (method git-fetch)
5520 (uri (git-reference
5521 (url "https://github.com/ncbi/ngs.git")
5522 (commit version)))
5523 (file-name (git-file-name name version))
5524 (sha256
5525 (base32
8d3eaa92 5526 "17c0v1nah3g3d2ib5bbi0vhma1ghd6vb9xycavqsh64lhp840rk3"))))
282c5087
RW
5527 (build-system gnu-build-system)
5528 (arguments
5529 `(#:parallel-build? #f ; not supported
5530 #:tests? #f ; no "check" target
5531 #:phases
dc1d3cde
KK
5532 (modify-phases %standard-phases
5533 (replace 'configure
5534 (lambda* (#:key outputs #:allow-other-keys)
5535 (let ((out (assoc-ref outputs "out")))
5536 ;; Allow 'konfigure.perl' to find 'package.prl'.
5537 (setenv "PERL5LIB"
5538 (string-append ".:" (getenv "PERL5LIB")))
5539
5540 ;; The 'configure' script doesn't recognize things like
5541 ;; '--enable-fast-install'.
3da3cedf
RW
5542 (invoke "./configure"
5543 (string-append "--build-prefix=" (getcwd) "/build")
5544 (string-append "--prefix=" out))
5545 #t)))
dc1d3cde
KK
5546 (add-after 'unpack 'enter-dir
5547 (lambda _ (chdir "ngs-sdk") #t)))))
282c5087 5548 (native-inputs `(("perl" ,perl)))
a0dadf0c
AE
5549 ;; According to the test
5550 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
5551 ;; in ngs-sdk/setup/konfigure.perl
ab29be81 5552 (supported-systems '("i686-linux" "x86_64-linux"))
282c5087
RW
5553 (home-page "https://github.com/ncbi/ngs")
5554 (synopsis "API for accessing Next Generation Sequencing data")
5555 (description
5556 "NGS is a domain-specific API for accessing reads, alignments and pileups
5557produced from Next Generation Sequencing. The API itself is independent from
5558any particular back-end implementation, and supports use of multiple back-ends
5559simultaneously.")
5560 (license license:public-domain)))
5561
1ad15c16 5562(define-public java-ngs
2651a5e6 5563 (package (inherit ngs-sdk)
1ad15c16 5564 (name "java-ngs")
2651a5e6
RW
5565 (arguments
5566 `(,@(substitute-keyword-arguments
5567 `(#:modules ((guix build gnu-build-system)
5568 (guix build utils)
5569 (srfi srfi-1)
5570 (srfi srfi-26))
5571 ,@(package-arguments ngs-sdk))
5572 ((#:phases phases)
614a8977
RW
5573 `(modify-phases ,phases
5574 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
2651a5e6 5575 (inputs
d2540f80 5576 `(("jdk" ,icedtea "jdk")
2651a5e6
RW
5577 ("ngs-sdk" ,ngs-sdk)))
5578 (synopsis "Java bindings for NGS SDK")))
5579
75dd2424
RW
5580(define-public ncbi-vdb
5581 (package
5582 (name "ncbi-vdb")
87408854 5583 (version "2.9.3")
3398dfb7
RW
5584 (source (origin
5585 (method git-fetch)
5586 (uri (git-reference
5587 (url "https://github.com/ncbi/ncbi-vdb.git")
5588 (commit version)))
5589 (file-name (git-file-name name version))
5590 (sha256
5591 (base32
87408854 5592 "1l4ny67nxwv1lagk9wwjbrgm7ln7adci6dnpc7k1yaln6shj0qpm"))))
75dd2424
RW
5593 (build-system gnu-build-system)
5594 (arguments
5595 `(#:parallel-build? #f ; not supported
5596 #:tests? #f ; no "check" target
5597 #:phases
70111198 5598 (modify-phases %standard-phases
3398dfb7
RW
5599 (add-after 'unpack 'make-files-writable
5600 (lambda _ (for-each make-file-writable (find-files "." ".*")) #t))
0691851a
BW
5601 (add-before 'configure 'set-perl-search-path
5602 (lambda _
5603 ;; Work around "dotless @INC" build failure.
5604 (setenv "PERL5LIB"
5605 (string-append (getcwd) "/setup:"
5606 (getenv "PERL5LIB")))
5607 #t))
70111198
RW
5608 (replace 'configure
5609 (lambda* (#:key inputs outputs #:allow-other-keys)
5610 (let ((out (assoc-ref outputs "out")))
5611 ;; Override include path for libmagic
5612 (substitute* "setup/package.prl"
5613 (("name => 'magic', Include => '/usr/include'")
5614 (string-append "name=> 'magic', Include => '"
5615 (assoc-ref inputs "libmagic")
5616 "/include" "'")))
75dd2424 5617
70111198
RW
5618 ;; Install kdf5 library (needed by sra-tools)
5619 (substitute* "build/Makefile.install"
5620 (("LIBRARIES_TO_INSTALL =")
5621 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
75dd2424 5622
70111198
RW
5623 (substitute* "build/Makefile.env"
5624 (("CFLAGS =" prefix)
5625 (string-append prefix "-msse2 ")))
675d7ae2 5626
558e2307
RW
5627 ;; Override search path for ngs-java
5628 (substitute* "setup/package.prl"
5629 (("/usr/local/ngs/ngs-java")
5630 (assoc-ref inputs "java-ngs")))
5631
70111198
RW
5632 ;; The 'configure' script doesn't recognize things like
5633 ;; '--enable-fast-install'.
6a7d9ee3 5634 (invoke "./configure"
70111198
RW
5635 (string-append "--build-prefix=" (getcwd) "/build")
5636 (string-append "--prefix=" (assoc-ref outputs "out"))
5637 (string-append "--debug")
5638 (string-append "--with-xml2-prefix="
5639 (assoc-ref inputs "libxml2"))
5640 (string-append "--with-ngs-sdk-prefix="
5641 (assoc-ref inputs "ngs-sdk"))
70111198 5642 (string-append "--with-hdf5-prefix="
6a7d9ee3
RW
5643 (assoc-ref inputs "hdf5")))
5644 #t)))
70111198
RW
5645 (add-after 'install 'install-interfaces
5646 (lambda* (#:key outputs #:allow-other-keys)
5647 ;; Install interface libraries. On i686 the interface libraries
5648 ;; are installed to "linux/gcc/i386", so we need to use the Linux
5649 ;; architecture name ("i386") instead of the target system prefix
5650 ;; ("i686").
5651 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
5652 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
5653 ,(system->linux-architecture
5654 (or (%current-target-system)
5655 (%current-system)))
5656 "/rel/ilib")
5657 (string-append (assoc-ref outputs "out")
5658 "/ilib"))
5659 ;; Install interface headers
5660 (copy-recursively "interfaces"
5661 (string-append (assoc-ref outputs "out")
5662 "/include"))
d5e17162
RW
5663 #t))
5664 ;; These files are needed by sra-tools.
5665 (add-after 'install 'install-configuration-files
5666 (lambda* (#:key outputs #:allow-other-keys)
5667 (let ((target (string-append (assoc-ref outputs "out") "/kfg")))
5668 (mkdir target)
5669 (install-file "libs/kfg/default.kfg" target)
5670 (install-file "libs/kfg/certs.kfg" target))
70111198 5671 #t)))))
75dd2424
RW
5672 (inputs
5673 `(("libxml2" ,libxml2)
5674 ("ngs-sdk" ,ngs-sdk)
1ad15c16 5675 ("java-ngs" ,java-ngs)
75dd2424
RW
5676 ("libmagic" ,file)
5677 ("hdf5" ,hdf5)))
5678 (native-inputs `(("perl" ,perl)))
675d7ae2
RW
5679 ;; NCBI-VDB requires SSE capability.
5680 (supported-systems '("i686-linux" "x86_64-linux"))
75dd2424
RW
5681 (home-page "https://github.com/ncbi/ncbi-vdb")
5682 (synopsis "Database engine for genetic information")
5683 (description
5684 "The NCBI-VDB library implements a highly compressed columnar data
5685warehousing engine that is most often used to store genetic information.
5686Databases are stored in a portable image within the file system, and can be
5687accessed/downloaded on demand across HTTP.")
5688 (license license:public-domain)))
5689
cc6ed477
RW
5690(define-public plink
5691 (package
5692 (name "plink")
5693 (version "1.07")
5694 (source
5695 (origin
5696 (method url-fetch)
5697 (uri (string-append
5698 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
5699 version "-src.zip"))
5700 (sha256
5701 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
0dbb7ac2
EF
5702 (patches (search-patches "plink-1.07-unclobber-i.patch"
5703 "plink-endian-detection.patch"))))
cc6ed477
RW
5704 (build-system gnu-build-system)
5705 (arguments
5706 '(#:tests? #f ;no "check" target
5707 #:make-flags (list (string-append "LIB_LAPACK="
5708 (assoc-ref %build-inputs "lapack")
5709 "/lib/liblapack.so")
5710 "WITH_LAPACK=1"
5711 "FORCE_DYNAMIC=1"
5712 ;; disable phoning home
5713 "WITH_WEBCHECK=")
5714 #:phases
5715 (modify-phases %standard-phases
5716 ;; no "configure" script
5717 (delete 'configure)
5718 (replace 'install
5719 (lambda* (#:key outputs #:allow-other-keys)
5720 (let ((bin (string-append (assoc-ref outputs "out")
5721 "/bin/")))
96c46210 5722 (install-file "plink" bin)
cc6ed477
RW
5723 #t))))))
5724 (inputs
5725 `(("zlib" ,zlib)
5726 ("lapack" ,lapack)))
5727 (native-inputs
5728 `(("unzip" ,unzip)))
5729 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
5730 (synopsis "Whole genome association analysis toolset")
5731 (description
5732 "PLINK is a whole genome association analysis toolset, designed to
5733perform a range of basic, large-scale analyses in a computationally efficient
5734manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
5735so there is no support for steps prior to this (e.g. study design and
5736planning, generating genotype or CNV calls from raw data). Through
5737integration with gPLINK and Haploview, there is some support for the
5738subsequent visualization, annotation and storage of results.")
5739 ;; Code is released under GPLv2, except for fisher.h, which is under
5740 ;; LGPLv2.1+
5741 (license (list license:gpl2 license:lgpl2.1+))))
5742
dad66da4
RW
5743(define-public plink-ng
5744 (package (inherit plink)
5745 (name "plink-ng")
5746 (version "1.90b4")
5747 (source
5748 (origin
b1733341
RW
5749 (method git-fetch)
5750 (uri (git-reference
5751 (url "https://github.com/chrchang/plink-ng.git")
5752 (commit (string-append "v" version))))
5753 (file-name (git-file-name name version))
dad66da4 5754 (sha256
b1733341 5755 (base32 "02npdwgkpfkdnhw819rhj5kw02a5k5m90b14zq9zzya4hyg929c0"))))
dad66da4
RW
5756 (build-system gnu-build-system)
5757 (arguments
5758 '(#:tests? #f ;no "check" target
5759 #:make-flags (list "BLASFLAGS=-llapack -lopenblas"
5760 "CFLAGS=-Wall -O2 -DDYNAMIC_ZLIB=1"
5761 "ZLIB=-lz"
5762 "-f" "Makefile.std")
5763 #:phases
5764 (modify-phases %standard-phases
5765 (add-after 'unpack 'chdir
5766 (lambda _ (chdir "1.9") #t))
5767 (delete 'configure) ; no "configure" script
5768 (replace 'install
5769 (lambda* (#:key outputs #:allow-other-keys)
5770 (let ((bin (string-append (assoc-ref outputs "out")
5771 "/bin/")))
5772 (install-file "plink" bin)
5773 #t))))))
5774 (inputs
5775 `(("zlib" ,zlib)
5776 ("lapack" ,lapack)
5777 ("openblas" ,openblas)))
5778 (home-page "https://www.cog-genomics.org/plink/")
5779 (license license:gpl3+)))
5780
c6a24d6e
RW
5781(define-public smithlab-cpp
5782 (let ((revision "1")
698bd297 5783 (commit "728a097bec88c6f4b8528b685932049e660eff2e"))
c6a24d6e
RW
5784 (package
5785 (name "smithlab-cpp")
698bd297 5786 (version (string-append "0." revision "." (string-take commit 7)))
c6a24d6e
RW
5787 (source (origin
5788 (method git-fetch)
5789 (uri (git-reference
5790 (url "https://github.com/smithlabcode/smithlab_cpp.git")
5791 (commit commit)))
5792 (file-name (string-append name "-" version "-checkout"))
5793 (sha256
5794 (base32
5795 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
5796 (build-system gnu-build-system)
5797 (arguments
5798 `(#:modules ((guix build gnu-build-system)
5799 (guix build utils)
5800 (srfi srfi-26))
5801 #:tests? #f ;no "check" target
5802 #:phases
5803 (modify-phases %standard-phases
5804 (add-after 'unpack 'use-samtools-headers
5805 (lambda _
5806 (substitute* '("SAM.cpp"
5807 "SAM.hpp")
5808 (("sam.h") "samtools/sam.h"))
5809 #t))
5810 (replace 'install
5811 (lambda* (#:key outputs #:allow-other-keys)
5812 (let* ((out (assoc-ref outputs "out"))
5813 (lib (string-append out "/lib"))
5814 (include (string-append out "/include/smithlab-cpp")))
5815 (mkdir-p lib)
5816 (mkdir-p include)
5817 (for-each (cut install-file <> lib)
5818 (find-files "." "\\.o$"))
5819 (for-each (cut install-file <> include)
5820 (find-files "." "\\.hpp$")))
5821 #t))
5822 (delete 'configure))))
5823 (inputs
5824 `(("samtools" ,samtools-0.1)
5825 ("zlib" ,zlib)))
5826 (home-page "https://github.com/smithlabcode/smithlab_cpp")
5827 (synopsis "C++ helper library for functions used in Smith lab projects")
5828 (description
5829 "Smithlab CPP is a C++ library that includes functions used in many of
5830the Smith lab bioinformatics projects, such as a wrapper around Samtools data
5831structures, classes for genomic regions, mapped sequencing reads, etc.")
5832 (license license:gpl3+))))
5833
56e373ef
RW
5834(define-public preseq
5835 (package
5836 (name "preseq")
67caa4b7 5837 (version "2.0.3")
56e373ef 5838 (source (origin
67caa4b7
RW
5839 (method url-fetch)
5840 (uri (string-append "https://github.com/smithlabcode/preseq/"
5841 "releases/download/v" version
5842 "/preseq_v" version ".tar.bz2"))
56e373ef 5843 (sha256
67caa4b7 5844 (base32 "149x9xmk1wy1gff85325yfzqc0qk4sgp1w6gbyj9cnji4x1dszbl"))
56e373ef 5845 (modules '((guix build utils)))
6cbee49d
MW
5846 (snippet '(begin
5847 ;; Remove bundled samtools.
5848 (delete-file-recursively "samtools")
5849 #t))))
56e373ef
RW
5850 (build-system gnu-build-system)
5851 (arguments
5852 `(#:tests? #f ;no "check" target
5853 #:phases
5854 (modify-phases %standard-phases
56e373ef 5855 (delete 'configure))
b49c5a58
RW
5856 #:make-flags
5857 (list (string-append "PREFIX="
5858 (assoc-ref %outputs "out"))
5859 (string-append "LIBBAM="
5860 (assoc-ref %build-inputs "samtools")
5861 "/lib/libbam.a")
5862 (string-append "SMITHLAB_CPP="
5863 (assoc-ref %build-inputs "smithlab-cpp")
5864 "/lib")
5865 "PROGS=preseq"
5866 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
56e373ef
RW
5867 (inputs
5868 `(("gsl" ,gsl)
5869 ("samtools" ,samtools-0.1)
b49c5a58 5870 ("smithlab-cpp" ,smithlab-cpp)
56e373ef
RW
5871 ("zlib" ,zlib)))
5872 (home-page "http://smithlabresearch.org/software/preseq/")
5873 (synopsis "Program for analyzing library complexity")
5874 (description
5875 "The preseq package is aimed at predicting and estimating the complexity
5876of a genomic sequencing library, equivalent to predicting and estimating the
5877number of redundant reads from a given sequencing depth and how many will be
5878expected from additional sequencing using an initial sequencing experiment.
5879The estimates can then be used to examine the utility of further sequencing,
5880optimize the sequencing depth, or to screen multiple libraries to avoid low
5881complexity samples.")
5882 (license license:gpl3+)))
5883
9ded1457
BW
5884(define-public python-screed
5885 (package
5886 (name "python-screed")
50e33c3a 5887 (version "1.0")
9ded1457
BW
5888 (source
5889 (origin
5890 (method url-fetch)
5891 (uri (pypi-uri "screed" version))
5892 (sha256
5893 (base32
50e33c3a 5894 "148vcb7w2wr6a4w6vs2bsxanbqibxfk490zbcbg4m61s8669zdjx"))))
9ded1457
BW
5895 (build-system python-build-system)
5896 (arguments
50e33c3a 5897 '(#:phases
9ded1457 5898 (modify-phases %standard-phases
50e33c3a
RW
5899 ;; Tests must be run after installation, as the "screed" command does
5900 ;; not exist right after building.
5901 (delete 'check)
5902 (add-after 'install 'check
5903 (lambda* (#:key inputs outputs #:allow-other-keys)
5904 (let ((out (assoc-ref outputs "out")))
5905 (setenv "PYTHONPATH"
5906 (string-append out "/lib/python"
5907 (string-take (string-take-right
5908 (assoc-ref inputs "python")
5909 5) 3)
5910 "/site-packages:"
5911 (getenv "PYTHONPATH")))
5912 (setenv "PATH" (string-append out "/bin:" (getenv "PATH"))))
5913 (invoke "python" "setup.py" "test")
5914 #t)))))
9ded1457 5915 (native-inputs
50e33c3a
RW
5916 `(("python-pytest" ,python-pytest)
5917 ("python-pytest-cov" ,python-pytest-cov)
5918 ("python-pytest-runner" ,python-pytest-runner)))
9ded1457
BW
5919 (inputs
5920 `(("python-bz2file" ,python-bz2file)))
7bf837fd 5921 (home-page "https://github.com/dib-lab/screed/")
9ded1457
BW
5922 (synopsis "Short read sequence database utilities")
5923 (description "Screed parses FASTA and FASTQ files and generates databases.
5924Values such as sequence name, sequence description, sequence quality and the
5925sequence itself can be retrieved from these databases.")
5926 (license license:bsd-3)))
5927
5928(define-public python2-screed
5c31f4aa 5929 (package-with-python2 python-screed))
9ded1457 5930
51c64999
RW
5931(define-public sra-tools
5932 (package
5933 (name "sra-tools")
15c96094 5934 (version "2.9.3")
51c64999
RW
5935 (source
5936 (origin
2b773a92
RW
5937 (method git-fetch)
5938 (uri (git-reference
5939 (url "https://github.com/ncbi/sra-tools.git")
5940 (commit version)))
5941 (file-name (git-file-name name version))
51c64999
RW
5942 (sha256
5943 (base32
15c96094 5944 "0663gcdxkziwsmlznjxysb00621rllpbz6jwsfifq7z3dj3lwm8b"))))
51c64999
RW
5945 (build-system gnu-build-system)
5946 (arguments
5947 `(#:parallel-build? #f ; not supported
5948 #:tests? #f ; no "check" target
2320e76b 5949 #:make-flags
79849358
RW
5950 (list (string-append "DEFAULT_CRT="
5951 (assoc-ref %build-inputs "ncbi-vdb")
5952 "/kfg/certs.kfg")
5953 (string-append "DEFAULT_KFG="
5954 (assoc-ref %build-inputs "ncbi-vdb")
5955 "/kfg/default.kfg")
5956 (string-append "VDB_LIBDIR="
2320e76b
RW
5957 (assoc-ref %build-inputs "ncbi-vdb")
5958 ,(if (string-prefix? "x86_64"
5959 (or (%current-target-system)
5960 (%current-system)))
5961 "/lib64"
5962 "/lib32")))
51c64999 5963 #:phases
beebe431 5964 (modify-phases %standard-phases
0691851a
BW
5965 (add-before 'configure 'set-perl-search-path
5966 (lambda _
5967 ;; Work around "dotless @INC" build failure.
5968 (setenv "PERL5LIB"
5969 (string-append (getcwd) "/setup:"
5970 (getenv "PERL5LIB")))
5971 #t))
beebe431
RW
5972 (replace 'configure
5973 (lambda* (#:key inputs outputs #:allow-other-keys)
5974 ;; The build system expects a directory containing the sources and
5975 ;; raw build output of ncbi-vdb, including files that are not
5976 ;; installed. Since we are building against an installed version of
5977 ;; ncbi-vdb, the following modifications are needed.
5978 (substitute* "setup/konfigure.perl"
5979 ;; Make the configure script look for the "ilib" directory of
5980 ;; "ncbi-vdb" without first checking for the existence of a
5981 ;; matching library in its "lib" directory.
5982 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
5983 "my $f = File::Spec->catdir($ilibdir, $ilib);")
5984 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
5985 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
5986 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
51c64999 5987
beebe431
RW
5988 ;; Dynamic linking
5989 (substitute* "tools/copycat/Makefile"
5990 (("smagic-static") "lmagic"))
2320e76b 5991
beebe431
RW
5992 ;; The 'configure' script doesn't recognize things like
5993 ;; '--enable-fast-install'.
2e2d8853 5994 (invoke "./configure"
beebe431
RW
5995 (string-append "--build-prefix=" (getcwd) "/build")
5996 (string-append "--prefix=" (assoc-ref outputs "out"))
5997 (string-append "--debug")
5998 (string-append "--with-fuse-prefix="
5999 (assoc-ref inputs "fuse"))
6000 (string-append "--with-magic-prefix="
6001 (assoc-ref inputs "libmagic"))
6002 ;; TODO: building with libxml2 fails with linker errors
6003 ;; (string-append "--with-xml2-prefix="
6004 ;; (assoc-ref inputs "libxml2"))
6005 (string-append "--with-ncbi-vdb-sources="
6006 (assoc-ref inputs "ncbi-vdb"))
6007 (string-append "--with-ncbi-vdb-build="
6008 (assoc-ref inputs "ncbi-vdb"))
6009 (string-append "--with-ngs-sdk-prefix="
6010 (assoc-ref inputs "ngs-sdk"))
6011 (string-append "--with-hdf5-prefix="
2e2d8853 6012 (assoc-ref inputs "hdf5")))
1108a920 6013 #t)))))
51c64999
RW
6014 (native-inputs `(("perl" ,perl)))
6015 (inputs
6016 `(("ngs-sdk" ,ngs-sdk)
6017 ("ncbi-vdb" ,ncbi-vdb)
6018 ("libmagic" ,file)
6019 ("fuse" ,fuse)
6020 ("hdf5" ,hdf5)
6021 ("zlib" ,zlib)))
6022 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
6023 (synopsis "Tools and libraries for reading and writing sequencing data")
6024 (description
6025 "The SRA Toolkit from NCBI is a collection of tools and libraries for
6026reading of sequencing files from the Sequence Read Archive (SRA) database and
6027writing files into the .sra format.")
6028 (license license:public-domain)))
6029
d3517eda
RW
6030(define-public seqan
6031 (package
6032 (name "seqan")
4d93a9a3 6033 (version "2.4.0")
d3517eda
RW
6034 (source (origin
6035 (method url-fetch)
4d93a9a3
RW
6036 (uri (string-append "https://github.com/seqan/seqan/releases/"
6037 "download/seqan-v" version
6038 "/seqan-library-" version ".tar.xz"))
d3517eda
RW
6039 (sha256
6040 (base32
4d93a9a3 6041 "19a1rlxx03qy1i1iriicly68w64yjxbv24g9gdywnfmq998v35yx"))))
d3517eda
RW
6042 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6043 ;; makes sense to split the outputs.
6044 (outputs '("out" "doc"))
6045 (build-system trivial-build-system)
6046 (arguments
6047 `(#:modules ((guix build utils))
6048 #:builder
6049 (begin
6050 (use-modules (guix build utils))
4d93a9a3
RW
6051 (let ((tar (assoc-ref %build-inputs "tar"))
6052 (xz (assoc-ref %build-inputs "xz"))
6053 (out (assoc-ref %outputs "out"))
6054 (doc (assoc-ref %outputs "doc")))
6055 (setenv "PATH" (string-append tar "/bin:" xz "/bin"))
e3cfef22 6056 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
d3517eda
RW
6057 (chdir (string-append "seqan-library-" ,version))
6058 (copy-recursively "include" (string-append out "/include"))
e3cfef22
MW
6059 (copy-recursively "share" (string-append doc "/share"))
6060 #t))))
d3517eda
RW
6061 (native-inputs
6062 `(("source" ,source)
6063 ("tar" ,tar)
4d93a9a3 6064 ("xz" ,xz)))
d3517eda
RW
6065 (home-page "http://www.seqan.de")
6066 (synopsis "Library for nucleotide sequence analysis")
6067 (description
6068 "SeqAn is a C++ library of efficient algorithms and data structures for
6069the analysis of sequences with the focus on biological data. It contains
6070algorithms and data structures for string representation and their
6071manipulation, online and indexed string search, efficient I/O of
6072bioinformatics file formats, sequence alignment, and more.")
6073 (license license:bsd-3)))
ce7155d5 6074
4d93a9a3
RW
6075(define-public seqan-1
6076 (package (inherit seqan)
6077 (name "seqan")
6078 (version "1.4.2")
6079 (source (origin
6080 (method url-fetch)
6081 (uri (string-append "http://packages.seqan.de/seqan-library/"
6082 "seqan-library-" version ".tar.bz2"))
6083 (sha256
6084 (base32
6085 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
6086 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
6087 ;; makes sense to split the outputs.
6088 (outputs '("out" "doc"))
6089 (build-system trivial-build-system)
6090 (arguments
6091 `(#:modules ((guix build utils))
6092 #:builder
6093 (begin
6094 (use-modules (guix build utils))
6095 (let ((tar (assoc-ref %build-inputs "tar"))
6096 (bzip (assoc-ref %build-inputs "bzip2"))
6097 (out (assoc-ref %outputs "out"))
6098 (doc (assoc-ref %outputs "doc")))
6099 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
6100 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
6101 (chdir (string-append "seqan-library-" ,version))
6102 (copy-recursively "include" (string-append out "/include"))
6103 (copy-recursively "share" (string-append doc "/share"))
6104 #t))))
6105 (native-inputs
6106 `(("source" ,source)
6107 ("tar" ,tar)
6108 ("bzip2" ,bzip2)))))
6109
d708b7a9
BW
6110(define-public seqmagick
6111 (package
6112 (name "seqmagick")
39fb853a 6113 (version "0.7.0")
d708b7a9
BW
6114 (source
6115 (origin
6116 (method url-fetch)
f6e2d86f 6117 (uri (pypi-uri "seqmagick" version))
d708b7a9
BW
6118 (sha256
6119 (base32
39fb853a 6120 "12bfyp8nqi0hd36rmj450aygafp01qy3hkbvlwn3bk39pyjjkgg5"))))
d708b7a9 6121 (build-system python-build-system)
d708b7a9 6122 (inputs
39fb853a 6123 `(("python-biopython" ,python-biopython)))
d708b7a9 6124 (native-inputs
39fb853a 6125 `(("python-nose" ,python-nose)))
7bf837fd 6126 (home-page "https://github.com/fhcrc/seqmagick")
d708b7a9
BW
6127 (synopsis "Tools for converting and modifying sequence files")
6128 (description
6129 "Bioinformaticians often have to convert sequence files between formats
6130and do little manipulations on them, and it's not worth writing scripts for
6131that. Seqmagick is a utility to expose the file format conversion in
6132BioPython in a convenient way. Instead of having a big mess of scripts, there
6133is one that takes arguments.")
6134 (license license:gpl3)))
6135
66daf78c
BW
6136(define-public seqtk
6137 (package
6138 (name "seqtk")
63f3255e 6139 (version "1.3")
66daf78c 6140 (source (origin
019fcdf2
RW
6141 (method git-fetch)
6142 (uri (git-reference
6143 (url "https://github.com/lh3/seqtk.git")
6144 (commit (string-append "v" version))))
6145 (file-name (git-file-name name version))
66daf78c
BW
6146 (sha256
6147 (base32
63f3255e 6148 "1bfzlqa84b5s1qi22blmmw2s8xdyp9h9ydcq22pfjhh5gab3yz6l"))))
66daf78c
BW
6149 (build-system gnu-build-system)
6150 (arguments
6151 `(#:phases
6152 (modify-phases %standard-phases
6153 (delete 'configure)
6154 (replace 'check
6155 ;; There are no tests, so we just run a sanity check.
63f3255e 6156 (lambda _ (invoke "./seqtk" "seq") #t))
66daf78c
BW
6157 (replace 'install
6158 (lambda* (#:key outputs #:allow-other-keys)
6159 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
63f3255e
RW
6160 (install-file "seqtk" bin)
6161 #t))))))
66daf78c
BW
6162 (inputs
6163 `(("zlib" ,zlib)))
6164 (home-page "https://github.com/lh3/seqtk")
6165 (synopsis "Toolkit for processing biological sequences in FASTA/Q format")
6166 (description
6167 "Seqtk is a fast and lightweight tool for processing sequences in the
6168FASTA or FASTQ format. It parses both FASTA and FASTQ files which can be
6169optionally compressed by gzip.")
6170 (license license:expat)))
6171
5f7e17be
BW
6172(define-public snap-aligner
6173 (package
6174 (name "snap-aligner")
6175 (version "1.0beta.18")
6176 (source (origin
e0a8fc85
RW
6177 (method git-fetch)
6178 (uri (git-reference
6179 (url "https://github.com/amplab/snap.git")
6180 (commit (string-append "v" version))))
6181 (file-name (git-file-name name version))
5f7e17be
BW
6182 (sha256
6183 (base32
e0a8fc85 6184 "01w3qq4wm07z73vky0cfwlmrbf50n3w722cxrlzxfi99mnb808d8"))))
5f7e17be
BW
6185 (build-system gnu-build-system)
6186 (arguments
6187 '(#:phases
6188 (modify-phases %standard-phases
6189 (delete 'configure)
e0a8fc85 6190 (replace 'check (lambda _ (invoke "./unit_tests") #t))
5f7e17be
BW
6191 (replace 'install
6192 (lambda* (#:key outputs #:allow-other-keys)
6193 (let* ((out (assoc-ref outputs "out"))
6194 (bin (string-append out "/bin")))
5f7e17be
BW
6195 (install-file "snap-aligner" bin)
6196 (install-file "SNAPCommand" bin)
6197 #t))))))
6198 (native-inputs
6199 `(("zlib" ,zlib)))
6200 (home-page "http://snap.cs.berkeley.edu/")
6201 (synopsis "Short read DNA sequence aligner")
6202 (description
6203 "SNAP is a fast and accurate aligner for short DNA reads. It is
6204optimized for modern read lengths of 100 bases or higher, and takes advantage
6205of these reads to align data quickly through a hash-based indexing scheme.")
3e6fdd5f
EF
6206 ;; 32-bit systems are not supported by the unpatched code.
6207 ;; Following the bug reports https://github.com/amplab/snap/issues/68 and
6208 ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812378 we see that
6209 ;; systems without a lot of memory cannot make good use of this program.
6210 (supported-systems '("x86_64-linux"))
5f7e17be
BW
6211 (license license:asl2.0)))
6212
bcadaf00
BW
6213(define-public sortmerna
6214 (package
6215 (name "sortmerna")
849485f5 6216 (version "2.1b")
bcadaf00
BW
6217 (source
6218 (origin
62365244
RW
6219 (method git-fetch)
6220 (uri (git-reference
6221 (url "https://github.com/biocore/sortmerna.git")
6222 (commit version)))
6223 (file-name (git-file-name name version))
bcadaf00
BW
6224 (sha256
6225 (base32
62365244 6226 "0j3mbz4n25738yijmjbr5r4fyvkgm8v5vn3sshyfvmyqf5q9byqf"))))
bcadaf00
BW
6227 (build-system gnu-build-system)
6228 (outputs '("out" ;for binaries
6229 "db")) ;for sequence databases
6230 (arguments
6231 `(#:phases
6232 (modify-phases %standard-phases
6233 (replace 'install
6234 (lambda* (#:key outputs #:allow-other-keys)
6235 (let* ((out (assoc-ref outputs "out"))
6236 (bin (string-append out "/bin"))
6237 (db (assoc-ref outputs "db"))
6238 (share
6239 (string-append db "/share/sortmerna/rRNA_databases")))
6240 (install-file "sortmerna" bin)
6241 (install-file "indexdb_rna" bin)
6242 (for-each (lambda (file)
6243 (install-file file share))
6244 (find-files "rRNA_databases" ".*fasta"))
6245 #t))))))
849485f5
BW
6246 (inputs
6247 `(("zlib" ,zlib)))
bcadaf00
BW
6248 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
6249 (synopsis "Biological sequence analysis tool for NGS reads")
6250 (description
6251 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
6252and operational taxonomic unit (OTU) picking of next generation
6253sequencing (NGS) reads. The core algorithm is based on approximate seeds and
6254allows for fast and sensitive analyses of nucleotide sequences. The main
6255application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
2324541b
EF
6256 ;; The source includes x86 specific code
6257 (supported-systems '("x86_64-linux" "i686-linux"))
bcadaf00
BW
6258 (license license:lgpl3)))
6259
ce7155d5
RW
6260(define-public star
6261 (package
6262 (name "star")
6df215f8 6263 (version "2.7.0b")
ce7155d5 6264 (source (origin
6d095c4c
RW
6265 (method git-fetch)
6266 (uri (git-reference
6267 (url "https://github.com/alexdobin/STAR.git")
6268 (commit version)))
6269 (file-name (string-append name "-" version "-checkout"))
ce7155d5
RW
6270 (sha256
6271 (base32
6df215f8 6272 "1lih6cbpvnvhyvvswdhy06mwyzvwax96m723378v4z6psqzsh11d"))
ce7155d5
RW
6273 (modules '((guix build utils)))
6274 (snippet
3062d750
RW
6275 '(begin
6276 (substitute* "source/Makefile"
6277 (("/bin/rm") "rm"))
6278 ;; Remove pre-built binaries and bundled htslib sources.
6279 (delete-file-recursively "bin/MacOSX_x86_64")
6280 (delete-file-recursively "bin/Linux_x86_64")
c9e9154e 6281 (delete-file-recursively "bin/Linux_x86_64_static")
3062d750
RW
6282 (delete-file-recursively "source/htslib")
6283 #t))))
ce7155d5
RW
6284 (build-system gnu-build-system)
6285 (arguments
6286 '(#:tests? #f ;no check target
6287 #:make-flags '("STAR")
6288 #:phases
c0266e8d
RW
6289 (modify-phases %standard-phases
6290 (add-after 'unpack 'enter-source-dir
6291 (lambda _ (chdir "source") #t))
625cdc3f
RW
6292 (add-after 'enter-source-dir 'make-reproducible
6293 (lambda _
6294 (substitute* "Makefile"
6295 (("(COMPILATION_TIME_PLACE=\")(.*)(\")" _ pre mid post)
2e0f6905
MW
6296 (string-append pre "Built with Guix" post)))
6297 #t))
6df215f8
RW
6298 ;; See https://github.com/alexdobin/STAR/pull/562
6299 (add-after 'enter-source-dir 'add-missing-header
6300 (lambda _
6301 (substitute* "SoloReadFeature_inputRecords.cpp"
6302 (("#include \"binarySearch2.h\"" h)
6303 (string-append h "\n#include <math.h>")))
6304 #t))
3062d750
RW
6305 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
6306 (lambda _
6307 (substitute* "Makefile"
6308 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
6309 _ prefix) prefix))
6310 (substitute* '("BAMfunctions.cpp"
6311 "signalFromBAM.h"
6312 "bam_cat.h"
6313 "bam_cat.c"
6314 "STAR.cpp"
6315 "bamRemoveDuplicates.cpp")
6316 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
6317 (string-append "#include <" header ">")))
6318 (substitute* "IncludeDefine.h"
6319 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
6320 (string-append "<" header ">")))
6321 #t))
c0266e8d
RW
6322 (replace 'install
6323 (lambda* (#:key outputs #:allow-other-keys)
6324 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6325 (install-file "STAR" bin))
6326 #t))
6327 (delete 'configure))))
ce7155d5 6328 (native-inputs
9fc513ad 6329 `(("xxd" ,xxd)))
ce7155d5 6330 (inputs
3062d750
RW
6331 `(("htslib" ,htslib)
6332 ("zlib" ,zlib)))
ce7155d5
RW
6333 (home-page "https://github.com/alexdobin/STAR")
6334 (synopsis "Universal RNA-seq aligner")
6335 (description
6336 "The Spliced Transcripts Alignment to a Reference (STAR) software is
6337based on a previously undescribed RNA-seq alignment algorithm that uses
6338sequential maximum mappable seed search in uncompressed suffix arrays followed
6339by seed clustering and stitching procedure. In addition to unbiased de novo
6340detection of canonical junctions, STAR can discover non-canonical splices and
6341chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
6342sequences.")
c11f79a4
BW
6343 ;; Only 64-bit systems are supported according to the README.
6344 (supported-systems '("x86_64-linux" "mips64el-linux"))
ce7155d5
RW
6345 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
6346 (license license:gpl3+)))
de07c0db 6347
fdfaba90
RW
6348(define-public starlong
6349 (package (inherit star)
6350 (name "starlong")
6351 (arguments
6352 (substitute-keyword-arguments (package-arguments star)
6353 ((#:make-flags flags)
6354 `(list "STARlong"))
6355 ((#:phases phases)
6356 `(modify-phases ,phases
6357 ;; Allow extra long sequence reads.
6358 (add-after 'unpack 'make-extra-long
6359 (lambda _
6360 (substitute* "source/IncludeDefine.h"
6361 (("(#define DEF_readNameLengthMax ).*" _ match)
6362 (string-append match "900000\n")))
6363 #t))
6364 (replace 'install
6365 (lambda* (#:key outputs #:allow-other-keys)
6366 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6367 (install-file "STARlong" bin))
6368 #t))))))))
6369
dbf4ed7c
RW
6370(define-public subread
6371 (package
6372 (name "subread")
e6debcaf 6373 (version "1.6.0")
dbf4ed7c
RW
6374 (source (origin
6375 (method url-fetch)
de67e922
LF
6376 (uri (string-append "mirror://sourceforge/subread/subread-"
6377 version "/subread-" version "-source.tar.gz"))
dbf4ed7c
RW
6378 (sha256
6379 (base32
e6debcaf 6380 "0ah0n4jx6ksk2m2j7xk385x2qzmk1y4rfc6a4mfrdqrlq721w99i"))))
dbf4ed7c
RW
6381 (build-system gnu-build-system)
6382 (arguments
6383 `(#:tests? #f ;no "check" target
104c1986
RW
6384 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
6385 ;; optimizations by default, so we override these flags such that x86_64
6386 ;; flags are only added when the build target is an x86_64 system.
6387 #:make-flags
6388 (list (let ((system ,(or (%current-target-system)
6389 (%current-system)))
6390 (flags '("-ggdb" "-fomit-frame-pointer"
6391 "-ffast-math" "-funroll-loops"
6392 "-fmessage-length=0"
6393 "-O9" "-Wall" "-DMAKE_FOR_EXON"
6394 "-DMAKE_STANDALONE"
6395 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
6396 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
6397 (if (string-prefix? "x86_64" system)
6398 (string-append "CCFLAGS=" (string-join (append flags flags64)))
6399 (string-append "CCFLAGS=" (string-join flags))))
6400 "-f" "Makefile.Linux"
6401 "CC=gcc ${CCFLAGS}")
dbf4ed7c 6402 #:phases
dc1d3cde
KK
6403 (modify-phases %standard-phases
6404 (add-after 'unpack 'enter-dir
6405 (lambda _ (chdir "src") #t))
6406 (replace 'install
6407 (lambda* (#:key outputs #:allow-other-keys)
6408 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6409 (mkdir-p bin)
2e0f6905
MW
6410 (copy-recursively "../bin" bin))
6411 #t))
dbf4ed7c 6412 ;; no "configure" script
dc1d3cde 6413 (delete 'configure))))
dbf4ed7c
RW
6414 (inputs `(("zlib" ,zlib)))
6415 (home-page "http://bioinf.wehi.edu.au/subread-package/")
6416 (synopsis "Tool kit for processing next-gen sequencing data")
6417 (description
6418 "The subread package contains the following tools: subread aligner, a
6419general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
6420and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
6421features; exactSNP: a SNP caller that discovers SNPs by testing signals
6422against local background noises.")
6423 (license license:gpl3+)))
6424
d15d981e
RW
6425(define-public stringtie
6426 (package
6427 (name "stringtie")
6428 (version "1.2.1")
6429 (source (origin
6430 (method url-fetch)
6431 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
6432 "stringtie-" version ".tar.gz"))
6433 (sha256
6434 (base32
6435 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
6436 (modules '((guix build utils)))
6437 (snippet
6438 '(begin
6439 (delete-file-recursively "samtools-0.1.18")
6440 #t))))
6441 (build-system gnu-build-system)
6442 (arguments
6443 `(#:tests? #f ;no test suite
6444 #:phases
6445 (modify-phases %standard-phases
6446 ;; no configure script
6447 (delete 'configure)
6448 (add-before 'build 'use-system-samtools
6449 (lambda _
6450 (substitute* "Makefile"
6451 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
6452 "stringtie: "))
6453 (substitute* '("gclib/GBam.h"
6454 "gclib/GBam.cpp")
6455 (("#include \"(bam|sam|kstring).h\"" _ header)
6456 (string-append "#include <samtools/" header ".h>")))
6457 #t))
0d2c0562
RW
6458 (add-after 'unpack 'remove-duplicate-typedef
6459 (lambda _
6460 ;; This typedef conflicts with the typedef in
6461 ;; glibc-2.25/include/bits/types.h
6462 (substitute* "gclib/GThreads.h"
6463 (("typedef long long __intmax_t;") ""))
6464 #t))
d15d981e
RW
6465 (replace 'install
6466 (lambda* (#:key outputs #:allow-other-keys)
6467 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
6468 (install-file "stringtie" bin)
6469 #t))))))
6470 (inputs
6471 `(("samtools" ,samtools-0.1)
6472 ("zlib" ,zlib)))
6473 (home-page "http://ccb.jhu.edu/software/stringtie/")
6474 (synopsis "Transcript assembly and quantification for RNA-Seq data")
6475 (description
6476 "StringTie is a fast and efficient assembler of RNA-Seq sequence
6477alignments into potential transcripts. It uses a novel network flow algorithm
6478as well as an optional de novo assembly step to assemble and quantitate
6479full-length transcripts representing multiple splice variants for each gene
6480locus. Its input can include not only the alignments of raw reads used by
6481other transcript assemblers, but also alignments of longer sequences that have
6482been assembled from those reads. To identify differentially expressed genes
6483between experiments, StringTie's output can be processed either by the
6484Cuffdiff or Ballgown programs.")
6485 (license license:artistic2.0)))
6486
ad0ae297
BW
6487(define-public taxtastic
6488 (package
6489 (name "taxtastic")
d0c75e73 6490 (version "0.8.5")
ad0ae297
BW
6491 (source (origin
6492 (method url-fetch)
3cbfc149 6493 (uri (pypi-uri "taxtastic" version))
ad0ae297
BW
6494 (sha256
6495 (base32
d0c75e73 6496 "03pysw79lsrvz4lwzis88j15067ffqbi4cid5pqhrlxmd6bh8rrk"))))
ad0ae297
BW
6497 (build-system python-build-system)
6498 (arguments
6499 `(#:python ,python-2
6500 #:phases
6501 (modify-phases %standard-phases
6502 (replace 'check
8b685c47 6503 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t)))))
ad0ae297
BW
6504 (propagated-inputs
6505 `(("python-sqlalchemy" ,python2-sqlalchemy)
6506 ("python-decorator" ,python2-decorator)
6507 ("python-biopython" ,python2-biopython)
3f8c82e6
BW
6508 ("python-pandas" ,python2-pandas)
6509 ("python-psycopg2" ,python2-psycopg2)
6510 ("python-fastalite" ,python2-fastalite)
6511 ("python-pyyaml" ,python2-pyyaml)
6512 ("python-six" ,python2-six)
6513 ("python-jinja2" ,python2-jinja2)
6514 ("python-dendropy" ,python2-dendropy)))
ad0ae297
BW
6515 (home-page "https://github.com/fhcrc/taxtastic")
6516 (synopsis "Tools for taxonomic naming and annotation")
6517 (description
6518 "Taxtastic is software written in python used to build and maintain
6519reference packages i.e. collections of reference trees, reference alignments,
6520profiles, and associated taxonomic information.")
6521 (license license:gpl3+)))
6522
de07c0db
RW
6523(define-public vcftools
6524 (package
6525 (name "vcftools")
f4322542 6526 (version "0.1.15")
de07c0db
RW
6527 (source (origin
6528 (method url-fetch)
6529 (uri (string-append
9b36e256
RJ
6530 "https://github.com/vcftools/vcftools/releases/download/v"
6531 version "/vcftools-" version ".tar.gz"))
de07c0db
RW
6532 (sha256
6533 (base32
f4322542 6534 "1qw30c45wihgy632rbz4rh3njnwj4msj46l1rsgdhyg6bgypmr1i"))))
de07c0db
RW
6535 (build-system gnu-build-system)
6536 (arguments
6537 `(#:tests? #f ; no "check" target
6538 #:make-flags (list
7c3958e1 6539 "CFLAGS=-O2" ; override "-m64" flag
de07c0db
RW
6540 (string-append "PREFIX=" (assoc-ref %outputs "out"))
6541 (string-append "MANDIR=" (assoc-ref %outputs "out")
9b36e256
RJ
6542 "/share/man/man1"))))
6543 (native-inputs
6544 `(("pkg-config" ,pkg-config)))
de07c0db
RW
6545 (inputs
6546 `(("perl" ,perl)
6547 ("zlib" ,zlib)))
9b36e256 6548 (home-page "https://vcftools.github.io/")
de07c0db
RW
6549 (synopsis "Tools for working with VCF files")
6550 (description
6551 "VCFtools is a program package designed for working with VCF files, such
6552as those generated by the 1000 Genomes Project. The aim of VCFtools is to
6553provide easily accessible methods for working with complex genetic variation
6554data in the form of VCF files.")
6555 ;; The license is declared as LGPLv3 in the README and
9b36e256 6556 ;; at https://vcftools.github.io/license.html
de07c0db 6557 (license license:lgpl3)))
9c38b540 6558
35aa90a1
RW
6559(define-public infernal
6560 (package
6561 (name "infernal")
6562 (version "1.1.2")
6563 (source (origin
6564 (method url-fetch)
6565 (uri (string-append "http://eddylab.org/software/infernal/"
6566 "infernal-" version ".tar.gz"))
6567 (sha256
6568 (base32
6569 "0sr2hiz3qxfwqpz3whxr6n82p3x27336v3f34iqznp10hks2935c"))))
6570 (build-system gnu-build-system)
6571 (native-inputs
6572 `(("perl" ,perl))) ; for tests
6573 (home-page "http://eddylab.org/infernal/")
6574 (synopsis "Inference of RNA alignments")
6575 (description "Infernal (\"INFERence of RNA ALignment\") is a tool for
6576searching DNA sequence databases for RNA structure and sequence similarities.
6577It is an implementation of a special case of profile stochastic context-free
6578grammars called @dfn{covariance models} (CMs). A CM is like a sequence
6579profile, but it scores a combination of sequence consensus and RNA secondary
6580structure consensus, so in many cases, it is more capable of identifying RNA
6581homologs that conserve their secondary structure more than their primary
6582sequence.")
48409ef2
EF
6583 ;; Infernal 1.1.2 requires VMX or SSE capability for parallel instructions.
6584 (supported-systems '("i686-linux" "x86_64-linux"))
35aa90a1
RW
6585 (license license:bsd-3)))
6586
cb66fb10
RW
6587(define-public r-scde
6588 (package
6589 (name "r-scde")
6590 (version "1.99.2")
6591 (source (origin
6592 (method git-fetch)
6593 (uri (git-reference
6594 (url "https://github.com/hms-dbmi/scde.git")
6595 (commit version)))
6596 (file-name (git-file-name name version))
6597 (sha256
6598 (base32
6599 "10na2gyka24mszdxf92wz9h2c13hdf1ww30c68gfsw53lvvhhhxb"))))
6600 (build-system r-build-system)
6601 (propagated-inputs
6602 `(("r-rcpp" ,r-rcpp)
6603 ("r-rcpparmadillo" ,r-rcpparmadillo)
6604 ("r-mgcv" ,r-mgcv)
6605 ("r-rook" ,r-rook)
6606 ("r-rjson" ,r-rjson)
6607 ("r-cairo" ,r-cairo)
6608 ("r-rcolorbrewer" ,r-rcolorbrewer)
6609 ("r-edger" ,r-edger)
6610 ("r-quantreg" ,r-quantreg)
6611 ("r-nnet" ,r-nnet)
6612 ("r-rmtstat" ,r-rmtstat)
6613 ("r-extremes" ,r-extremes)
6614 ("r-pcamethods" ,r-pcamethods)
6615 ("r-biocparallel" ,r-biocparallel)
6616 ("r-flexmix" ,r-flexmix)))
6617 (home-page "https://hms-dbmi.github.io/scde/")
6618 (synopsis "R package for analyzing single-cell RNA-seq data")
6619 (description "The SCDE package implements a set of statistical methods for
6620analyzing single-cell RNA-seq data. SCDE fits individual error models for
6621single-cell RNA-seq measurements. These models can then be used for
6622assessment of differential expression between groups of cells, as well as
6623other types of analysis. The SCDE package also contains the pagoda framework
6624which applies pathway and gene set overdispersion analysis to identify aspects
6625of transcriptional heterogeneity among single cells.")
6626 ;; See https://github.com/hms-dbmi/scde/issues/38
6627 (license license:gpl2)))
6628
b91cfa22
RW
6629(define-public r-centipede
6630 (package
6631 (name "r-centipede")
6632 (version "1.2")
6633 (source (origin
6634 (method url-fetch)
6635 (uri (string-append "http://download.r-forge.r-project.org/"
6636 "src/contrib/CENTIPEDE_" version ".tar.gz"))
6637 (sha256
6638 (base32
6639 "1hsx6qgwr0i67fhy9257zj7s0ppncph2hjgbia5nn6nfmj0ax6l9"))))
6640 (build-system r-build-system)
6641 (home-page "http://centipede.uchicago.edu/")
6642 (synopsis "Predict transcription factor binding sites")
6643 (description
6644 "CENTIPEDE applies a hierarchical Bayesian mixture model to infer regions
6645of the genome that are bound by particular transcription factors. It starts
6646by identifying a set of candidate binding sites, and then aims to classify the
6647sites according to whether each site is bound or not bound by a transcription
6648factor. CENTIPEDE is an unsupervised learning algorithm that discriminates
6649between two different types of motif instances using as much relevant
6650information as possible.")
6651 (license (list license:gpl2+ license:gpl3+))))
6652
2301fd3e
RW
6653(define-public r-genefilter
6654 (package
6655 (name "r-genefilter")
0183163d 6656 (version "1.66.0")
2301fd3e
RW
6657 (source
6658 (origin
6659 (method url-fetch)
6660 (uri (bioconductor-uri "genefilter" version))
6661 (sha256
6662 (base32
0183163d 6663 "1jq7lam4dnbvz55lx93kcl9afl8xfjd6xs374d35m21bkay418kj"))))
2301fd3e
RW
6664 (build-system r-build-system)
6665 (native-inputs
6666 `(("gfortran" ,gfortran)))
6667 (propagated-inputs
6668 `(("r-annotate" ,r-annotate)
6669 ("r-annotationdbi" ,r-annotationdbi)
6670 ("r-biobase" ,r-biobase)
aeb64f3c
RW
6671 ("r-s4vectors" ,r-s4vectors)
6672 ("r-survival" ,r-survival)))
5713bbf1 6673 (home-page "https://bioconductor.org/packages/genefilter")
2301fd3e
RW
6674 (synopsis "Filter genes from high-throughput experiments")
6675 (description
6676 "This package provides basic functions for filtering genes from
6677high-throughput sequencing experiments.")
6678 (license license:artistic2.0)))
6679
ad34f0ac
RW
6680(define-public r-deseq2
6681 (package
6682 (name "r-deseq2")
9a39193d 6683 (version "1.24.0")
ad34f0ac
RW
6684 (source
6685 (origin
6686 (method url-fetch)
6687 (uri (bioconductor-uri "DESeq2" version))
6688 (sha256
6689 (base32
9a39193d 6690 "0fkk326addm2cw688gnmdzsmri5qx8j6ldnr4xin6kjnwicqhlqd"))))
ad34f0ac
RW
6691 (properties `((upstream-name . "DESeq2")))
6692 (build-system r-build-system)
ad34f0ac
RW
6693 (propagated-inputs
6694 `(("r-biobase" ,r-biobase)
6695 ("r-biocgenerics" ,r-biocgenerics)
6696 ("r-biocparallel" ,r-biocparallel)
6697 ("r-genefilter" ,r-genefilter)
6698 ("r-geneplotter" ,r-geneplotter)
6699 ("r-genomicranges" ,r-genomicranges)
6700 ("r-ggplot2" ,r-ggplot2)
6701 ("r-hmisc" ,r-hmisc)
6702 ("r-iranges" ,r-iranges)
6703 ("r-locfit" ,r-locfit)
6704 ("r-rcpp" ,r-rcpp)
6705 ("r-rcpparmadillo" ,r-rcpparmadillo)
6706 ("r-s4vectors" ,r-s4vectors)
6707 ("r-summarizedexperiment" ,r-summarizedexperiment)))
5713bbf1 6708 (home-page "https://bioconductor.org/packages/DESeq2")
ad34f0ac
RW
6709 (synopsis "Differential gene expression analysis")
6710 (description
6711 "This package provides functions to estimate variance-mean dependence in
6712count data from high-throughput nucleotide sequencing assays and test for
6713differential expression based on a model using the negative binomial
6714distribution.")
6715 (license license:lgpl3+)))
6716
86763fdd
RW
6717(define-public r-dexseq
6718 (package
6719 (name "r-dexseq")
0a58282d 6720 (version "1.30.0")
86763fdd
RW
6721 (source
6722 (origin
6723 (method url-fetch)
6724 (uri (bioconductor-uri "DEXSeq" version))
6725 (sha256
6726 (base32
0a58282d 6727 "1b2s0vwm97g0wgm4ms0f4pqkqiqmxscnhg700aybl5vx0m2fa8xm"))))
86763fdd
RW
6728 (properties `((upstream-name . "DEXSeq")))
6729 (build-system r-build-system)
6730 (propagated-inputs
6731 `(("r-annotationdbi" ,r-annotationdbi)
6732 ("r-biobase" ,r-biobase)
6733 ("r-biocgenerics" ,r-biocgenerics)
6734 ("r-biocparallel" ,r-biocparallel)
6735 ("r-biomart" ,r-biomart)
6736 ("r-deseq2" ,r-deseq2)
6737 ("r-genefilter" ,r-genefilter)
6738 ("r-geneplotter" ,r-geneplotter)
6739 ("r-genomicranges" ,r-genomicranges)
6740 ("r-hwriter" ,r-hwriter)
6741 ("r-iranges" ,r-iranges)
6742 ("r-rcolorbrewer" ,r-rcolorbrewer)
6743 ("r-rsamtools" ,r-rsamtools)
6744 ("r-s4vectors" ,r-s4vectors)
6745 ("r-statmod" ,r-statmod)
6746 ("r-stringr" ,r-stringr)
6747 ("r-summarizedexperiment" ,r-summarizedexperiment)))
5713bbf1 6748 (home-page "https://bioconductor.org/packages/DEXSeq")
86763fdd
RW
6749 (synopsis "Inference of differential exon usage in RNA-Seq")
6750 (description
6751 "This package is focused on finding differential exon usage using RNA-seq
6752exon counts between samples with different experimental designs. It provides
6753functions that allows the user to make the necessary statistical tests based
6754on a model that uses the negative binomial distribution to estimate the
6755variance between biological replicates and generalized linear models for
6756testing. The package also provides functions for the visualization and
6757exploration of the results.")
6758 (license license:gpl3+)))
6759
e8163773
RW
6760(define-public r-annotationforge
6761 (package
6762 (name "r-annotationforge")
7f737246 6763 (version "1.26.0")
e8163773
RW
6764 (source
6765 (origin
6766 (method url-fetch)
6767 (uri (bioconductor-uri "AnnotationForge" version))
6768 (sha256
6769 (base32
7f737246 6770 "0m4w8n2711wr28znv646cfc7m5jqlr8friz334zdyjmhg7m2xkb7"))))
e8163773
RW
6771 (properties
6772 `((upstream-name . "AnnotationForge")))
6773 (build-system r-build-system)
6774 (propagated-inputs
6775 `(("r-annotationdbi" ,r-annotationdbi)
6776 ("r-biobase" ,r-biobase)
6777 ("r-biocgenerics" ,r-biocgenerics)
6778 ("r-dbi" ,r-dbi)
55cd914c 6779 ("r-rcurl" ,r-rcurl)
e8163773
RW
6780 ("r-rsqlite" ,r-rsqlite)
6781 ("r-s4vectors" ,r-s4vectors)
6782 ("r-xml" ,r-xml)))
5713bbf1 6783 (home-page "https://bioconductor.org/packages/AnnotationForge")
e8163773
RW
6784 (synopsis "Code for building annotation database packages")
6785 (description
6786 "This package provides code for generating Annotation packages and their
6787databases. Packages produced are intended to be used with AnnotationDbi.")
6788 (license license:artistic2.0)))
6789
cd9e7dc7
RW
6790(define-public r-rbgl
6791 (package
6792 (name "r-rbgl")
aa51a241 6793 (version "1.60.0")
cd9e7dc7
RW
6794 (source
6795 (origin
6796 (method url-fetch)
6797 (uri (bioconductor-uri "RBGL" version))
6798 (sha256
6799 (base32
aa51a241 6800 "06brn9hl6lybx6hdfp1sycwj6wn1bjfi8xyhpy0v122v1z8d5mbz"))))
cd9e7dc7
RW
6801 (properties `((upstream-name . "RBGL")))
6802 (build-system r-build-system)
aa51a241
RW
6803 (propagated-inputs
6804 `(("r-bh" ,r-bh)
6805 ("r-graph" ,r-graph)))
5713bbf1 6806 (home-page "https://www.bioconductor.org/packages/RBGL")
cd9e7dc7
RW
6807 (synopsis "Interface to the Boost graph library")
6808 (description
6809 "This package provides a fairly extensive and comprehensive interface to
6810the graph algorithms contained in the Boost library.")
6811 (license license:artistic2.0)))
6812
ad740ff8
RW
6813(define-public r-gseabase
6814 (package
6815 (name "r-gseabase")
08d2a26d 6816 (version "1.46.0")
ad740ff8
RW
6817 (source
6818 (origin
6819 (method url-fetch)
6820 (uri (bioconductor-uri "GSEABase" version))
6821 (sha256
6822 (base32
08d2a26d 6823 "0vh53xk2prjbdkbr3hwfiflx1gh7ilrqs3j1p3lyd6syy3rn9n83"))))
ad740ff8
RW
6824 (properties `((upstream-name . "GSEABase")))
6825 (build-system r-build-system)
6826 (propagated-inputs
6827 `(("r-annotate" ,r-annotate)
6828 ("r-annotationdbi" ,r-annotationdbi)
6829 ("r-biobase" ,r-biobase)
6830 ("r-biocgenerics" ,r-biocgenerics)
6831 ("r-graph" ,r-graph)
6832 ("r-xml" ,r-xml)))
5713bbf1 6833 (home-page "https://bioconductor.org/packages/GSEABase")
ad740ff8
RW
6834 (synopsis "Gene set enrichment data structures and methods")
6835 (description
6836 "This package provides classes and methods to support @dfn{Gene Set
6837Enrichment Analysis} (GSEA).")
6838 (license license:artistic2.0)))
6839
1a1931f7
RW
6840(define-public r-category
6841 (package
6842 (name "r-category")
4d88dbe6 6843 (version "2.50.0")
1a1931f7
RW
6844 (source
6845 (origin
6846 (method url-fetch)
6847 (uri (bioconductor-uri "Category" version))
6848 (sha256
6849 (base32
4d88dbe6 6850 "1n36xfnwn2np5f0lix9abvv9w6jb25jqz3xzvqzklz9s1af4k6x4"))))
1a1931f7
RW
6851 (properties `((upstream-name . "Category")))
6852 (build-system r-build-system)
6853 (propagated-inputs
6854 `(("r-annotate" ,r-annotate)
6855 ("r-annotationdbi" ,r-annotationdbi)
6856 ("r-biobase" ,r-biobase)
6857 ("r-biocgenerics" ,r-biocgenerics)
6858 ("r-genefilter" ,r-genefilter)
6859 ("r-graph" ,r-graph)
6860 ("r-gseabase" ,r-gseabase)
6861 ("r-matrix" ,r-matrix)
6862 ("r-rbgl" ,r-rbgl)
2404cc42 6863 ("r-dbi" ,r-dbi)))
5713bbf1 6864 (home-page "https://bioconductor.org/packages/Category")
1a1931f7
RW
6865 (synopsis "Category analysis")
6866 (description
6867 "This package provides a collection of tools for performing category
6868analysis.")
6869 (license license:artistic2.0)))
6870
89f40c5e
RW
6871(define-public r-gostats
6872 (package
6873 (name "r-gostats")
fe40f550 6874 (version "2.50.0")
89f40c5e
RW
6875 (source
6876 (origin
6877 (method url-fetch)
6878 (uri (bioconductor-uri "GOstats" version))
6879 (sha256
6880 (base32
fe40f550 6881 "1a95i6awm2a8xv42fg2z3n29fg9z29i45kd80hxf6mvqqgzj80xp"))))
89f40c5e
RW
6882 (properties `((upstream-name . "GOstats")))
6883 (build-system r-build-system)
6884 (propagated-inputs
6885 `(("r-annotate" ,r-annotate)
6886 ("r-annotationdbi" ,r-annotationdbi)
6887 ("r-annotationforge" ,r-annotationforge)
6888 ("r-biobase" ,r-biobase)
6889 ("r-category" ,r-category)
6890 ("r-go-db" ,r-go-db)
6891 ("r-graph" ,r-graph)
eb3f5cc7 6892 ("r-rgraphviz" ,r-rgraphviz)
89f40c5e 6893 ("r-rbgl" ,r-rbgl)))
5713bbf1 6894 (home-page "https://bioconductor.org/packages/GOstats")
89f40c5e
RW
6895 (synopsis "Tools for manipulating GO and microarrays")
6896 (description
6897 "This package provides a set of tools for interacting with GO and
6898microarray data. A variety of basic manipulation tools for graphs, hypothesis
6899testing and other simple calculations.")
6900 (license license:artistic2.0)))
6901
cb99d457
RW
6902(define-public r-shortread
6903 (package
6904 (name "r-shortread")
49f30903 6905 (version "1.42.0")
cb99d457
RW
6906 (source
6907 (origin
6908 (method url-fetch)
6909 (uri (bioconductor-uri "ShortRead" version))
6910 (sha256
6911 (base32
49f30903 6912 "1irqzdgsavjqsq0vva4966qh8qgn7xn9382dmhahm1hxb94qmi59"))))
cb99d457
RW
6913 (properties `((upstream-name . "ShortRead")))
6914 (build-system r-build-system)
6915 (inputs
6916 `(("zlib" ,zlib)))
6917 (propagated-inputs
6918 `(("r-biobase" ,r-biobase)
6919 ("r-biocgenerics" ,r-biocgenerics)
6920 ("r-biocparallel" ,r-biocparallel)
6921 ("r-biostrings" ,r-biostrings)
6922 ("r-genomeinfodb" ,r-genomeinfodb)
6923 ("r-genomicalignments" ,r-genomicalignments)
6924 ("r-genomicranges" ,r-genomicranges)
6925 ("r-hwriter" ,r-hwriter)
6926 ("r-iranges" ,r-iranges)
6927 ("r-lattice" ,r-lattice)
6928 ("r-latticeextra" ,r-latticeextra)
6929 ("r-rsamtools" ,r-rsamtools)
6930 ("r-s4vectors" ,r-s4vectors)
6931 ("r-xvector" ,r-xvector)
6932 ("r-zlibbioc" ,r-zlibbioc)))
5713bbf1 6933 (home-page "https://bioconductor.org/packages/ShortRead")
cb99d457
RW
6934 (synopsis "FASTQ input and manipulation tools")
6935 (description
6936 "This package implements sampling, iteration, and input of FASTQ files.
6937It includes functions for filtering and trimming reads, and for generating a
6938quality assessment report. Data are represented as
6939@code{DNAStringSet}-derived objects, and easily manipulated for a diversity of
6940purposes. The package also contains legacy support for early single-end,
6941ungapped alignment formats.")
6942 (license license:artistic2.0)))
6943
7f903d73
RW
6944(define-public r-systempiper
6945 (package
6946 (name "r-systempiper")
9c1b2b2a 6947 (version "1.16.1")
7f903d73
RW
6948 (source
6949 (origin
6950 (method url-fetch)
6951 (uri (bioconductor-uri "systemPipeR" version))
6952 (sha256
6953 (base32
9c1b2b2a 6954 "0qzydz87rld2nhwzbfgrw5jfgh8maa9y54mjx9c4285m11qj2shq"))))
7f903d73
RW
6955 (properties `((upstream-name . "systemPipeR")))
6956 (build-system r-build-system)
6957 (propagated-inputs
6958 `(("r-annotate" ,r-annotate)
6959 ("r-batchjobs" ,r-batchjobs)
6960 ("r-biocgenerics" ,r-biocgenerics)
6961 ("r-biostrings" ,r-biostrings)
6962 ("r-deseq2" ,r-deseq2)
6963 ("r-edger" ,r-edger)
6964 ("r-genomicfeatures" ,r-genomicfeatures)
6965 ("r-genomicranges" ,r-genomicranges)
6966 ("r-ggplot2" ,r-ggplot2)
6967 ("r-go-db" ,r-go-db)
6968 ("r-gostats" ,r-gostats)
6969 ("r-limma" ,r-limma)
6970 ("r-pheatmap" ,r-pheatmap)
6971 ("r-rjson" ,r-rjson)
6972 ("r-rsamtools" ,r-rsamtools)
6973 ("r-shortread" ,r-shortread)
6974 ("r-summarizedexperiment" ,r-summarizedexperiment)
6975 ("r-variantannotation" ,r-variantannotation)))
6976 (home-page "https://github.com/tgirke/systemPipeR")
6977 (synopsis "Next generation sequencing workflow and reporting environment")
6978 (description
6979 "This R package provides tools for building and running automated
6980end-to-end analysis workflows for a wide range of @dfn{next generation
6981sequence} (NGS) applications such as RNA-Seq, ChIP-Seq, VAR-Seq and Ribo-Seq.
6982Important features include a uniform workflow interface across different NGS
6983applications, automated report generation, and support for running both R and
6984command-line software, such as NGS aligners or peak/variant callers, on local
6985computers or compute clusters. Efficient handling of complex sample sets and
6986experimental designs is facilitated by a consistently implemented sample
6987annotation infrastructure.")
6988 (license license:artistic2.0)))
6989
684f29bd
RW
6990(define-public r-grohmm
6991 (package
6992 (name "r-grohmm")
ce52cab0 6993 (version "1.18.0")
684f29bd
RW
6994 (source
6995 (origin
6996 (method url-fetch)
6997 (uri (bioconductor-uri "groHMM" version))
6998 (sha256
6999 (base32
ce52cab0 7000 "1p368qf8ab1vy8gl2j7rx0l7bvva4m7w06i364rqzs0sdyzlbm3y"))))
684f29bd
RW
7001 (properties `((upstream-name . "groHMM")))
7002 (build-system r-build-system)
7003 (propagated-inputs
7004 `(("r-genomeinfodb" ,r-genomeinfodb)
7005 ("r-genomicalignments" ,r-genomicalignments)
7006 ("r-genomicranges" ,r-genomicranges)
7007 ("r-iranges" ,r-iranges)
aeb64f3c 7008 ("r-mass" ,r-mass)
684f29bd
RW
7009 ("r-rtracklayer" ,r-rtracklayer)
7010 ("r-s4vectors" ,r-s4vectors)))
7011 (home-page "https://github.com/Kraus-Lab/groHMM")
7012 (synopsis "GRO-seq analysis pipeline")
7013 (description
7014 "This package provides a pipeline for the analysis of GRO-seq data.")
7015 (license license:gpl3+)))
7016
a2950fa4
BW
7017(define-public vsearch
7018 (package
7019 (name "vsearch")
86c6928e 7020 (version "2.9.1")
a2950fa4
BW
7021 (source
7022 (origin
273df99d
RW
7023 (method git-fetch)
7024 (uri (git-reference
7025 (url "https://github.com/torognes/vsearch.git")
7026 (commit (string-append "v" version))))
7027 (file-name (git-file-name name version))
a2950fa4
BW
7028 (sha256
7029 (base32
86c6928e 7030 "0vhrpjfdf75ba04b24xknp41790cvcgwl0vgpy7qbzj5xh2521ss"))
206af46f 7031 (patches (search-patches "vsearch-unbundle-cityhash.patch"))
a2950fa4
BW
7032 (snippet
7033 '(begin
206af46f
BW
7034 ;; Remove bundled cityhash sources. The vsearch source is adjusted
7035 ;; for this in the patch.
cf6edaba
BW
7036 (delete-file "src/city.h")
7037 (delete-file "src/citycrc.h")
7038 (delete-file "src/city.cc")
a2950fa4
BW
7039 #t))))
7040 (build-system gnu-build-system)
a2950fa4
BW
7041 (inputs
7042 `(("zlib" ,zlib)
7043 ("bzip2" ,bzip2)
7044 ("cityhash" ,cityhash)))
7045 (native-inputs
7046 `(("autoconf" ,autoconf)
7047 ("automake" ,automake)))
7048 (synopsis "Sequence search tools for metagenomics")
7049 (description
7050 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
7051dereplication, pairwise alignment, shuffling, subsampling, sorting and
7052masking. The tool takes advantage of parallelism in the form of SIMD
7053vectorization as well as multiple threads to perform accurate alignments at
7054high speed. VSEARCH uses an optimal global aligner (full dynamic programming
7055Needleman-Wunsch).")
7056 (home-page "https://github.com/torognes/vsearch")
6f04e515
BW
7057 ;; vsearch uses non-portable SSE intrinsics so building fails on other
7058 ;; platforms.
7059 (supported-systems '("x86_64-linux"))
a2950fa4
BW
7060 ;; Dual licensed; also includes public domain source.
7061 (license (list license:gpl3 license:bsd-2))))
7062
07837874
RW
7063(define-public pardre
7064 (package
7065 (name "pardre")
7922ab8f
BW
7066 ;; The source of 1.1.5 changed in place, so we append "-1" to the version.
7067 (version "1.1.5-1")
07837874
RW
7068 (source
7069 (origin
7070 (method url-fetch)
7071 (uri (string-append "mirror://sourceforge/pardre/ParDRe-rel"
7922ab8f 7072 "1.1.5" ".tar.gz"))
07837874
RW
7073 (sha256
7074 (base32
7922ab8f 7075 "17j73nc0viq4f6qj50nrndsrif5d6b71q8fl87m54psiv0ilns2b"))))
07837874
RW
7076 (build-system gnu-build-system)
7077 (arguments
7078 `(#:tests? #f ; no tests included
7079 #:phases
7080 (modify-phases %standard-phases
7081 (delete 'configure)
7082 (replace 'install
7083 (lambda* (#:key outputs #:allow-other-keys)
7084 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
07837874
RW
7085 (install-file "ParDRe" bin)
7086 #t))))))
7087 (inputs
7088 `(("openmpi" ,openmpi)
7089 ("zlib" ,zlib)))
7090 (synopsis "Parallel tool to remove duplicate DNA reads")
7091 (description
7092 "ParDRe is a parallel tool to remove duplicate genetic sequence reads.
7093Duplicate reads can be seen as identical or nearly identical sequences with
7094some mismatches. This tool lets users avoid the analysis of unnecessary
7095reads, reducing the time of subsequent procedures with the
7096dataset (e.g. assemblies, mappings, etc.). The tool is implemented with MPI
7097in order to exploit the parallel capabilities of multicore clusters. It is
7098faster than multithreaded counterparts (end of 2015) for the same number of
7099cores and, thanks to the message-passing technology, it can be executed on
7100clusters.")
7101 (home-page "https://sourceforge.net/projects/pardre/")
7102 (license license:gpl3+)))
7103
e4a44a6a
BW
7104(define-public ruby-bio-kseq
7105 (package
7106 (name "ruby-bio-kseq")
7107 (version "0.0.2")
7108 (source
7109 (origin
7110 (method url-fetch)
7111 (uri (rubygems-uri "bio-kseq" version))
7112 (sha256
7113 (base32
7114 "1xyaha46khb5jc6wzkbf7040jagac49jbimn0vcrzid0j8jdikrz"))))
7115 (build-system ruby-build-system)
7116 (arguments
7117 `(#:test-target "spec"))
7118 (native-inputs
7119 `(("bundler" ,bundler)
7120 ("ruby-rspec" ,ruby-rspec)
7121 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7122 (inputs
7123 `(("zlib" ,zlib)))
7124 (synopsis "Ruby bindings for the kseq.h FASTA/Q parser")
7125 (description
7126 "@code{Bio::Kseq} provides ruby bindings to the @code{kseq.h} FASTA and
7127FASTQ parsing code. It provides a fast iterator over sequences and their
7128quality scores.")
7129 (home-page "https://github.com/gusevfe/bio-kseq")
7130 (license license:expat)))
7131
9c38b540
PP
7132(define-public bio-locus
7133 (package
7134 (name "bio-locus")
7135 (version "0.0.7")
7136 (source
7137 (origin
7138 (method url-fetch)
7139 (uri (rubygems-uri "bio-locus" version))
7140 (sha256
7141 (base32
7142 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
7143 (build-system ruby-build-system)
7144 (native-inputs
7145 `(("ruby-rspec" ,ruby-rspec)))
7146 (synopsis "Tool for fast querying of genome locations")
7147 (description
7148 "Bio-locus is a tabix-like tool for fast querying of genome
7149locations. Many file formats in bioinformatics contain records that
7150start with a chromosome name and a position for a SNP, or a start-end
7151position for indels. Bio-locus allows users to store this chr+pos or
7152chr+pos+alt information in a database.")
7153 (home-page "https://github.com/pjotrp/bio-locus")
7154 (license license:expat)))
edb15985 7155
b2bddb07
PP
7156(define-public bio-blastxmlparser
7157 (package
7158 (name "bio-blastxmlparser")
7159 (version "2.0.4")
7160 (source (origin
7161 (method url-fetch)
7162 (uri (rubygems-uri "bio-blastxmlparser" version))
7163 (sha256
7164 (base32
7165 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
7166 (build-system ruby-build-system)
7167 (propagated-inputs
7168 `(("ruby-bio-logger" ,ruby-bio-logger)
7169 ("ruby-nokogiri" ,ruby-nokogiri)))
7170 (inputs
7171 `(("ruby-rspec" ,ruby-rspec)))
7172 (synopsis "Fast big data BLAST XML parser and library")
7173 (description
7174 "Very fast parallel big-data BLAST XML file parser which can be used as
7175command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
7176generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
7bf837fd 7177 (home-page "https://github.com/pjotrp/blastxmlparser")
b2bddb07
PP
7178 (license license:expat)))
7179
edb15985
PP
7180(define-public bioruby
7181 (package
7182 (name "bioruby")
357450dc 7183 (version "1.5.2")
edb15985
PP
7184 (source
7185 (origin
7186 (method url-fetch)
7187 (uri (rubygems-uri "bio" version))
7188 (sha256
7189 (base32
357450dc 7190 "1d56amdsjv1mag7m6gv2w0xij8hqx1v5xbdjsix8sp3yp36m7938"))))
edb15985
PP
7191 (build-system ruby-build-system)
7192 (propagated-inputs
7193 `(("ruby-libxml" ,ruby-libxml)))
7194 (native-inputs
7195 `(("which" ,which))) ; required for test phase
7196 (arguments
7197 `(#:phases
7198 (modify-phases %standard-phases
7199 (add-before 'build 'patch-test-command
7200 (lambda _
7201 (substitute* '("test/functional/bio/test_command.rb")
7202 (("/bin/sh") (which "sh")))
7203 (substitute* '("test/functional/bio/test_command.rb")
7204 (("/bin/ls") (which "ls")))
7205 (substitute* '("test/functional/bio/test_command.rb")
7206 (("which") (which "which")))
7207 (substitute* '("test/functional/bio/test_command.rb",
7208 "test/data/command/echoarg2.sh")
7209 (("/bin/echo") (which "echo")))
7210 #t)))))
7211 (synopsis "Ruby library, shell and utilities for bioinformatics")
7212 (description "BioRuby comes with a comprehensive set of Ruby development
7213tools and libraries for bioinformatics and molecular biology. BioRuby has
7214components for sequence analysis, pathway analysis, protein modelling and
7215phylogenetic analysis; it supports many widely used data formats and provides
7216easy access to databases, external programs and public web services, including
7217BLAST, KEGG, GenBank, MEDLINE and GO.")
7218 (home-page "http://bioruby.org/")
7219 ;; Code is released under Ruby license, except for setup
7220 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
7221 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
a5002ae7 7222
eb24341f
RJ
7223(define-public r-biocinstaller
7224 (package
7225 (name "r-biocinstaller")
36d7d823 7226 (version "1.32.1")
eb24341f
RJ
7227 (source (origin
7228 (method url-fetch)
7229 (uri (bioconductor-uri "BiocInstaller" version))
7230 (sha256
7231 (base32
36d7d823 7232 "1s1f9qhyf3mc73ir25x2zlgi9hf45a37lg4z8fbva4i21hqisgsl"))))
eb24341f
RJ
7233 (properties
7234 `((upstream-name . "BiocInstaller")))
7235 (build-system r-build-system)
5713bbf1 7236 (home-page "https://bioconductor.org/packages/BiocInstaller")
eb24341f
RJ
7237 (synopsis "Install Bioconductor packages")
7238 (description "This package is used to install and update R packages from
7239Bioconductor, CRAN, and Github.")
7240 (license license:artistic2.0)))
7241
207ce8fb
RJ
7242(define-public r-biocviews
7243 (package
7244 (name "r-biocviews")
440af648 7245 (version "1.52.0")
207ce8fb
RJ
7246 (source (origin
7247 (method url-fetch)
7248 (uri (bioconductor-uri "biocViews" version))
7249 (sha256
7250 (base32
440af648 7251 "1wc7a953n6qrlh9azzg1q68rk99h3xkbs82wq0yk6h2vb2c5r3zk"))))
207ce8fb
RJ
7252 (properties
7253 `((upstream-name . "biocViews")))
7254 (build-system r-build-system)
7255 (propagated-inputs
7256 `(("r-biobase" ,r-biobase)
7257 ("r-graph" ,r-graph)
7258 ("r-rbgl" ,r-rbgl)
7259 ("r-rcurl" ,r-rcurl)
7260 ("r-xml" ,r-xml)
207ce8fb 7261 ("r-runit" ,r-runit)))
5713bbf1 7262 (home-page "https://bioconductor.org/packages/biocViews")
207ce8fb
RJ
7263 (synopsis "Bioconductor package categorization helper")
7264 (description "The purpose of biocViews is to create HTML pages that
7265categorize packages in a Bioconductor package repository according to keywords,
7266also known as views, in a controlled vocabulary.")
7267 (license license:artistic2.0)))
7268
99df12cd
RJ
7269(define-public r-biocstyle
7270 (package
6087f5ce 7271 (name "r-biocstyle")
e01b72d2 7272 (version "2.12.0")
99df12cd
RJ
7273 (source (origin
7274 (method url-fetch)
7275 (uri (bioconductor-uri "BiocStyle" version))
7276 (sha256
7277 (base32
e01b72d2 7278 "029x8r9rcx6zy0xixdpwxai4jv4ynb161821fzac6z4r8k418398"))))
99df12cd
RJ
7279 (properties
7280 `((upstream-name . "BiocStyle")))
7281 (build-system r-build-system)
3bef24c9 7282 (propagated-inputs
6087f5ce
RW
7283 `(("r-biocmanager" ,r-biocmanager)
7284 ("r-bookdown" ,r-bookdown)
3bef24c9
RJ
7285 ("r-knitr" ,r-knitr)
7286 ("r-rmarkdown" ,r-rmarkdown)
7287 ("r-yaml" ,r-yaml)))
5713bbf1 7288 (home-page "https://bioconductor.org/packages/BiocStyle")
99df12cd
RJ
7289 (synopsis "Bioconductor formatting styles")
7290 (description "This package provides standard formatting styles for
7291Bioconductor PDF and HTML documents. Package vignettes illustrate use and
7292functionality.")
7293 (license license:artistic2.0)))
7294
4644644a
RJ
7295(define-public r-bioccheck
7296 (package
7297 (name "r-bioccheck")
8bdf7d55 7298 (version "1.20.0")
4644644a
RJ
7299 (source (origin
7300 (method url-fetch)
7301 (uri (bioconductor-uri "BiocCheck" version))
7302 (sha256
7303 (base32
8bdf7d55 7304 "1gkw9s6dhdryga9ap5yhvcqg9jsy4cn417ayqk1qiv6fy91fd124"))))
4644644a
RJ
7305 (properties
7306 `((upstream-name . "BiocCheck")))
7307 (build-system r-build-system)
7308 (arguments
7309 '(#:phases
7310 (modify-phases %standard-phases
7311 ;; This package can be used by calling BiocCheck(<package>) from
7312 ;; within R, or by running R CMD BiocCheck <package>. This phase
7313 ;; makes sure the latter works. For this to work, the BiocCheck
7314 ;; script must be somewhere on the PATH (not the R bin directory).
7315 (add-after 'install 'install-bioccheck-subcommand
7316 (lambda* (#:key outputs #:allow-other-keys)
7317 (let* ((out (assoc-ref outputs "out"))
7318 (dest-dir (string-append out "/bin"))
7319 (script-dir
7320 (string-append out "/site-library/BiocCheck/script/")))
7321 (mkdir-p dest-dir)
7322 (symlink (string-append script-dir "/checkBadDeps.R")
7323 (string-append dest-dir "/checkBadDeps.R"))
7324 (symlink (string-append script-dir "/BiocCheck")
7325 (string-append dest-dir "/BiocCheck")))
7326 #t)))))
4644644a 7327 (propagated-inputs
aeb64f3c
RW
7328 `(("r-codetools" ,r-codetools)
7329 ("r-graph" ,r-graph)
4644644a 7330 ("r-httr" ,r-httr)
a127d352 7331 ("r-knitr" ,r-knitr)
4644644a 7332 ("r-optparse" ,r-optparse)
a127d352 7333 ("r-biocmanager" ,r-biocmanager)
7373b416
RW
7334 ("r-biocviews" ,r-biocviews)
7335 ("r-stringdist" ,r-stringdist)))
5713bbf1 7336 (home-page "https://bioconductor.org/packages/BiocCheck")
4644644a
RJ
7337 (synopsis "Executes Bioconductor-specific package checks")
7338 (description "This package contains tools to perform additional quality
7339checks on R packages that are to be submitted to the Bioconductor repository.")
7340 (license license:artistic2.0)))
7341
7485129e
RW
7342(define-public r-s4vectors
7343 (package
7344 (name "r-s4vectors")
192ddab3 7345 (version "0.22.0")
7485129e
RW
7346 (source (origin
7347 (method url-fetch)
7348 (uri (bioconductor-uri "S4Vectors" version))
7349 (sha256
7350 (base32
192ddab3 7351 "1wkqmpy0d0fab9bjfc7i5wh2zng75pg9rn9c1z1lkki7fpwaw2jb"))))
7485129e 7352 (properties
1d216b6e 7353 `((upstream-name . "S4Vectors")))
7485129e
RW
7354 (build-system r-build-system)
7355 (propagated-inputs
7356 `(("r-biocgenerics" ,r-biocgenerics)))
5713bbf1 7357 (home-page "https://bioconductor.org/packages/S4Vectors")
7485129e
RW
7358 (synopsis "S4 implementation of vectors and lists")
7359 (description
7360 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
7361classes and a set of generic functions that extend the semantic of ordinary
7362vectors and lists in R. Package developers can easily implement vector-like
7363or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
7364In addition, a few low-level concrete subclasses of general interest (e.g.
7365@code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
7366S4Vectors package itself.")
7367 (license license:artistic2.0)))
7368
78addcb0
RW
7369(define-public r-iranges
7370 (package
7371 (name "r-iranges")
38142114 7372 (version "2.18.0")
78addcb0
RW
7373 (source (origin
7374 (method url-fetch)
7375 (uri (bioconductor-uri "IRanges" version))
7376 (sha256
7377 (base32
38142114 7378 "0g06y6xlm2q7p7g7phfc8qj14pqpgbb0mkyjzkfgsrwjmzvpwy6m"))))
78addcb0 7379 (properties
1d216b6e 7380 `((upstream-name . "IRanges")))
78addcb0
RW
7381 (build-system r-build-system)
7382 (propagated-inputs
7383 `(("r-biocgenerics" ,r-biocgenerics)
7384 ("r-s4vectors" ,r-s4vectors)))
5713bbf1 7385 (home-page "https://bioconductor.org/packages/IRanges")
78addcb0
RW
7386 (synopsis "Infrastructure for manipulating intervals on sequences")
7387 (description
7388 "This package provides efficient low-level and highly reusable S4 classes
7389for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
7390generally, data that can be organized sequentially (formally defined as
7391@code{Vector} objects), as well as views on these @code{Vector} objects.
7392Efficient list-like classes are also provided for storing big collections of
7393instances of the basic classes. All classes in the package use consistent
7394naming and share the same rich and consistent \"Vector API\" as much as
7395possible.")
7396 (license license:artistic2.0)))
7397
ffef27f3
RJ
7398(define-public r-genomeinfodbdata
7399 (package
7400 (name "r-genomeinfodbdata")
13a57465 7401 (version "1.2.0")
ffef27f3
RJ
7402 (source (origin
7403 (method url-fetch)
90f83099
EF
7404 ;; We cannot use bioconductor-uri here because this tarball is
7405 ;; located under "data/annotation/" instead of "bioc/".
7406 (uri (string-append "https://bioconductor.org/packages/release/"
7407 "data/annotation/src/contrib/GenomeInfoDbData_"
7408 version ".tar.gz"))
ffef27f3
RJ
7409 (sha256
7410 (base32
13a57465 7411 "0di6nlqpsyqf693k2na65ayqldih563x3zfrczpqc5q2hl5kg35c"))))
ffef27f3
RJ
7412 (properties
7413 `((upstream-name . "GenomeInfoDbData")))
7414 (build-system r-build-system)
5713bbf1 7415 (home-page "https://bioconductor.org/packages/GenomeInfoDbData")
ffef27f3
RJ
7416 (synopsis "Species and taxonomy ID look up tables for GenomeInfoDb")
7417 (description "This package contains data for mapping between NCBI taxonomy
7418ID and species. It is used by functions in the GenomeInfoDb package.")
7419 (license license:artistic2.0)))
7420
bf7764b7
RW
7421(define-public r-genomeinfodb
7422 (package
7423 (name "r-genomeinfodb")
6dc05d0a 7424 (version "1.20.0")
bf7764b7
RW
7425 (source (origin
7426 (method url-fetch)
7427 (uri (bioconductor-uri "GenomeInfoDb" version))
7428 (sha256
7429 (base32
6dc05d0a 7430 "0zkhms81b3jz30q7ag81a1mq1rgqg4izyfdvcni68gvn8gm7kdyk"))))
bf7764b7 7431 (properties
1d216b6e 7432 `((upstream-name . "GenomeInfoDb")))
bf7764b7
RW
7433 (build-system r-build-system)
7434 (propagated-inputs
7435 `(("r-biocgenerics" ,r-biocgenerics)
38b99ccc 7436 ("r-genomeinfodbdata" ,r-genomeinfodbdata)
bf7764b7 7437 ("r-iranges" ,r-iranges)
4cd07e48 7438 ("r-rcurl" ,r-rcurl)
bf7764b7 7439 ("r-s4vectors" ,r-s4vectors)))
5713bbf1 7440 (home-page "https://bioconductor.org/packages/GenomeInfoDb")
bf7764b7
RW
7441 (synopsis "Utilities for manipulating chromosome identifiers")
7442 (description
7443 "This package contains data and functions that define and allow
7444translation between different chromosome sequence naming conventions (e.g.,
7445\"chr1\" versus \"1\"), including a function that attempts to place sequence
7446names in their natural, rather than lexicographic, order.")
7447 (license license:artistic2.0)))
7448
744004a3
RJ
7449(define-public r-edger
7450 (package
7451 (name "r-edger")
1e3f53a4 7452 (version "3.26.0")
744004a3
RJ
7453 (source (origin
7454 (method url-fetch)
7455 (uri (bioconductor-uri "edgeR" version))
7456 (sha256
7457 (base32
1e3f53a4 7458 "10zhnybcwacgwcdp5p792njzl4kcafvnnnxbd7mszhxrm1sliqr8"))))
744004a3
RJ
7459 (properties `((upstream-name . "edgeR")))
7460 (build-system r-build-system)
7461 (propagated-inputs
5e48005f 7462 `(("r-limma" ,r-limma)
47055b27 7463 ("r-locfit" ,r-locfit)
010ab2ff 7464 ("r-rcpp" ,r-rcpp)
47055b27 7465 ("r-statmod" ,r-statmod))) ;for estimateDisp
744004a3
RJ
7466 (home-page "http://bioinf.wehi.edu.au/edgeR")
7467 (synopsis "EdgeR does empirical analysis of digital gene expression data")
7468 (description "This package can do differential expression analysis of
7469RNA-seq expression profiles with biological replication. It implements a range
7470of statistical methodology based on the negative binomial distributions,
7471including empirical Bayes estimation, exact tests, generalized linear models
7472and quasi-likelihood tests. It be applied to differential signal analysis of
7473other types of genomic data that produce counts, including ChIP-seq, SAGE and
7474CAGE.")
7475 (license license:gpl2+)))
7476
b669d9c4
RJ
7477(define-public r-variantannotation
7478 (package
7479 (name "r-variantannotation")
0d094ad9 7480 (version "1.30.0")
b669d9c4
RJ
7481 (source (origin
7482 (method url-fetch)
7483 (uri (bioconductor-uri "VariantAnnotation" version))
7484 (sha256
7485 (base32
0d094ad9 7486 "1sd01yv1hnwc16412ilncrrph4gxsr9ds0nqg1czl69fqaixjn1i"))))
b669d9c4
RJ
7487 (properties
7488 `((upstream-name . "VariantAnnotation")))
7489 (inputs
7490 `(("zlib" ,zlib)))
7491 (propagated-inputs
7492 `(("r-annotationdbi" ,r-annotationdbi)
37d96f1d 7493 ("r-biobase" ,r-biobase)
b669d9c4 7494 ("r-biocgenerics" ,r-biocgenerics)
37d96f1d 7495 ("r-biostrings" ,r-biostrings)
b669d9c4
RJ
7496 ("r-bsgenome" ,r-bsgenome)
7497 ("r-dbi" ,r-dbi)
7498 ("r-genomeinfodb" ,r-genomeinfodb)
7499 ("r-genomicfeatures" ,r-genomicfeatures)
7500 ("r-genomicranges" ,r-genomicranges)
37d96f1d 7501 ("r-iranges" ,r-iranges)
b669d9c4 7502 ("r-summarizedexperiment" ,r-summarizedexperiment)
0d094ad9 7503 ("r-rhtslib" ,r-rhtslib)
b669d9c4 7504 ("r-rsamtools" ,r-rsamtools)
37d96f1d
RW
7505 ("r-rtracklayer" ,r-rtracklayer)
7506 ("r-s4vectors" ,r-s4vectors)
7507 ("r-xvector" ,r-xvector)
b669d9c4
RJ
7508 ("r-zlibbioc" ,r-zlibbioc)))
7509 (build-system r-build-system)
7510 (home-page "https://bioconductor.org/packages/VariantAnnotation")
7511 (synopsis "Package for annotation of genetic variants")
7512 (description "This R package can annotate variants, compute amino acid
7513coding changes and predict coding outcomes.")
7514 (license license:artistic2.0)))
7515
7d4224d7
RJ
7516(define-public r-limma
7517 (package
7518 (name "r-limma")
5fadf392 7519 (version "3.40.0")
7d4224d7
RJ
7520 (source (origin
7521 (method url-fetch)
7522 (uri (bioconductor-uri "limma" version))
7523 (sha256
7524 (base32
5fadf392 7525 "03qxn3bs0gxq480vjd26cvhiq7jisw7kpmb3wpkrjk8jnsb10aax"))))
7d4224d7
RJ
7526 (build-system r-build-system)
7527 (home-page "http://bioinf.wehi.edu.au/limma")
7528 (synopsis "Package for linear models for microarray and RNA-seq data")
7529 (description "This package can be used for the analysis of gene expression
7530studies, especially the use of linear models for analysing designed experiments
7531and the assessment of differential expression. The analysis methods apply to
7532different technologies, including microarrays, RNA-seq, and quantitative PCR.")
7533 (license license:gpl2+)))
7534
0e7d5560
RW
7535(define-public r-xvector
7536 (package
7537 (name "r-xvector")
bc0e5bc1 7538 (version "0.24.0")
0e7d5560
RW
7539 (source (origin
7540 (method url-fetch)
7541 (uri (bioconductor-uri "XVector" version))
7542 (sha256
7543 (base32
bc0e5bc1 7544 "12y09pwy86h1za6cmaxs960r7fs0vjzhl0li8jn59vqq9liza1ap"))))
0e7d5560 7545 (properties
1d216b6e 7546 `((upstream-name . "XVector")))
0e7d5560
RW
7547 (build-system r-build-system)
7548 (arguments
7549 `(#:phases
7550 (modify-phases %standard-phases
7551 (add-after 'unpack 'use-system-zlib
7552 (lambda _
7553 (substitute* "DESCRIPTION"
7554 (("zlibbioc, ") ""))
7555 (substitute* "NAMESPACE"
7556 (("import\\(zlibbioc\\)") ""))
7557 #t)))))
7558 (inputs
7559 `(("zlib" ,zlib)))
7560 (propagated-inputs
7561 `(("r-biocgenerics" ,r-biocgenerics)
7562 ("r-iranges" ,r-iranges)
7563 ("r-s4vectors" ,r-s4vectors)))
5713bbf1 7564 (home-page "https://bioconductor.org/packages/XVector")
0e7d5560
RW
7565 (synopsis "Representation and manpulation of external sequences")
7566 (description
7567 "This package provides memory efficient S4 classes for storing sequences
7568\"externally\" (behind an R external pointer, or on disk).")
7569 (license license:artistic2.0)))
7570
e2cd1d0f
RW
7571(define-public r-genomicranges
7572 (package
7573 (name "r-genomicranges")
b35bc56a 7574 (version "1.36.0")
e2cd1d0f
RW
7575 (source (origin
7576 (method url-fetch)
7577 (uri (bioconductor-uri "GenomicRanges" version))
7578 (sha256
7579 (base32
b35bc56a 7580 "1285fr8qjd7d0ixpv7d5imi0n6wzc4k6yia1rkmig71qd2gg556k"))))
e2cd1d0f 7581 (properties
1d216b6e 7582 `((upstream-name . "GenomicRanges")))
e2cd1d0f
RW
7583 (build-system r-build-system)
7584 (propagated-inputs
7585 `(("r-biocgenerics" ,r-biocgenerics)
7586 ("r-genomeinfodb" ,r-genomeinfodb)
92a740af
RW
7587 ("r-iranges" ,r-iranges)
7588 ("r-s4vectors" ,r-s4vectors)
e2cd1d0f 7589 ("r-xvector" ,r-xvector)))
5713bbf1 7590 (home-page "https://bioconductor.org/packages/GenomicRanges")
e2cd1d0f
RW
7591 (synopsis "Representation and manipulation of genomic intervals")
7592 (description
7593 "This package provides tools to efficiently represent and manipulate
7594genomic annotations and alignments is playing a central role when it comes to
7595analyzing high-throughput sequencing data (a.k.a. NGS data). The
7596GenomicRanges package defines general purpose containers for storing and
7597manipulating genomic intervals and variables defined along a genome.")
7598 (license license:artistic2.0)))
7599
555e3399
RW
7600(define-public r-biobase
7601 (package
7602 (name "r-biobase")
4aadfcd2 7603 (version "2.44.0")
555e3399
RW
7604 (source (origin
7605 (method url-fetch)
7606 (uri (bioconductor-uri "Biobase" version))
7607 (sha256
7608 (base32
4aadfcd2 7609 "15yl92niqamx3lmwd11zlk0xniibqnh1gi280iadxicmchi83npc"))))
555e3399
RW
7610 (properties
7611 `((upstream-name . "Biobase")))
7612 (build-system r-build-system)
7613 (propagated-inputs
7614 `(("r-biocgenerics" ,r-biocgenerics)))
5713bbf1 7615 (home-page "https://bioconductor.org/packages/Biobase")
555e3399
RW
7616 (synopsis "Base functions for Bioconductor")
7617 (description
7618 "This package provides functions that are needed by many other packages
7619on Bioconductor or which replace R functions.")
7620 (license license:artistic2.0)))
7621
8b7bce74
RW
7622(define-public r-annotationdbi
7623 (package
7624 (name "r-annotationdbi")
a1b9378a 7625 (version "1.46.0")
8b7bce74
RW
7626 (source (origin
7627 (method url-fetch)
7628 (uri (bioconductor-uri "AnnotationDbi" version))
7629 (sha256
7630 (base32
a1b9378a 7631 "0lfq5668a6sq4kqhxx78hl3jcaqdsaaliiybl9xyya2scdk8c29c"))))
8b7bce74
RW
7632 (properties
7633 `((upstream-name . "AnnotationDbi")))
7634 (build-system r-build-system)
7635 (propagated-inputs
7636 `(("r-biobase" ,r-biobase)
7637 ("r-biocgenerics" ,r-biocgenerics)
7638 ("r-dbi" ,r-dbi)
7639 ("r-iranges" ,r-iranges)
7640 ("r-rsqlite" ,r-rsqlite)
7641 ("r-s4vectors" ,r-s4vectors)))
5713bbf1 7642 (home-page "https://bioconductor.org/packages/AnnotationDbi")
8b7bce74
RW
7643 (synopsis "Annotation database interface")
7644 (description
7645 "This package provides user interface and database connection code for
7646annotation data packages using SQLite data storage.")
7647 (license license:artistic2.0)))
7648
c465fa72
RW
7649(define-public r-biomart
7650 (package
7651 (name "r-biomart")
933571dd 7652 (version "2.40.0")
c465fa72
RW
7653 (source (origin
7654 (method url-fetch)
7655 (uri (bioconductor-uri "biomaRt" version))
7656 (sha256
7657 (base32
933571dd 7658 "1i457s91bn7n60bzw3zk4h64xgmawlrr6bq4z4cb7jlm04hdq8qm"))))
c465fa72
RW
7659 (properties
7660 `((upstream-name . "biomaRt")))
7661 (build-system r-build-system)
7662 (propagated-inputs
7663 `(("r-annotationdbi" ,r-annotationdbi)
b9e8a5c5 7664 ("r-httr" ,r-httr)
42e11d33 7665 ("r-progress" ,r-progress)
c465fa72 7666 ("r-rcurl" ,r-rcurl)
42e11d33 7667 ("r-stringr" ,r-stringr)
c465fa72 7668 ("r-xml" ,r-xml)))
5713bbf1 7669 (home-page "https://bioconductor.org/packages/biomaRt")
c465fa72
RW
7670 (synopsis "Interface to BioMart databases")
7671 (description
7672 "biomaRt provides an interface to a growing collection of databases
7673implementing the @url{BioMart software suite, http://www.biomart.org}. The
7674package enables retrieval of large amounts of data in a uniform way without
7675the need to know the underlying database schemas or write complex SQL queries.
7676Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
7677Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
7678users direct access to a diverse set of data and enable a wide range of
7679powerful online queries from gene annotation to database mining.")
7680 (license license:artistic2.0)))
7681
e91d362e
RW
7682(define-public r-biocparallel
7683 (package
7684 (name "r-biocparallel")
e10b67c7 7685 (version "1.18.0")
e91d362e
RW
7686 (source (origin
7687 (method url-fetch)
7688 (uri (bioconductor-uri "BiocParallel" version))
7689 (sha256
7690 (base32
e10b67c7 7691 "0v8rhf3hbgb3v32h2pmsv1y6q2x4airmpp50fk7z6ardcn4aza7x"))))
e91d362e
RW
7692 (properties
7693 `((upstream-name . "BiocParallel")))
7694 (build-system r-build-system)
7695 (propagated-inputs
7696 `(("r-futile-logger" ,r-futile-logger)
a044c7f4
RW
7697 ("r-snow" ,r-snow)
7698 ("r-bh" ,r-bh)))
5713bbf1 7699 (home-page "https://bioconductor.org/packages/BiocParallel")
e91d362e
RW
7700 (synopsis "Bioconductor facilities for parallel evaluation")
7701 (description
7702 "This package provides modified versions and novel implementation of
7703functions for parallel evaluation, tailored to use with Bioconductor
7704objects.")
7705 (license (list license:gpl2+ license:gpl3+))))
7706
bf159353
RW
7707(define-public r-biostrings
7708 (package
7709 (name "r-biostrings")
d2e16549 7710 (version "2.52.0")
bf159353
RW
7711 (source (origin
7712 (method url-fetch)
7713 (uri (bioconductor-uri "Biostrings" version))
7714 (sha256
7715 (base32
d2e16549 7716 "0inrl97hli3qz6cfxcikc4picmbrqc8phdgqi18ynlvxy5ql64h4"))))
bf159353
RW
7717 (properties
7718 `((upstream-name . "Biostrings")))
7719 (build-system r-build-system)
7720 (propagated-inputs
7721 `(("r-biocgenerics" ,r-biocgenerics)
7722 ("r-iranges" ,r-iranges)
7723 ("r-s4vectors" ,r-s4vectors)
7724 ("r-xvector" ,r-xvector)))
5713bbf1 7725 (home-page "https://bioconductor.org/packages/Biostrings")
bf159353
RW
7726 (synopsis "String objects and algorithms for biological sequences")
7727 (description
7728 "This package provides memory efficient string containers, string
7729matching algorithms, and other utilities, for fast manipulation of large
7730biological sequences or sets of sequences.")
7731 (license license:artistic2.0)))
7732
f8d74f70
RW
7733(define-public r-rsamtools
7734 (package
7735 (name "r-rsamtools")
57f40dc2 7736 (version "1.34.1")
f8d74f70
RW
7737 (source (origin
7738 (method url-fetch)
7739 (uri (bioconductor-uri "Rsamtools" version))
7740 (sha256
7741 (base32
57f40dc2 7742 "02paq7klabdkaf1b8pmmbpmyqsj3yncnfsz62rgka6r4dpsilwk9"))))
f8d74f70
RW
7743 (properties
7744 `((upstream-name . "Rsamtools")))
7745 (build-system r-build-system)
7746 (arguments
7747 `(#:phases
7748 (modify-phases %standard-phases
7749 (add-after 'unpack 'use-system-zlib
7750 (lambda _
7751 (substitute* "DESCRIPTION"
7752 (("zlibbioc, ") ""))
7753 (substitute* "NAMESPACE"
7754 (("import\\(zlibbioc\\)") ""))
7755 #t)))))
7756 (inputs
7757 `(("zlib" ,zlib)))
7758 (propagated-inputs
7759 `(("r-biocgenerics" ,r-biocgenerics)
7760 ("r-biocparallel" ,r-biocparallel)
7761 ("r-biostrings" ,r-biostrings)
7762 ("r-bitops" ,r-bitops)
7763 ("r-genomeinfodb" ,r-genomeinfodb)
7764 ("r-genomicranges" ,r-genomicranges)
7765 ("r-iranges" ,r-iranges)
7766 ("r-s4vectors" ,r-s4vectors)
7767 ("r-xvector" ,r-xvector)))
5713bbf1 7768 (home-page "https://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
f8d74f70
RW
7769 (synopsis "Interface to samtools, bcftools, and tabix")
7770 (description
36a4366d
EF
7771 "This package provides an interface to the @code{samtools},
7772@code{bcftools}, and @code{tabix} utilities for manipulating SAM (Sequence
7773Alignment / Map), FASTA, binary variant call (BCF) and compressed indexed
7774tab-delimited (tabix) files.")
f8d74f70
RW
7775 (license license:expat)))
7776
71e34e6b
RJ
7777(define-public r-delayedarray
7778 (package
7779 (name "r-delayedarray")
14561bb9 7780 (version "0.10.0")
71e34e6b
RJ
7781 (source (origin
7782 (method url-fetch)
7783 (uri (bioconductor-uri "DelayedArray" version))
7784 (sha256
7785 (base32
14561bb9 7786 "0l907ggxndn3f29zvsd5pppmp4c31rb22r6zkhvgph7xdxahyy6z"))))
71e34e6b
RJ
7787 (properties
7788 `((upstream-name . "DelayedArray")))
7789 (build-system r-build-system)
7790 (propagated-inputs
7791 `(("r-biocgenerics" ,r-biocgenerics)
82f593f3 7792 ("r-biocparallel" ,r-biocparallel)
71e34e6b
RJ
7793 ("r-s4vectors" ,r-s4vectors)
7794 ("r-iranges" ,r-iranges)
14561bb9 7795 ("r-matrix" ,r-matrix)
71e34e6b 7796 ("r-matrixstats" ,r-matrixstats)))
5713bbf1 7797 (home-page "https://bioconductor.org/packages/DelayedArray")
71e34e6b
RJ
7798 (synopsis "Delayed operations on array-like objects")
7799 (description
7800 "Wrapping an array-like object (typically an on-disk object) in a
7801@code{DelayedArray} object allows one to perform common array operations on it
7802without loading the object in memory. In order to reduce memory usage and
7803optimize performance, operations on the object are either delayed or executed
7804using a block processing mechanism. Note that this also works on in-memory
7805array-like objects like @code{DataFrame} objects (typically with Rle columns),
7806@code{Matrix} objects, and ordinary arrays and data frames.")
7807 (license license:artistic2.0)))
7808
6e76dda2
RW
7809(define-public r-summarizedexperiment
7810 (package
7811 (name "r-summarizedexperiment")
8671d1e9 7812 (version "1.14.0")
6e76dda2
RW
7813 (source (origin
7814 (method url-fetch)
7815 (uri (bioconductor-uri "SummarizedExperiment" version))
7816 (sha256
7817 (base32
8671d1e9 7818 "1ypk63pdml89y81pr41i2zq0fimsaxsa5lgpg6xs5cwikyaq0pci"))))
6e76dda2
RW
7819 (properties
7820 `((upstream-name . "SummarizedExperiment")))
7821 (build-system r-build-system)
7822 (propagated-inputs
7823 `(("r-biobase" ,r-biobase)
7824 ("r-biocgenerics" ,r-biocgenerics)
d006ee31 7825 ("r-delayedarray" ,r-delayedarray)
6e76dda2
RW
7826 ("r-genomeinfodb" ,r-genomeinfodb)
7827 ("r-genomicranges" ,r-genomicranges)
7828 ("r-iranges" ,r-iranges)
aeb64f3c 7829 ("r-matrix" ,r-matrix)
6e76dda2 7830 ("r-s4vectors" ,r-s4vectors)))
5713bbf1 7831 (home-page "https://bioconductor.org/packages/SummarizedExperiment")
6e76dda2
RW
7832 (synopsis "Container for representing genomic ranges by sample")
7833 (description
7834 "The SummarizedExperiment container contains one or more assays, each
7835represented by a matrix-like object of numeric or other mode. The rows
7836typically represent genomic ranges of interest and the columns represent
7837samples.")
7838 (license license:artistic2.0)))
7839
d8a828af
RW
7840(define-public r-genomicalignments
7841 (package
7842 (name "r-genomicalignments")
6ff69735 7843 (version "1.20.0")
d8a828af
RW
7844 (source (origin
7845 (method url-fetch)
7846 (uri (bioconductor-uri "GenomicAlignments" version))
7847 (sha256
7848 (base32
6ff69735 7849 "13zw7bb1adgph9bf9b9y725nr0320b80y70p2yqf3bjb2klfxf55"))))
d8a828af
RW
7850 (properties
7851 `((upstream-name . "GenomicAlignments")))
7852 (build-system r-build-system)
7853 (propagated-inputs
7854 `(("r-biocgenerics" ,r-biocgenerics)
7855 ("r-biocparallel" ,r-biocparallel)
7856 ("r-biostrings" ,r-biostrings)
7857 ("r-genomeinfodb" ,r-genomeinfodb)
7858 ("r-genomicranges" ,r-genomicranges)
7859 ("r-iranges" ,r-iranges)
7860 ("r-rsamtools" ,r-rsamtools)
7861 ("r-s4vectors" ,r-s4vectors)
7862 ("r-summarizedexperiment" ,r-summarizedexperiment)))
5713bbf1 7863 (home-page "https://bioconductor.org/packages/GenomicAlignments")
d8a828af
RW
7864 (synopsis "Representation and manipulation of short genomic alignments")
7865 (description
7866 "This package provides efficient containers for storing and manipulating
7867short genomic alignments (typically obtained by aligning short reads to a
7868reference genome). This includes read counting, computing the coverage,
7869junction detection, and working with the nucleotide content of the
7870alignments.")
7871 (license license:artistic2.0)))
7872
317755ff
RW
7873(define-public r-rtracklayer
7874 (package
7875 (name "r-rtracklayer")
40d97367 7876 (version "1.44.0")
317755ff
RW
7877 (source (origin
7878 (method url-fetch)
7879 (uri (bioconductor-uri "rtracklayer" version))
7880 (sha256
7881 (base32
40d97367 7882 "161gcks9b12993g9k27gf7wfh8lgd8m8rr7x2slgfqqssk0yrmpd"))))
317755ff
RW
7883 (build-system r-build-system)
7884 (arguments
7885 `(#:phases
7886 (modify-phases %standard-phases
7887 (add-after 'unpack 'use-system-zlib
7888 (lambda _
7889 (substitute* "DESCRIPTION"
4dd469ef 7890 ((" zlibbioc,") ""))
317755ff
RW
7891 (substitute* "NAMESPACE"
7892 (("import\\(zlibbioc\\)") ""))
7893 #t)))))
a30df297
RW
7894 (native-inputs
7895 `(("pkg-config" ,pkg-config)))
317755ff
RW
7896 (inputs
7897 `(("zlib" ,zlib)))
7898 (propagated-inputs
7899 `(("r-biocgenerics" ,r-biocgenerics)
7900 ("r-biostrings" ,r-biostrings)
7901 ("r-genomeinfodb" ,r-genomeinfodb)
7902 ("r-genomicalignments" ,r-genomicalignments)
7903 ("r-genomicranges" ,r-genomicranges)
7904 ("r-iranges" ,r-iranges)
7905 ("r-rcurl" ,r-rcurl)
7906 ("r-rsamtools" ,r-rsamtools)
7907 ("r-s4vectors" ,r-s4vectors)
7908 ("r-xml" ,r-xml)
7909 ("r-xvector" ,r-xvector)))
5713bbf1 7910 (home-page "https://bioconductor.org/packages/rtracklayer")
317755ff
RW
7911 (synopsis "R interface to genome browsers and their annotation tracks")
7912 (description
7913 "rtracklayer is an extensible framework for interacting with multiple
7914genome browsers (currently UCSC built-in) and manipulating annotation tracks
7915in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
7916built-in). The user may export/import tracks to/from the supported browsers,
7917as well as query and modify the browser state, such as the current viewport.")
7918 (license license:artistic2.0)))
7919
2fd7c049
RW
7920(define-public r-genomicfeatures
7921 (package
7922 (name "r-genomicfeatures")
d31f8d1b 7923 (version "1.36.0")
2fd7c049
RW
7924 (source (origin
7925 (method url-fetch)
7926 (uri (bioconductor-uri "GenomicFeatures" version))
7927 (sha256
7928 (base32
d31f8d1b 7929 "17jy7lrpdaafd8g5v6j70xsypi0lqljdqmhv9f2r1xpyg3yjd84p"))))
2fd7c049
RW
7930 (properties
7931 `((upstream-name . "GenomicFeatures")))
7932 (build-system r-build-system)
7933 (propagated-inputs
7934 `(("r-annotationdbi" ,r-annotationdbi)
7935 ("r-biobase" ,r-biobase)
7936 ("r-biocgenerics" ,r-biocgenerics)
7937 ("r-biomart" ,r-biomart)
7938 ("r-biostrings" ,r-biostrings)
7939 ("r-dbi" ,r-dbi)
7940 ("r-genomeinfodb" ,r-genomeinfodb)
7941 ("r-genomicranges" ,r-genomicranges)
7942 ("r-iranges" ,r-iranges)
7943 ("r-rcurl" ,r-rcurl)
7944 ("r-rsqlite" ,r-rsqlite)
7945 ("r-rtracklayer" ,r-rtracklayer)
7946 ("r-s4vectors" ,r-s4vectors)
7947 ("r-xvector" ,r-xvector)))
5713bbf1 7948 (home-page "https://bioconductor.org/packages/GenomicFeatures")
2fd7c049
RW
7949 (synopsis "Tools for working with transcript centric annotations")
7950 (description
7951 "This package provides a set of tools and methods for making and
7952manipulating transcript centric annotations. With these tools the user can
7953easily download the genomic locations of the transcripts, exons and cds of a
7954given organism, from either the UCSC Genome Browser or a BioMart
7955database (more sources will be supported in the future). This information is
7956then stored in a local database that keeps track of the relationship between
7957transcripts, exons, cds and genes. Flexible methods are provided for
7958extracting the desired features in a convenient format.")
7959 (license license:artistic2.0)))
7960
fb25d880
RW
7961(define-public r-go-db
7962 (package
7963 (name "r-go-db")
13e70f63 7964 (version "3.7.0")
fb25d880
RW
7965 (source (origin
7966 (method url-fetch)
5713bbf1 7967 (uri (string-append "https://www.bioconductor.org/packages/"
f82c8c3c
PP
7968 "release/data/annotation/src/contrib/GO.db_"
7969 version ".tar.gz"))
fb25d880
RW
7970 (sha256
7971 (base32
13e70f63 7972 "0i3wcf5h3n0dawzc1hy0kv74f06j80c47n4p3g3fmrcxlhi3jpa5"))))
fb25d880
RW
7973 (properties
7974 `((upstream-name . "GO.db")))
7975 (build-system r-build-system)
3141b83d
RW
7976 (propagated-inputs
7977 `(("r-annotationdbi" ,r-annotationdbi)))
5713bbf1 7978 (home-page "https://bioconductor.org/packages/GO.db")
fb25d880
RW
7979 (synopsis "Annotation maps describing the entire Gene Ontology")
7980 (description
7981 "The purpose of this GO.db annotation package is to provide detailed
7982information about the latest version of the Gene Ontologies.")
7983 (license license:artistic2.0)))
7984
d547ce5e
RW
7985(define-public r-topgo
7986 (package
7987 (name "r-topgo")
971df3a7 7988 (version "2.36.0")
d547ce5e
RW
7989 (source (origin
7990 (method url-fetch)
7991 (uri (bioconductor-uri "topGO" version))
7992 (sha256
7993 (base32
971df3a7 7994 "09z42jwz5vh289ijz3x68zv5vmgkgcbhlp73vvmna1gld5lh5kz1"))))
d547ce5e
RW
7995 (properties
7996 `((upstream-name . "topGO")))
7997 (build-system r-build-system)
7998 (propagated-inputs
7999 `(("r-annotationdbi" ,r-annotationdbi)
30ec4de7 8000 ("r-dbi" ,r-dbi)
d547ce5e
RW
8001 ("r-biobase" ,r-biobase)
8002 ("r-biocgenerics" ,r-biocgenerics)
8003 ("r-go-db" ,r-go-db)
6d415db2 8004 ("r-graph" ,r-graph)
aeb64f3c
RW
8005 ("r-lattice" ,r-lattice)
8006 ("r-matrixstats" ,r-matrixstats)
d547ce5e 8007 ("r-sparsem" ,r-sparsem)))
5713bbf1 8008 (home-page "https://bioconductor.org/packages/topGO")
d547ce5e
RW
8009 (synopsis "Enrichment analysis for gene ontology")
8010 (description
8011 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
8012terms while accounting for the topology of the GO graph. Different test
8013statistics and different methods for eliminating local similarities and
8014dependencies between GO terms can be implemented and applied.")
8015 ;; Any version of the LGPL applies.
8016 (license license:lgpl2.1+)))
8017
c63cef66
RW
8018(define-public r-bsgenome
8019 (package
8020 (name "r-bsgenome")
651b62c6 8021 (version "1.52.0")
c63cef66
RW
8022 (source (origin
8023 (method url-fetch)
8024 (uri (bioconductor-uri "BSgenome" version))
8025 (sha256
8026 (base32
651b62c6 8027 "0zwx42s73hc1vhn0v82i67mcixdwwc6n6q5h5vpnhpxlm4qwgqzp"))))
c63cef66
RW
8028 (properties
8029 `((upstream-name . "BSgenome")))
8030 (build-system r-build-system)
8031 (propagated-inputs
8032 `(("r-biocgenerics" ,r-biocgenerics)
8033 ("r-biostrings" ,r-biostrings)
8034 ("r-genomeinfodb" ,r-genomeinfodb)
8035 ("r-genomicranges" ,r-genomicranges)
8036 ("r-iranges" ,r-iranges)
8037 ("r-rsamtools" ,r-rsamtools)
8038 ("r-rtracklayer" ,r-rtracklayer)
8039 ("r-s4vectors" ,r-s4vectors)
8040 ("r-xvector" ,r-xvector)))
5713bbf1 8041 (home-page "https://bioconductor.org/packages/BSgenome")
c63cef66
RW
8042 (synopsis "Infrastructure for Biostrings-based genome data packages")
8043 (description
8044 "This package provides infrastructure shared by all Biostrings-based
8045genome data packages and support for efficient SNP representation.")
8046 (license license:artistic2.0)))
8047
c43a011d
RW
8048(define-public r-impute
8049 (package
8050 (name "r-impute")
d11bc259 8051 (version "1.56.0")
c43a011d
RW
8052 (source (origin
8053 (method url-fetch)
8054 (uri (bioconductor-uri "impute" version))
8055 (sha256
8056 (base32
d11bc259 8057 "08z0pj1dz5iq967nwj67qyka7ir7m5an2ggv7bsrlz3apzfsla33"))))
c43a011d
RW
8058 (inputs
8059 `(("gfortran" ,gfortran)))
8060 (build-system r-build-system)
5713bbf1 8061 (home-page "https://bioconductor.org/packages/impute")
c43a011d
RW
8062 (synopsis "Imputation for microarray data")
8063 (description
8064 "This package provides a function to impute missing gene expression
8065microarray data, using nearest neighbor averaging.")
8066 (license license:gpl2+)))
8067
03ea5a35
RW
8068(define-public r-seqpattern
8069 (package
8070 (name "r-seqpattern")
d726689a 8071 (version "1.16.0")
03ea5a35
RW
8072 (source (origin
8073 (method url-fetch)
8074 (uri (bioconductor-uri "seqPattern" version))
8075 (sha256
8076 (base32
d726689a 8077 "1ljqscbmrmi5d4lzzvg2d86sqzch26yxw57d33qyid300wm60db2"))))
03ea5a35
RW
8078 (properties
8079 `((upstream-name . "seqPattern")))
8080 (build-system r-build-system)
8081 (propagated-inputs
8082 `(("r-biostrings" ,r-biostrings)
8083 ("r-genomicranges" ,r-genomicranges)
8084 ("r-iranges" ,r-iranges)
e92dd6f5 8085 ("r-kernsmooth" ,r-kernsmooth)
03ea5a35 8086 ("r-plotrix" ,r-plotrix)))
5713bbf1 8087 (home-page "https://bioconductor.org/packages/seqPattern")
03ea5a35
RW
8088 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
8089 (description
8090 "This package provides tools to visualize oligonucleotide patterns and
8091sequence motif occurrences across a large set of sequences centred at a common
8092reference point and sorted by a user defined feature.")
8093 (license license:gpl3+)))
8094
cb933df6
RW
8095(define-public r-genomation
8096 (package
8097 (name "r-genomation")
6ef47ac8 8098 (version "1.16.0")
cb933df6
RW
8099 (source (origin
8100 (method url-fetch)
8101 (uri (bioconductor-uri "genomation" version))
8102 (sha256
8103 (base32
6ef47ac8 8104 "06i711pwq9znd7plh0p25skxnnh5dyl61c33k9gma243wvlzmlkj"))))
cb933df6
RW
8105 (build-system r-build-system)
8106 (propagated-inputs
8107 `(("r-biostrings" ,r-biostrings)
8108 ("r-bsgenome" ,r-bsgenome)
8109 ("r-data-table" ,r-data-table)
8110 ("r-genomeinfodb" ,r-genomeinfodb)
8111 ("r-genomicalignments" ,r-genomicalignments)
8112 ("r-genomicranges" ,r-genomicranges)
8113 ("r-ggplot2" ,r-ggplot2)
8114 ("r-gridbase" ,r-gridbase)
8115 ("r-impute" ,r-impute)
8116 ("r-iranges" ,r-iranges)
8117 ("r-matrixstats" ,r-matrixstats)
8118 ("r-plotrix" ,r-plotrix)
8119 ("r-plyr" ,r-plyr)
51c3c490 8120 ("r-rcpp" ,r-rcpp)
cb933df6
RW
8121 ("r-readr" ,r-readr)
8122 ("r-reshape2" ,r-reshape2)
8123 ("r-rsamtools" ,r-rsamtools)
8124 ("r-rtracklayer" ,r-rtracklayer)
51c3c490
RW
8125 ("r-runit" ,r-runit)
8126 ("r-s4vectors" ,r-s4vectors)
cb933df6
RW
8127 ("r-seqpattern" ,r-seqpattern)))
8128 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8129 (synopsis "Summary, annotation and visualization of genomic data")
8130 (description
8131 "This package provides a package for summary and annotation of genomic
8132intervals. Users can visualize and quantify genomic intervals over
8133pre-defined functional regions, such as promoters, exons, introns, etc. The
8134genomic intervals represent regions with a defined chromosome position, which
8135may be associated with a score, such as aligned reads from HT-seq experiments,
8136TF binding sites, methylation scores, etc. The package can use any tabular
8137genomic feature data as long as it has minimal information on the locations of
8138genomic intervals. In addition, it can use BAM or BigWig files as input.")
8139 (license license:artistic2.0)))
8140
64efa307
RW
8141(define-public r-genomationdata
8142 (package
8143 (name "r-genomationdata")
cb9e6ed7 8144 (version "1.14.0")
64efa307
RW
8145 (source (origin
8146 (method url-fetch)
8147 ;; We cannot use bioconductor-uri here because this tarball is
8148 ;; located under "data/annotation/" instead of "bioc/".
8149 (uri (string-append "https://bioconductor.org/packages/"
8150 "release/data/experiment/src/contrib/"
8151 "genomationData_" version ".tar.gz"))
8152 (sha256
8153 (base32
cb9e6ed7 8154 "10xyb8akjrhmak2i0mnv1agny2ipy364q9nlibyplpzc7vdb6bw7"))))
64efa307
RW
8155 (build-system r-build-system)
8156 ;; As this package provides little more than large data files, it doesn't
8157 ;; make sense to build substitutes.
8158 (arguments `(#:substitutable? #f))
8159 (native-inputs
8160 `(("r-knitr" ,r-knitr)))
8161 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
8162 (synopsis "Experimental data for use with the genomation package")
8163 (description
8164 "This package contains experimental genetic data for use with the
8165genomation package. Included are Chip Seq, Methylation and Cage data,
8166downloaded from Encode.")
8167 (license license:gpl3+)))
8168
936e7d67
RW
8169(define-public r-seqlogo
8170 (package
8171 (name "r-seqlogo")
a7143246 8172 (version "1.50.0")
936e7d67
RW
8173 (source
8174 (origin
8175 (method url-fetch)
8176 (uri (bioconductor-uri "seqLogo" version))
8177 (sha256
8178 (base32
a7143246 8179 "1z63imr1a24nqijpvxaxlakykcsadfqyxl2b3vlllncxnjjvb52b"))))
936e7d67
RW
8180 (properties `((upstream-name . "seqLogo")))
8181 (build-system r-build-system)
5713bbf1 8182 (home-page "https://bioconductor.org/packages/seqLogo")
936e7d67
RW
8183 (synopsis "Sequence logos for DNA sequence alignments")
8184 (description
8185 "seqLogo takes the position weight matrix of a DNA sequence motif and
8186plots the corresponding sequence logo as introduced by Schneider and
8187Stephens (1990).")
8188 (license license:lgpl2.0+)))
8189
ae2462f7
RW
8190(define-public r-motifrg
8191 (package
8192 (name "r-motifrg")
3be113b7 8193 (version "1.28.0")
ae2462f7
RW
8194 (source
8195 (origin
8196 (method url-fetch)
8197 (uri (bioconductor-uri "motifRG" version))
8198 (sha256
8199 (base32
3be113b7 8200 "02c7fbjwdq7pk96bd2rn07l9r2hqy00s3hfpli5ybmwgvc9h9z4z"))))
ae2462f7
RW
8201 (properties `((upstream-name . "motifRG")))
8202 (build-system r-build-system)
8203 (propagated-inputs
8204 `(("r-biostrings" ,r-biostrings)
8205 ("r-bsgenome" ,r-bsgenome)
007424b5 8206 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
ae2462f7
RW
8207 ("r-iranges" ,r-iranges)
8208 ("r-seqlogo" ,r-seqlogo)
8209 ("r-xvector" ,r-xvector)))
5713bbf1 8210 (home-page "https://bioconductor.org/packages/motifRG")
ae2462f7
RW
8211 (synopsis "Discover motifs in high throughput sequencing data")
8212 (description
8213 "This package provides tools for discriminative motif discovery in high
8214throughput genetic sequencing data sets using regression methods.")
8215 (license license:artistic2.0)))
8216
a5002ae7
AE
8217(define-public r-qtl
8218 (package
8219 (name "r-qtl")
5d9b140b 8220 (version "1.44-9")
a5002ae7
AE
8221 (source
8222 (origin
8223 (method url-fetch)
8224 (uri (string-append "mirror://cran/src/contrib/qtl_"
8225 version ".tar.gz"))
8226 (sha256
8227 (base32
5d9b140b 8228 "03lmvydln8b7666b6w46qbryhf83vsd11d4y2v95rfgvqgq66l1i"))))
a5002ae7
AE
8229 (build-system r-build-system)
8230 (home-page "http://rqtl.org/")
8231 (synopsis "R package for analyzing QTL experiments in genetics")
8232 (description "R/qtl is an extension library for the R statistics
8233system. It is used to analyze experimental crosses for identifying
8234genes contributing to variation in quantitative traits (so-called
8235quantitative trait loci, QTLs).
8236
8237Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
8238identify genotyping errors, and to perform single-QTL and two-QTL,
8239two-dimensional genome scans.")
8240 (license license:gpl3)))
d1e32822 8241
9e3ba31c
RJ
8242(define-public r-zlibbioc
8243 (package
8244 (name "r-zlibbioc")
c648e672 8245 (version "1.30.0")
9e3ba31c
RJ
8246 (source (origin
8247 (method url-fetch)
8248 (uri (bioconductor-uri "zlibbioc" version))
8249 (sha256
8250 (base32
c648e672 8251 "1h0a2ps2rfk9azzps7p23sxj5z1giv8gcx0ypzgyz7fkr4xi9z7k"))))
9e3ba31c
RJ
8252 (properties
8253 `((upstream-name . "zlibbioc")))
8254 (build-system r-build-system)
8255 (home-page "https://bioconductor.org/packages/zlibbioc")
8256 (synopsis "Provider for zlib-1.2.5 to R packages")
8257 (description "This package uses the source code of zlib-1.2.5 to create
8258libraries for systems that do not have these available via other means.")
8259 (license license:artistic2.0)))
8260
e619a5c2
RW
8261(define-public r-r4rna
8262 (package
8263 (name "r-r4rna")
8264 (version "0.1.4")
8265 (source
8266 (origin
8267 (method url-fetch)
8268 (uri (string-append "http://www.e-rna.org/r-chie/files/R4RNA_"
8269 version ".tar.gz"))
8270 (sha256
8271 (base32
8272 "1p0i78wh76jfgmn9jphbwwaz6yy6pipzfg08xs54cxavxg2j81p5"))))
8273 (build-system r-build-system)
8274 (propagated-inputs
8275 `(("r-optparse" ,r-optparse)
8276 ("r-rcolorbrewer" ,r-rcolorbrewer)))
8277 (home-page "http://www.e-rna.org/r-chie/index.cgi")
8278 (synopsis "Analysis framework for RNA secondary structure")
8279 (description
8280 "The R4RNA package aims to be a general framework for the analysis of RNA
8281secondary structure and comparative analysis in R.")
8282 (license license:gpl3+)))
8283
52765a63
RW
8284(define-public r-rhtslib
8285 (package
8286 (name "r-rhtslib")
23ce7f3b 8287 (version "1.16.1")
52765a63
RW
8288 (source
8289 (origin
8290 (method url-fetch)
8291 (uri (bioconductor-uri "Rhtslib" version))
8292 (sha256
8293 (base32
23ce7f3b 8294 "178zbrm221rwhbjk7j2v9g5ra44k0xg7c5abhd810m3g7snma8k8"))))
52765a63
RW
8295 (properties `((upstream-name . "Rhtslib")))
8296 (build-system r-build-system)
3153ca9d
RW
8297 ;; Without this a temporary directory ends up in the Rhtslib.so binary,
8298 ;; which makes R abort the build.
8299 (arguments '(#:configure-flags '("--no-staged-install")))
52765a63
RW
8300 (propagated-inputs
8301 `(("r-zlibbioc" ,r-zlibbioc)))
8302 (inputs
8303 `(("zlib" ,zlib)))
53ca52f0 8304 (native-inputs
1a08bb8a 8305 `(("pkg-config" ,pkg-config)))
52765a63
RW
8306 (home-page "https://github.com/nhayden/Rhtslib")
8307 (synopsis "High-throughput sequencing library as an R package")
8308 (description
8309 "This package provides the HTSlib C library for high-throughput
8310nucleotide sequence analysis. The package is primarily useful to developers
8311of other R packages who wish to make use of HTSlib.")
8312 (license license:lgpl2.0+)))
8313
fe02c4c9
RW
8314(define-public r-bamsignals
8315 (package
8316 (name "r-bamsignals")
45aeb4eb 8317 (version "1.16.0")
fe02c4c9
RW
8318 (source
8319 (origin
8320 (method url-fetch)
8321 (uri (bioconductor-uri "bamsignals" version))
8322 (sha256
8323 (base32
45aeb4eb 8324 "15q1q51dwl9qxfkf10yppw4m194ba03nq9plsrbj8fqj00v4729i"))))
fe02c4c9
RW
8325 (build-system r-build-system)
8326 (propagated-inputs
8327 `(("r-biocgenerics" ,r-biocgenerics)
8328 ("r-genomicranges" ,r-genomicranges)
8329 ("r-iranges" ,r-iranges)
8330 ("r-rcpp" ,r-rcpp)
8331 ("r-rhtslib" ,r-rhtslib)
8332 ("r-zlibbioc" ,r-zlibbioc)))
8333 (inputs
8334 `(("zlib" ,zlib)))
5713bbf1 8335 (home-page "https://bioconductor.org/packages/bamsignals")
fe02c4c9
RW
8336 (synopsis "Extract read count signals from bam files")
8337 (description
8338 "This package allows to efficiently obtain count vectors from indexed bam
8339files. It counts the number of nucleotide sequence reads in given genomic
8340ranges and it computes reads profiles and coverage profiles. It also handles
8341paired-end data.")
8342 (license license:gpl2+)))
8343
89984be4
RW
8344(define-public r-rcas
8345 (package
8346 (name "r-rcas")
a1c2bf8e 8347 (version "1.8.0")
89984be4
RW
8348 (source (origin
8349 (method url-fetch)
bcc2e0ed 8350 (uri (bioconductor-uri "RCAS" version))
89984be4
RW
8351 (sha256
8352 (base32
a1c2bf8e 8353 "0ss5hcg2m7gjji6dd23zxa5bd5a7knwcnada4qs5q2l4clgk39ad"))))
83546785 8354 (properties `((upstream-name . "RCAS")))
89984be4 8355 (build-system r-build-system)
89984be4 8356 (propagated-inputs
a1c2bf8e
RW
8357 `(("r-annotationdbi" ,r-annotationdbi)
8358 ("r-biocgenerics" ,r-biocgenerics)
89984be4 8359 ("r-biomart" ,r-biomart)
bcc2e0ed 8360 ("r-biostrings" ,r-biostrings)
89984be4 8361 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
bcc2e0ed
RW
8362 ("r-cowplot" ,r-cowplot)
8363 ("r-data-table" ,r-data-table)
8364 ("r-dbi" ,r-dbi)
89984be4 8365 ("r-dt" ,r-dt)
bcc2e0ed 8366 ("r-genomation" ,r-genomation)
a1c2bf8e 8367 ("r-genomeinfodb" ,r-genomeinfodb)
bcc2e0ed 8368 ("r-genomicfeatures" ,r-genomicfeatures)
a1c2bf8e 8369 ("r-genomicranges" ,r-genomicranges)
bcc2e0ed
RW
8370 ("r-ggplot2" ,r-ggplot2)
8371 ("r-ggseqlogo" ,r-ggseqlogo)
8372 ("r-knitr" ,r-knitr)
8373 ("r-motifrg" ,r-motifrg)
8374 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
ebfd6a71 8375 ("r-pbapply" ,r-pbapply)
bcc2e0ed 8376 ("r-pheatmap" ,r-pheatmap)
89984be4 8377 ("r-plotly" ,r-plotly)
2c8d6c0b 8378 ("r-plotrix" ,r-plotrix)
bcc2e0ed
RW
8379 ("r-proxy" ,r-proxy)
8380 ("r-rsqlite" ,r-rsqlite)
89984be4 8381 ("r-rtracklayer" ,r-rtracklayer)
bcc2e0ed
RW
8382 ("r-rmarkdown" ,r-rmarkdown)
8383 ("r-s4vectors" ,r-s4vectors)
8384 ("r-topgo" ,r-topgo)))
89984be4
RW
8385 (synopsis "RNA-centric annotation system")
8386 (description
8387 "RCAS aims to be a standalone RNA-centric annotation system that provides
8388intuitive reports and publication-ready graphics. This package provides the R
8389library implementing most of the pipeline's features.")
8390 (home-page "https://github.com/BIMSBbioinfo/RCAS")
75690c9f 8391 (license license:artistic2.0)))
89984be4 8392
50937297
RW
8393(define-public rcas-web
8394 (package
8395 (name "rcas-web")
307182d4 8396 (version "0.1.0")
50937297
RW
8397 (source
8398 (origin
8399 (method url-fetch)
8400 (uri (string-append "https://github.com/BIMSBbioinfo/rcas-web/"
8401 "releases/download/v" version
8402 "/rcas-web-" version ".tar.gz"))
8403 (sha256
8404 (base32
307182d4 8405 "0wq951aj45gqki1bickg876i993lmawkp8x24agg264br5x716db"))))
50937297
RW
8406 (build-system gnu-build-system)
8407 (arguments
8408 `(#:phases
8409 (modify-phases %standard-phases
8410 (add-after 'install 'wrap-executable
8411 (lambda* (#:key inputs outputs #:allow-other-keys)
8412 (let* ((out (assoc-ref outputs "out"))
8413 (json (assoc-ref inputs "guile-json"))
8414 (redis (assoc-ref inputs "guile-redis"))
8415 (path (string-append
8416 json "/share/guile/site/2.2:"
8417 redis "/share/guile/site/2.2")))
8418 (wrap-program (string-append out "/bin/rcas-web")
8419 `("GUILE_LOAD_PATH" ":" = (,path))
8420 `("GUILE_LOAD_COMPILED_PATH" ":" = (,path))
8421 `("R_LIBS_SITE" ":" = (,(getenv "R_LIBS_SITE")))))
8422 #t)))))
8423 (inputs
2d7c4ae3 8424 `(("r-minimal" ,r-minimal)
50937297 8425 ("r-rcas" ,r-rcas)
f6396d86 8426 ("guile-next" ,guile-2.2)
2252f087 8427 ("guile-json" ,guile-json)
307182d4 8428 ("guile-redis" ,guile-redis)))
50937297
RW
8429 (native-inputs
8430 `(("pkg-config" ,pkg-config)))
8431 (home-page "https://github.com/BIMSBbioinfo/rcas-web")
8432 (synopsis "Web interface for RNA-centric annotation system (RCAS)")
8433 (description "This package provides a simple web interface for the
8434@dfn{RNA-centric annotation system} (RCAS).")
8435 (license license:agpl3+)))
8436
7500e42b
RJ
8437(define-public r-mutationalpatterns
8438 (package
8439 (name "r-mutationalpatterns")
5b65a859 8440 (version "1.10.0")
7500e42b
RJ
8441 (source
8442 (origin
8443 (method url-fetch)
8444 (uri (bioconductor-uri "MutationalPatterns" version))
8445 (sha256
8446 (base32
5b65a859 8447 "1k3r06xj1nim1s8as1i7fykfa6fbb4x456kslbzdvbf83ppx34z3"))))
7500e42b
RJ
8448 (build-system r-build-system)
8449 (propagated-inputs
8450 `(("r-biocgenerics" ,r-biocgenerics)
8451 ("r-biostrings" ,r-biostrings)
b6c2c8f7 8452 ;; These two packages are suggested packages
cf4ac4e4
RJ
8453 ("r-bsgenome-hsapiens-1000g" ,r-bsgenome-hsapiens-1000genomes-hs37d5)
8454 ("r-bsgenome-hsapiens-ucsc-hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
7500e42b
RJ
8455 ("r-genomicranges" ,r-genomicranges)
8456 ("r-genomeinfodb" ,r-genomeinfodb)
8457 ("r-ggplot2" ,r-ggplot2)
7500e42b
RJ
8458 ("r-iranges" ,r-iranges)
8459 ("r-nmf" ,r-nmf)
8460 ("r-plyr" ,r-plyr)
8461 ("r-pracma" ,r-pracma)
8462 ("r-reshape2" ,r-reshape2)
39d9098d
RW
8463 ("r-cowplot" ,r-cowplot)
8464 ("r-ggdendro" ,r-ggdendro)
8465 ("r-s4vectors" ,r-s4vectors)
7500e42b
RJ
8466 ("r-summarizedexperiment" ,r-summarizedexperiment)
8467 ("r-variantannotation" ,r-variantannotation)))
5713bbf1 8468 (home-page "https://bioconductor.org/packages/MutationalPatterns/")
7500e42b
RJ
8469 (synopsis "Extract and visualize mutational patterns in genomic data")
8470 (description "This package provides an extensive toolset for the
8471characterization and visualization of a wide range of mutational patterns
8472in SNV base substitution data.")
8473 (license license:expat)))
8474
c827f202
RW
8475(define-public r-chipkernels
8476 (let ((commit "c9cfcacb626b1221094fb3490ea7bac0fd625372")
8477 (revision "1"))
8478 (package
8479 (name "r-chipkernels")
8480 (version (string-append "1.1-" revision "." (string-take commit 9)))
8481 (source
8482 (origin
8483 (method git-fetch)
8484 (uri (git-reference
8485 (url "https://github.com/ManuSetty/ChIPKernels.git")
8486 (commit commit)))
8487 (file-name (string-append name "-" version))
8488 (sha256
8489 (base32
8490 "14bj5qhjm1hsm9ay561nfbqi9wxsa7y487df2idsaaf6z10nw4v0"))))
8491 (build-system r-build-system)
8492 (propagated-inputs
8493 `(("r-iranges" ,r-iranges)
8494 ("r-xvector" ,r-xvector)
8495 ("r-biostrings" ,r-biostrings)
8496 ("r-bsgenome" ,r-bsgenome)
8497 ("r-gtools" ,r-gtools)
8498 ("r-genomicranges" ,r-genomicranges)
8499 ("r-sfsmisc" ,r-sfsmisc)
8500 ("r-kernlab" ,r-kernlab)
8501 ("r-s4vectors" ,r-s4vectors)
8502 ("r-biocgenerics" ,r-biocgenerics)))
8503 (home-page "https://github.com/ManuSetty/ChIPKernels")
8504 (synopsis "Build string kernels for DNA Sequence analysis")
8505 (description "ChIPKernels is an R package for building different string
8506kernels used for DNA Sequence analysis. A dictionary of the desired kernel
8507must be built and this dictionary can be used for determining kernels for DNA
8508Sequences.")
8509 (license license:gpl2+))))
8510
2d9fb170
RW
8511(define-public r-seqgl
8512 (package
8513 (name "r-seqgl")
8514 (version "1.1.4")
8515 (source
8516 (origin
1a20bcad
RW
8517 (method git-fetch)
8518 (uri (git-reference
8519 (url "https://github.com/ManuSetty/SeqGL.git")
8520 (commit version)))
8521 (file-name (git-file-name name version))
2d9fb170
RW
8522 (sha256
8523 (base32
1a20bcad 8524 "1r6ywvhxl3ffv48lgj7sbd582mcc6dha3ksgc2qjlvjrnkbj3799"))))
2d9fb170
RW
8525 (build-system r-build-system)
8526 (propagated-inputs
8527 `(("r-biostrings" ,r-biostrings)
8528 ("r-chipkernels" ,r-chipkernels)
8529 ("r-genomicranges" ,r-genomicranges)
8530 ("r-spams" ,r-spams)
8531 ("r-wgcna" ,r-wgcna)
8532 ("r-fastcluster" ,r-fastcluster)))
8533 (home-page "https://github.com/ManuSetty/SeqGL")
8534 (synopsis "Group lasso for Dnase/ChIP-seq data")
8535 (description "SeqGL is a group lasso based algorithm to extract
8536transcription factor sequence signals from ChIP, DNase and ATAC-seq profiles.
8537This package presents a method which uses group lasso to discriminate between
8538bound and non bound genomic regions to accurately identify transcription
8539factors bound at the specific regions.")
8540 (license license:gpl2+)))
8541
d4af25b5
RJPB
8542(define-public r-tximport
8543 (package
8544 (name "r-tximport")
c030eb50 8545 (version "1.12.0")
d4af25b5
RJPB
8546 (source (origin
8547 (method url-fetch)
8548 (uri (bioconductor-uri "tximport" version))
8549 (sha256
8550 (base32
c030eb50 8551 "0nl4imr5klwcd0xnp5y0g61d6mcgd50q60zkl86ymfmc0id368jr"))))
d4af25b5 8552 (build-system r-build-system)
5713bbf1 8553 (home-page "https://bioconductor.org/packages/tximport")
d4af25b5
RJPB
8554 (synopsis "Import and summarize transcript-level estimates for gene-level analysis")
8555 (description
8556 "This package provides tools to import transcript-level abundance,
8557estimated counts and transcript lengths, and to summarize them into matrices
8558for use with downstream gene-level analysis packages. Average transcript
8559length, weighted by sample-specific transcript abundance estimates, is
8560provided as a matrix which can be used as an offset for different expression
8561of gene-level counts.")
8562 (license license:gpl2+)))
8563
69f2b3bd
RJPB
8564(define-public r-rhdf5
8565 (package
8566 (name "r-rhdf5")
f6ecdafa 8567 (version "2.28.0")
69f2b3bd
RJPB
8568 (source (origin
8569 (method url-fetch)
8570 (uri (bioconductor-uri "rhdf5" version))
8571 (sha256
8572 (base32
f6ecdafa 8573 "0y1w3cs7wg2b3jlkd6wyyz6626xg011nrg36si8gg371iqck9a1i"))))
69f2b3bd 8574 (build-system r-build-system)
69f2b3bd 8575 (propagated-inputs
d73c5728 8576 `(("r-rhdf5lib" ,r-rhdf5lib)))
69f2b3bd 8577 (inputs
d73c5728 8578 `(("zlib" ,zlib)))
5713bbf1 8579 (home-page "https://bioconductor.org/packages/rhdf5")
69f2b3bd
RJPB
8580 (synopsis "HDF5 interface to R")
8581 (description
8582 "This R/Bioconductor package provides an interface between HDF5 and R.
8583HDF5's main features are the ability to store and access very large and/or
8584complex datasets and a wide variety of metadata on mass storage (disk) through
8585a completely portable file format. The rhdf5 package is thus suited for the
8586exchange of large and/or complex datasets between R and other software
8587package, and for letting R applications work on datasets that are larger than
8588the available RAM.")
8589 (license license:artistic2.0)))
8590
17cddc17
RW
8591(define-public r-annotationfilter
8592 (package
8593 (name "r-annotationfilter")
dbb4aa4a 8594 (version "1.8.0")
17cddc17
RW
8595 (source (origin
8596 (method url-fetch)
8597 (uri (bioconductor-uri "AnnotationFilter" version))
8598 (sha256
8599 (base32
dbb4aa4a 8600 "15qh4jwxxqsnb308nxzj99gckfk18rhp8g26q1xwgkr57zc5kcrx"))))
17cddc17
RW
8601 (properties
8602 `((upstream-name . "AnnotationFilter")))
8603 (build-system r-build-system)
8604 (propagated-inputs
8605 `(("r-genomicranges" ,r-genomicranges)
8606 ("r-lazyeval" ,r-lazyeval)))
8607 (home-page "https://github.com/Bioconductor/AnnotationFilter")
8608 (synopsis "Facilities for filtering Bioconductor annotation resources")
8609 (description
8610 "This package provides classes and other infrastructure to implement
8611filters for manipulating Bioconductor annotation resources. The filters are
8612used by @code{ensembldb}, @code{Organism.dplyr}, and other packages.")
8613 (license license:artistic2.0)))
8614
66e40e00
RW
8615(define-public emboss
8616 (package
8617 (name "emboss")
8618 (version "6.5.7")
8619 (source (origin
8620 (method url-fetch)
8621 (uri (string-append "ftp://emboss.open-bio.org/pub/EMBOSS/old/"
8622 (version-major+minor version) ".0/"
8623 "EMBOSS-" version ".tar.gz"))
8624 (sha256
8625 (base32
8626 "0vsmz96gc411yj2iyzdrsmg4l2n1nhgmp7vrgzlxx3xixv9xbf0q"))))
8627 (build-system gnu-build-system)
8628 (arguments
8629 `(#:configure-flags
8630 (list (string-append "--with-hpdf="
8631 (assoc-ref %build-inputs "libharu")))
8632 #:phases
8633 (modify-phases %standard-phases
8634 (add-after 'unpack 'fix-checks
8635 (lambda _
8636 ;; The PNGDRIVER tests check for the presence of libgd, libpng
8637 ;; and zlib, but assume that they are all found at the same
8638 ;; prefix.
8639 (substitute* "configure.in"
8640 (("CHECK_PNGDRIVER")
8641 "LIBS=\"$LIBS -lgd -lpng -lz -lm\"
8642AC_DEFINE([PLD_png], [1], [Define to 1 if PNG support is available])
8643AM_CONDITIONAL(AMPNG, true)"))
8644 #t))
d10092b8 8645 (add-after 'fix-checks 'disable-update-check
66e40e00
RW
8646 (lambda _
8647 ;; At build time there is no connection to the Internet, so
8648 ;; looking for updates will not work.
8649 (substitute* "Makefile.am"
8650 (("\\$\\(bindir\\)/embossupdate") ""))
8651 #t))
d10092b8 8652 (add-after 'disable-update-check 'autogen
e78e54d0 8653 (lambda _ (invoke "autoreconf" "-vif") #t)))))
66e40e00
RW
8654 (inputs
8655 `(("perl" ,perl)
8656 ("libpng" ,libpng)
8657 ("gd" ,gd)
8658 ("libx11" ,libx11)
8659 ("libharu" ,libharu)
8660 ("zlib" ,zlib)))
8661 (native-inputs
8662 `(("autoconf" ,autoconf)
8663 ("automake" ,automake)
8664 ("libtool" ,libtool)
8665 ("pkg-config" ,pkg-config)))
8666 (home-page "http://emboss.sourceforge.net")
8667 (synopsis "Molecular biology analysis suite")
8668 (description "EMBOSS is the \"European Molecular Biology Open Software
8669Suite\". EMBOSS is an analysis package specially developed for the needs of
8670the molecular biology (e.g. EMBnet) user community. The software
8671automatically copes with data in a variety of formats and even allows
8672transparent retrieval of sequence data from the web. It also provides a
8673number of libraries for the development of software in the field of molecular
8674biology. EMBOSS also integrates a range of currently available packages and
8675tools for sequence analysis into a seamless whole.")
8676 (license license:gpl2+)))
8677
1f1b20b8
RW
8678(define-public bits
8679 (let ((revision "1")
8680 (commit "3cc4567896d9d6442923da944beb704750a08d2d"))
8681 (package
8682 (name "bits")
8683 ;; The version is 2.13.0 even though no release archives have been
8684 ;; published as yet.
8685 (version (string-append "2.13.0-" revision "." (string-take commit 9)))
8686 (source (origin
8687 (method git-fetch)
8688 (uri (git-reference
8689 (url "https://github.com/arq5x/bits.git")
8690 (commit commit)))
8691 (file-name (string-append name "-" version "-checkout"))
8692 (sha256
8693 (base32
8694 "17n2kffk4kmhivd8c98g2vr6y1s23vbg4sxlxs689wni66797hbs"))))
8695 (build-system gnu-build-system)
8696 (arguments
8697 `(#:tests? #f ;no tests included
8698 #:phases
8699 (modify-phases %standard-phases
8700 (delete 'configure)
8701 (add-after 'unpack 'remove-cuda
8702 (lambda _
8703 (substitute* "Makefile"
8704 ((".*_cuda") "")
8705 (("(bits_test_intersections) \\\\" _ match) match))
8706 #t))
8707 (replace 'install
8708 (lambda* (#:key outputs #:allow-other-keys)
8709 (copy-recursively
8710 "bin" (string-append (assoc-ref outputs "out") "/bin"))
8711 #t)))))
8712 (inputs
8713 `(("gsl" ,gsl)
8714 ("zlib" ,zlib)))
8715 (home-page "https://github.com/arq5x/bits")
8716 (synopsis "Implementation of binary interval search algorithm")
8717 (description "This package provides an implementation of the
8718BITS (Binary Interval Search) algorithm, an approach to interval set
8719intersection. It is especially suited for the comparison of diverse genomic
8720datasets and the exploration of large datasets of genome
8721intervals (e.g. genes, sequence alignments).")
8722 (license license:gpl2))))
8723
e62ffce5 8724(define-public piranha
883302da
RW
8725 ;; There is no release tarball for the latest version. The latest commit is
8726 ;; older than one year at the time of this writing.
8727 (let ((revision "1")
8728 (commit "0466d364b71117d01e4471b74c514436cc281233"))
8729 (package
8730 (name "piranha")
8731 (version (string-append "1.2.1-" revision "." (string-take commit 9)))
8732 (source (origin
8733 (method git-fetch)
8734 (uri (git-reference
8735 (url "https://github.com/smithlabcode/piranha.git")
8736 (commit commit)))
da49d137 8737 (file-name (git-file-name name version))
883302da
RW
8738 (sha256
8739 (base32
8740 "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
8741 (build-system gnu-build-system)
8742 (arguments
8743 `(#:test-target "test"
8744 #:phases
8745 (modify-phases %standard-phases
8746 (add-after 'unpack 'copy-smithlab-cpp
8747 (lambda* (#:key inputs #:allow-other-keys)
e62ffce5 8748 (for-each (lambda (file)
883302da
RW
8749 (install-file file "./src/smithlab_cpp/"))
8750 (find-files (assoc-ref inputs "smithlab-cpp")))
8751 #t))
8752 (add-after 'install 'install-to-store
8753 (lambda* (#:key outputs #:allow-other-keys)
8754 (let* ((out (assoc-ref outputs "out"))
8755 (bin (string-append out "/bin")))
883302da
RW
8756 (for-each (lambda (file)
8757 (install-file file bin))
8758 (find-files "bin" ".*")))
8759 #t)))
8760 #:configure-flags
8761 (list (string-append "--with-bam_tools_headers="
8762 (assoc-ref %build-inputs "bamtools") "/include/bamtools")
8763 (string-append "--with-bam_tools_library="
8764 (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
8765 (inputs
8766 `(("bamtools" ,bamtools)
8767 ("samtools" ,samtools-0.1)
8768 ("gsl" ,gsl)
8769 ("smithlab-cpp"
8770 ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
8771 (origin
8772 (method git-fetch)
8773 (uri (git-reference
8774 (url "https://github.com/smithlabcode/smithlab_cpp.git")
8775 (commit commit)))
8776 (file-name (string-append "smithlab_cpp-" commit "-checkout"))
8777 (sha256
8778 (base32
8779 "0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
8780 (native-inputs
8781 `(("python" ,python-2)))
8782 (home-page "https://github.com/smithlabcode/piranha")
8783 (synopsis "Peak-caller for CLIP-seq and RIP-seq data")
8784 (description
8785 "Piranha is a peak-caller for genomic data produced by CLIP-seq and
e62ffce5
RW
8786RIP-seq experiments. It takes input in BED or BAM format and identifies
8787regions of statistically significant read enrichment. Additional covariates
8788may optionally be provided to further inform the peak-calling process.")
883302da 8789 (license license:gpl3+))))
e62ffce5 8790
d1e32822
RW
8791(define-public pepr
8792 (package
8793 (name "pepr")
8794 (version "1.0.9")
8795 (source (origin
8796 (method url-fetch)
fdb0b40b 8797 (uri (pypi-uri "PePr" version))
d1e32822
RW
8798 (sha256
8799 (base32
8800 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
8801 (build-system python-build-system)
8802 (arguments
8803 `(#:python ,python-2 ; python2 only
b41a05ce 8804 #:tests? #f)) ; no tests included
d1e32822
RW
8805 (propagated-inputs
8806 `(("python2-numpy" ,python2-numpy)
8807 ("python2-scipy" ,python2-scipy)
8808 ("python2-pysam" ,python2-pysam)))
0c6c9c00 8809 (home-page "https://github.com/shawnzhangyx/PePr")
d1e32822
RW
8810 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
8811 (description
8812 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
8813that is primarily designed for data with biological replicates. It uses a
8814negative binomial distribution to model the read counts among the samples in
8815the same group, and look for consistent differences between ChIP and control
8816group or two ChIP groups run under different conditions.")
8817 (license license:gpl3+)))
6b49a37e
RJ
8818
8819(define-public filevercmp
8820 (let ((commit "1a9b779b93d0b244040274794d402106907b71b7"))
8821 (package
8822 (name "filevercmp")
8823 (version (string-append "0-1." (string-take commit 7)))
8824 (source (origin
f3f34b13
RW
8825 (method git-fetch)
8826 (uri (git-reference
8827 (url "https://github.com/ekg/filevercmp.git")
8828 (commit commit)))
8829 (file-name (git-file-name name commit))
8830 (sha256
8831 (base32
8832 "1j9vxsy0y050v59h0q1d6501fcw1kjvj0d18l1xk2zyg0jzj247c"))))
6b49a37e
RJ
8833 (build-system gnu-build-system)
8834 (arguments
8835 `(#:tests? #f ; There are no tests to run.
8836 #:phases
8837 (modify-phases %standard-phases
8838 (delete 'configure) ; There is no configure phase.
8839 (replace 'install
8840 (lambda* (#:key outputs #:allow-other-keys)
8841 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
f3f34b13
RW
8842 (install-file "filevercmp" bin)
8843 #t))))))
6b49a37e
RJ
8844 (home-page "https://github.com/ekg/filevercmp")
8845 (synopsis "This program compares version strings")
8846 (description "This program compares version strings. It intends to be a
8847replacement for strverscmp.")
8848 (license license:gpl3+))))
5fb5dffb
RW
8849
8850(define-public multiqc
8851 (package
8852 (name "multiqc")
457fd268 8853 (version "1.5")
5fb5dffb
RW
8854 (source
8855 (origin
8856 (method url-fetch)
8857 (uri (pypi-uri "multiqc" version))
8858 (sha256
8859 (base32
457fd268 8860 "02iihfl0w0hpnr4pa0sbd1y9qxrg3ycyhjp5lidkcrqh1lmzs3zy"))))
5fb5dffb
RW
8861 (build-system python-build-system)
8862 (propagated-inputs
9e94d063 8863 `(("python-jinja2" ,python-jinja2)
5fb5dffb
RW
8864 ("python-simplejson" ,python-simplejson)
8865 ("python-pyyaml" ,python-pyyaml)
8866 ("python-click" ,python-click)
799247d2
RW
8867 ("python-spectra" ,python-spectra)
8868 ("python-requests" ,python-requests)
8869 ("python-markdown" ,python-markdown)
8870 ("python-lzstring" ,python-lzstring)
5fb5dffb 8871 ("python-matplotlib" ,python-matplotlib)
1778ea74
RW
8872 ("python-numpy" ,python-numpy)
8873 ;; MultQC checks for the presence of nose at runtime.
8874 ("python-nose" ,python-nose)))
4ca95811
TGR
8875 (arguments
8876 `(#:phases
8877 (modify-phases %standard-phases
8878 (add-after 'unpack 'relax-requirements
8879 (lambda _
8880 (substitute* "setup.py"
8881 ;; MultiQC 1.5 ‘requires’ a version of python-matplotlib older
8882 ;; than the one in Guix, but should work fine with 2.2.2.
8883 ;; See <https://github.com/ewels/MultiQC/issues/725> and
8884 ;; <https://github.com/ewels/MultiQC/issues/732> for details.
8885 (("['\"]matplotlib.*?['\"]")
8886 "'matplotlib'"))
8887 #t)))))
5fb5dffb
RW
8888 (home-page "http://multiqc.info")
8889 (synopsis "Aggregate bioinformatics analysis reports")
8890 (description
8891 "MultiQC is a tool to aggregate bioinformatics results across many
8892samples into a single report. It contains modules for a large number of
8893common bioinformatics tools.")
66865ab8 8894 (license license:gpl3+)))
6193563a
RW
8895
8896(define-public r-chipseq
8897 (package
8898 (name "r-chipseq")
70c44443 8899 (version "1.34.0")
6193563a
RW
8900 (source
8901 (origin
8902 (method url-fetch)
8903 (uri (bioconductor-uri "chipseq" version))
8904 (sha256
8905 (base32
70c44443 8906 "1835nhrxcaqpqf1kxrsk1js8bf7x33z1n3bqjvm8404091acqyma"))))
6193563a
RW
8907 (build-system r-build-system)
8908 (propagated-inputs
8909 `(("r-biocgenerics" ,r-biocgenerics)
8910 ("r-genomicranges" ,r-genomicranges)
8911 ("r-iranges" ,r-iranges)
eeaa6967 8912 ("r-lattice" ,r-lattice)
6193563a
RW
8913 ("r-s4vectors" ,r-s4vectors)
8914 ("r-shortread" ,r-shortread)))
5713bbf1 8915 (home-page "https://bioconductor.org/packages/chipseq")
6193563a
RW
8916 (synopsis "Package for analyzing ChIPseq data")
8917 (description
8918 "This package provides tools for processing short read data from ChIPseq
8919experiments.")
8920 (license license:artistic2.0)))
d407bdb9
RW
8921
8922(define-public r-copyhelper
8923 (package
8924 (name "r-copyhelper")
8925 (version "1.6.0")
8926 (source
8927 (origin
8928 (method url-fetch)
5713bbf1 8929 (uri (string-append "https://bioconductor.org/packages/release/"
d407bdb9
RW
8930 "data/experiment/src/contrib/CopyhelpeR_"
8931 version ".tar.gz"))
8932 (sha256
8933 (base32
8934 "0x7cyynjmxls9as2gg0iyp9x5fpalxmdjq914ss7i84i9zyk5bhq"))))
8935 (properties `((upstream-name . "CopyhelpeR")))
8936 (build-system r-build-system)
5713bbf1 8937 (home-page "https://bioconductor.org/packages/CopyhelpeR/")
d407bdb9
RW
8938 (synopsis "Helper files for CopywriteR")
8939 (description
8940 "This package contains the helper files that are required to run the
8941Bioconductor package CopywriteR. It contains pre-assembled 1kb bin GC-content
8942and mappability files for the reference genomes hg18, hg19, hg38, mm9 and
8943mm10. In addition, it contains a blacklist filter to remove regions that
8944display copy number variation. Files are stored as GRanges objects from the
8945GenomicRanges Bioconductor package.")
8946 (license license:gpl2)))
3a3bf2f8
RW
8947
8948(define-public r-copywriter
8949 (package
8950 (name "r-copywriter")
59bef6ea 8951 (version "2.16.0")
3a3bf2f8
RW
8952 (source
8953 (origin
8954 (method url-fetch)
8955 (uri (bioconductor-uri "CopywriteR" version))
8956 (sha256
8957 (base32
59bef6ea 8958 "0kv3k58wyyicq1hhq7bddh0v3b2ksz6fa47skvnp8f193csza9g6"))))
3a3bf2f8
RW
8959 (properties `((upstream-name . "CopywriteR")))
8960 (build-system r-build-system)
8961 (propagated-inputs
8962 `(("r-biocparallel" ,r-biocparallel)
8963 ("r-chipseq" ,r-chipseq)
8964 ("r-copyhelper" ,r-copyhelper)
8965 ("r-data-table" ,r-data-table)
8966 ("r-dnacopy" ,r-dnacopy)
8967 ("r-futile-logger" ,r-futile-logger)
8968 ("r-genomeinfodb" ,r-genomeinfodb)
8969 ("r-genomicalignments" ,r-genomicalignments)
8970 ("r-genomicranges" ,r-genomicranges)
8971 ("r-gtools" ,r-gtools)
8972 ("r-iranges" ,r-iranges)
8973 ("r-matrixstats" ,r-matrixstats)
8974 ("r-rsamtools" ,r-rsamtools)
8975 ("r-s4vectors" ,r-s4vectors)))
8976 (home-page "https://github.com/PeeperLab/CopywriteR")
8977 (synopsis "Copy number information from targeted sequencing")
8978 (description
8979 "CopywriteR extracts DNA copy number information from targeted sequencing
8980by utilizing off-target reads. It allows for extracting uniformly distributed
8981copy number information, can be used without reference, and can be applied to
8982sequencing data obtained from various techniques including chromatin
8983immunoprecipitation and target enrichment on small gene panels. Thereby,
8984CopywriteR constitutes a widely applicable alternative to available copy
8985number detection tools.")
8986 (license license:gpl2)))
dd42a330 8987
bf3fa996
RW
8988(define-public r-methylkit
8989 (package
8990 (name "r-methylkit")
c20426ec 8991 (version "1.8.1")
bf3fa996
RW
8992 (source (origin
8993 (method url-fetch)
8994 (uri (bioconductor-uri "methylKit" version))
8995 (sha256
8996 (base32
c20426ec 8997 "1zcfwy7i10aqgnf7r0c41hakb5aai3s3n9y8pc6a98vimz51ly2z"))))
bf3fa996
RW
8998 (properties `((upstream-name . "methylKit")))
8999 (build-system r-build-system)
9000 (propagated-inputs
9001 `(("r-data-table" ,r-data-table)
9002 ("r-emdbook" ,r-emdbook)
9003 ("r-fastseg" ,r-fastseg)
9004 ("r-genomeinfodb" ,r-genomeinfodb)
9005 ("r-genomicranges" ,r-genomicranges)
9006 ("r-gtools" ,r-gtools)
9007 ("r-iranges" ,r-iranges)
9008 ("r-kernsmooth" ,r-kernsmooth)
9009 ("r-limma" ,r-limma)
9010 ("r-mclust" ,r-mclust)
9011 ("r-qvalue" ,r-qvalue)
9012 ("r-r-utils" ,r-r-utils)
9013 ("r-rcpp" ,r-rcpp)
9014 ("r-rhtslib" ,r-rhtslib)
9015 ("r-rsamtools" ,r-rsamtools)
9016 ("r-rtracklayer" ,r-rtracklayer)
9017 ("r-s4vectors" ,r-s4vectors)
9018 ("r-zlibbioc" ,r-zlibbioc)))
9019 (inputs
9020 `(("zlib" ,zlib)))
11ed4108 9021 (home-page "https://github.com/al2na/methylKit")
bf3fa996
RW
9022 (synopsis
9023 "DNA methylation analysis from high-throughput bisulfite sequencing results")
9024 (description
9025 "MethylKit is an R package for DNA methylation analysis and annotation
9026from high-throughput bisulfite sequencing. The package is designed to deal
9027with sequencing data from @dfn{Reduced representation bisulfite
9028sequencing} (RRBS) and its variants, but also target-capture methods and whole
9029genome bisulfite sequencing. It also has functions to analyze base-pair
9030resolution 5hmC data from experimental protocols such as oxBS-Seq and
9031TAB-Seq.")
9032 (license license:artistic2.0)))
9033
dd42a330
RJPB
9034(define-public r-sva
9035 (package
9036 (name "r-sva")
10cb9919 9037 (version "3.32.0")
dd42a330
RJPB
9038 (source
9039 (origin
9040 (method url-fetch)
9041 (uri (bioconductor-uri "sva" version))
9042 (sha256
9043 (base32
10cb9919 9044 "100jwi43y4xdqb5lldx1ld58jg9icdjgz6c7ylx95gspipnkbgjp"))))
dd42a330
RJPB
9045 (build-system r-build-system)
9046 (propagated-inputs
aeb64f3c 9047 `(("r-genefilter" ,r-genefilter)
bfa0d1e7
RJ
9048 ("r-mgcv" ,r-mgcv)
9049 ("r-biocparallel" ,r-biocparallel)
9050 ("r-matrixstats" ,r-matrixstats)
9051 ("r-limma" ,r-limma)))
5713bbf1 9052 (home-page "https://bioconductor.org/packages/sva")
dd42a330
RJPB
9053 (synopsis "Surrogate variable analysis")
9054 (description
9055 "This package contains functions for removing batch effects and other
9056unwanted variation in high-throughput experiment. It also contains functions
9057for identifying and building surrogate variables for high-dimensional data
9058sets. Surrogate variables are covariates constructed directly from
9059high-dimensional data like gene expression/RNA sequencing/methylation/brain
9060imaging data that can be used in subsequent analyses to adjust for unknown,
9061unmodeled, or latent sources of noise.")
9062 (license license:artistic2.0)))
fb1e528e
RW
9063
9064(define-public r-seqminer
9065 (package
9066 (name "r-seqminer")
80c4e75b 9067 (version "7.1")
fb1e528e
RW
9068 (source
9069 (origin
9070 (method url-fetch)
9071 (uri (cran-uri "seqminer" version))
9072 (sha256
9073 (base32
80c4e75b 9074 "1jydcpkw4rwfp983j83kipvsvr10as9pb49zzn3c2v09k1gh3ymy"))))
fb1e528e
RW
9075 (build-system r-build-system)
9076 (inputs
9077 `(("zlib" ,zlib)))
9078 (home-page "http://seqminer.genomic.codes")
9079 (synopsis "Read nucleotide sequence data (VCF, BCF, and METAL formats)")
9080 (description
9081 "This package provides tools to integrate nucleotide sequencing
9082data (variant call format, e.g. VCF or BCF) or meta-analysis results in R.")
9083 ;; Any version of the GPL is acceptable
9084 (license (list license:gpl2+ license:gpl3+))))
1f40e73c
RW
9085
9086(define-public r-raremetals2
9087 (package
9088 (name "r-raremetals2")
9089 (version "0.1")
9090 (source
9091 (origin
9092 (method url-fetch)
9093 (uri (string-append "http://genome.sph.umich.edu/w/images/"
9094 "b/b7/RareMETALS2_" version ".tar.gz"))
9095 (sha256
9096 (base32
9097 "0z5ljcgvnm06ja9lm85a3cniq7slxcy37aqqkxrdidr79an5fs4s"))))
9098 (properties `((upstream-name . "RareMETALS2")))
9099 (build-system r-build-system)
9100 (propagated-inputs
9101 `(("r-seqminer" ,r-seqminer)
9102 ("r-mvtnorm" ,r-mvtnorm)
aeb64f3c 9103 ("r-mass" ,r-mass)
1f40e73c
RW
9104 ("r-compquadform" ,r-compquadform)
9105 ("r-getopt" ,r-getopt)))
9106 (home-page "http://genome.sph.umich.edu/wiki/RareMETALS2")
9107 (synopsis "Analyze gene-level association tests for binary trait")
9108 (description
9109 "The R package rareMETALS2 is an extension of the R package rareMETALS.
9110It was designed to meta-analyze gene-level association tests for binary trait.
9111While rareMETALS offers a near-complete solution for meta-analysis of
9112gene-level tests for quantitative trait, it does not offer the optimal
9113solution for binary trait. The package rareMETALS2 offers improved features
9114for analyzing gene-level association tests in meta-analyses for binary
9115trait.")
9116 (license license:gpl3)))
0e7d058e
RW
9117
9118(define-public r-maldiquant
9119 (package
9120 (name "r-maldiquant")
db39269c 9121 (version "1.19.2")
0e7d058e
RW
9122 (source
9123 (origin
9124 (method url-fetch)
9125 (uri (cran-uri "MALDIquant" version))
9126 (sha256
9127 (base32
db39269c 9128 "11zbvm1vw8zn2vmymvydgdczvwj961s2knvrn1q4gbziwi5gqvlc"))))
0e7d058e
RW
9129 (properties `((upstream-name . "MALDIquant")))
9130 (build-system r-build-system)
e9960d8c 9131 (home-page "https://cran.r-project.org/web/packages/MALDIquant")
0e7d058e
RW
9132 (synopsis "Quantitative analysis of mass spectrometry data")
9133 (description
9134 "This package provides a complete analysis pipeline for matrix-assisted
9135laser desorption/ionization-time-of-flight (MALDI-TOF) and other
9136two-dimensional mass spectrometry data. In addition to commonly used plotting
9137and processing methods it includes distinctive features, namely baseline
9138subtraction methods such as morphological filters (TopHat) or the
9139statistics-sensitive non-linear iterative peak-clipping algorithm (SNIP), peak
9140alignment using warping functions, handling of replicated measurements as well
9141as allowing spectra with different resolutions.")
9142 (license license:gpl3+)))
ae262174
RW
9143
9144(define-public r-protgenerics
9145 (package
9146 (name "r-protgenerics")
24aabd8f 9147 (version "1.16.0")
ae262174
RW
9148 (source
9149 (origin
9150 (method url-fetch)
9151 (uri (bioconductor-uri "ProtGenerics" version))
9152 (sha256
9153 (base32
24aabd8f 9154 "12jjwmg58b4xbivxlw4pffq0qfi2c1c5hyrci0sfyphrc99fvx0i"))))
ae262174
RW
9155 (properties `((upstream-name . "ProtGenerics")))
9156 (build-system r-build-system)
9157 (home-page "https://github.com/lgatto/ProtGenerics")
9158 (synopsis "S4 generic functions for proteomics infrastructure")
9159 (description
9160 "This package provides S4 generic functions needed by Bioconductor
9161proteomics packages.")
9162 (license license:artistic2.0)))
71676a1f
RW
9163
9164(define-public r-mzr
9165 (package
9166 (name "r-mzr")
5498cc46 9167 (version "2.18.0")
71676a1f
RW
9168 (source
9169 (origin
9170 (method url-fetch)
9171 (uri (bioconductor-uri "mzR" version))
9172 (sha256
9173 (base32
5498cc46 9174 "0g5r6yk4gyz0xdwlmrcij4zv7apdgsgygr043095l33hard6nsl5"))
15ca1959
RW
9175 (modules '((guix build utils)))
9176 (snippet
9177 '(begin
9178 (delete-file-recursively "src/boost")
9179 #t))))
71676a1f
RW
9180 (properties `((upstream-name . "mzR")))
9181 (build-system r-build-system)
15ca1959
RW
9182 (arguments
9183 `(#:phases
9184 (modify-phases %standard-phases
9185 (add-after 'unpack 'use-system-boost
9186 (lambda _
9187 (substitute* "src/Makevars"
9188 (("\\./boost/libs.*") "")
9189 (("ARCH_OBJS=" line)
9190 (string-append line
9191 "\nARCH_LIBS=-lboost_system -lboost_regex \
9192-lboost_iostreams -lboost_thread -lboost_filesystem -lboost_chrono\n")))
9193 #t)))))
71676a1f 9194 (inputs
183b6575
RW
9195 `(;; XXX Boost 1.69 will not work here.
9196 ("boost" ,boost-for-mysql) ; use this instead of the bundled boost sources
39cc4917 9197 ("zlib" ,zlib)))
71676a1f
RW
9198 (propagated-inputs
9199 `(("r-biobase" ,r-biobase)
9200 ("r-biocgenerics" ,r-biocgenerics)
92551984 9201 ("r-ncdf4" ,r-ncdf4)
71676a1f
RW
9202 ("r-protgenerics" ,r-protgenerics)
9203 ("r-rcpp" ,r-rcpp)
39cc4917 9204 ("r-rhdf5lib" ,r-rhdf5lib)
71676a1f
RW
9205 ("r-zlibbioc" ,r-zlibbioc)))
9206 (home-page "https://github.com/sneumann/mzR/")
9207 (synopsis "Parser for mass spectrometry data files")
9208 (description
9209 "The mzR package provides a unified API to the common file formats and
9210parsers available for mass spectrometry data. It comes with a wrapper for the
9211ISB random access parser for mass spectrometry mzXML, mzData and mzML files.
9212The package contains the original code written by the ISB, and a subset of the
9213proteowizard library for mzML and mzIdentML. The netCDF reading code has
9214previously been used in XCMS.")
9215 (license license:artistic2.0)))
5c9d1505
RW
9216
9217(define-public r-affyio
9218 (package
9219 (name "r-affyio")
fdbaa5c1 9220 (version "1.54.0")
5c9d1505
RW
9221 (source
9222 (origin
9223 (method url-fetch)
9224 (uri (bioconductor-uri "affyio" version))
9225 (sha256
9226 (base32
fdbaa5c1 9227 "1s78hm51fgac3i2j4bbdy0z6g14370154s6km8lldc9zpahx8b6p"))))
5c9d1505
RW
9228 (build-system r-build-system)
9229 (propagated-inputs
9230 `(("r-zlibbioc" ,r-zlibbioc)))
9231 (inputs
9232 `(("zlib" ,zlib)))
9233 (home-page "https://github.com/bmbolstad/affyio")
9234 (synopsis "Tools for parsing Affymetrix data files")
9235 (description
9236 "This package provides routines for parsing Affymetrix data files based
9237upon file format information. The primary focus is on accessing the CEL and
9238CDF file formats.")
9239 (license license:lgpl2.0+)))
05c7e5fb
RW
9240
9241(define-public r-affy
9242 (package
9243 (name "r-affy")
15f240e3 9244 (version "1.62.0")
05c7e5fb
RW
9245 (source
9246 (origin
9247 (method url-fetch)
9248 (uri (bioconductor-uri "affy" version))
9249 (sha256
9250 (base32
15f240e3 9251 "05vz0vf3472s1ivfhc0gc8yz98y4rvvp7cf6kfbxhy1b23im1bgk"))))
05c7e5fb
RW
9252 (build-system r-build-system)
9253 (propagated-inputs
9254 `(("r-affyio" ,r-affyio)
9255 ("r-biobase" ,r-biobase)
9256 ("r-biocgenerics" ,r-biocgenerics)
2b085484 9257 ("r-biocmanager" ,r-biocmanager)
05c7e5fb
RW
9258 ("r-preprocesscore" ,r-preprocesscore)
9259 ("r-zlibbioc" ,r-zlibbioc)))
5837f183
RW
9260 (inputs
9261 `(("zlib" ,zlib)))
5713bbf1 9262 (home-page "https://bioconductor.org/packages/affy")
05c7e5fb
RW
9263 (synopsis "Methods for affymetrix oligonucleotide arrays")
9264 (description
9265 "This package contains functions for exploratory oligonucleotide array
9266analysis.")
9267 (license license:lgpl2.0+)))
7c08afaf
RW
9268
9269(define-public r-vsn
9270 (package
9271 (name "r-vsn")
9421e6b6 9272 (version "3.52.0")
7c08afaf
RW
9273 (source
9274 (origin
9275 (method url-fetch)
9276 (uri (bioconductor-uri "vsn" version))
9277 (sha256
9278 (base32
9421e6b6 9279 "1vqmyxg06kgq9m3w6n0jykqm4jgsjw879r4s216wlcq4xc94dh1r"))))
7c08afaf
RW
9280 (build-system r-build-system)
9281 (propagated-inputs
9282 `(("r-affy" ,r-affy)
9283 ("r-biobase" ,r-biobase)
9284 ("r-ggplot2" ,r-ggplot2)
aeb64f3c 9285 ("r-lattice" ,r-lattice)
7c08afaf 9286 ("r-limma" ,r-limma)))
5713bbf1 9287 (home-page "https://bioconductor.org/packages/release/bioc/html/vsn.html")
7c08afaf
RW
9288 (synopsis "Variance stabilization and calibration for microarray data")
9289 (description
9290 "The package implements a method for normalising microarray intensities,
9291and works for single- and multiple-color arrays. It can also be used for data
9292from other technologies, as long as they have similar format. The method uses
9293a robust variant of the maximum-likelihood estimator for an
9294additive-multiplicative error model and affine calibration. The model
9295incorporates data calibration step (a.k.a. normalization), a model for the
9296dependence of the variance on the mean intensity and a variance stabilizing
9297data transformation. Differences between transformed intensities are
9298analogous to \"normalized log-ratios\". However, in contrast to the latter,
9299their variance is independent of the mean, and they are usually more sensitive
9300and specific in detecting differential transcription.")
9301 (license license:artistic2.0)))
4aa7d592
RW
9302
9303(define-public r-mzid
9304 (package
9305 (name "r-mzid")
f955afda 9306 (version "1.22.0")
4aa7d592
RW
9307 (source
9308 (origin
9309 (method url-fetch)
9310 (uri (bioconductor-uri "mzID" version))
9311 (sha256
9312 (base32
f955afda 9313 "0vnyg7jlmy7ain7gmjwhqyqr664znrvrdlh7zd63563vhb87qarn"))))
4aa7d592
RW
9314 (properties `((upstream-name . "mzID")))
9315 (build-system r-build-system)
9316 (propagated-inputs
9317 `(("r-doparallel" ,r-doparallel)
9318 ("r-foreach" ,r-foreach)
9319 ("r-iterators" ,r-iterators)
9320 ("r-plyr" ,r-plyr)
9321 ("r-protgenerics" ,r-protgenerics)
9322 ("r-rcpp" ,r-rcpp)
9323 ("r-xml" ,r-xml)))
5713bbf1 9324 (home-page "https://bioconductor.org/packages/mzID")
4aa7d592
RW
9325 (synopsis "Parser for mzIdentML files")
9326 (description
9327 "This package provides a parser for mzIdentML files implemented using the
9328XML package. The parser tries to be general and able to handle all types of
9329mzIdentML files with the drawback of having less pretty output than a vendor
9330specific parser.")
9331 (license license:gpl2+)))
6a67e181
RW
9332
9333(define-public r-pcamethods
9334 (package
9335 (name "r-pcamethods")
ee386fcb 9336 (version "1.76.0")
6a67e181
RW
9337 (source
9338 (origin
9339 (method url-fetch)
9340 (uri (bioconductor-uri "pcaMethods" version))
9341 (sha256
9342 (base32
ee386fcb 9343 "0svf4n7l0afy4wwgs6x8x4dm330r3311l5vmsxw2f0r4axkh3bzk"))))
6a67e181
RW
9344 (properties `((upstream-name . "pcaMethods")))
9345 (build-system r-build-system)
9346 (propagated-inputs
9347 `(("r-biobase" ,r-biobase)
9348 ("r-biocgenerics" ,r-biocgenerics)
aeb64f3c 9349 ("r-mass" ,r-mass)
6a67e181
RW
9350 ("r-rcpp" ,r-rcpp)))
9351 (home-page "https://github.com/hredestig/pcamethods")
9352 (synopsis "Collection of PCA methods")
9353 (description
9354 "This package provides Bayesian PCA, Probabilistic PCA, Nipals PCA,
9355Inverse Non-Linear PCA and the conventional SVD PCA. A cluster based method
9356for missing value estimation is included for comparison. BPCA, PPCA and
9357NipalsPCA may be used to perform PCA on incomplete data as well as for
9358accurate missing value estimation. A set of methods for printing and plotting
9359the results is also provided. All PCA methods make use of the same data
9360structure (pcaRes) to provide a common interface to the PCA results.")
9361 (license license:gpl3+)))
11879284
RW
9362
9363(define-public r-msnbase
9364 (package
9365 (name "r-msnbase")
b65c2649 9366 (version "2.10.0")
11879284
RW
9367 (source
9368 (origin
9369 (method url-fetch)
9370 (uri (bioconductor-uri "MSnbase" version))
9371 (sha256
9372 (base32
b65c2649 9373 "1lqdlyvs2c9g55zf8gnw142ps4jid644fhfvclnax7sjjwrqdjzv"))))
11879284
RW
9374 (properties `((upstream-name . "MSnbase")))
9375 (build-system r-build-system)
9376 (propagated-inputs
9377 `(("r-affy" ,r-affy)
9378 ("r-biobase" ,r-biobase)
9379 ("r-biocgenerics" ,r-biocgenerics)
9380 ("r-biocparallel" ,r-biocparallel)
9381 ("r-digest" ,r-digest)
9382 ("r-ggplot2" ,r-ggplot2)
9383 ("r-impute" ,r-impute)
9384 ("r-iranges" ,r-iranges)
baa00ee9 9385 ("r-lattice" ,r-lattice)
11879284 9386 ("r-maldiquant" ,r-maldiquant)
250d78ea 9387 ("r-mass" ,r-mass)
11879284
RW
9388 ("r-mzid" ,r-mzid)
9389 ("r-mzr" ,r-mzr)
9390 ("r-pcamethods" ,r-pcamethods)
9391 ("r-plyr" ,r-plyr)
9392 ("r-preprocesscore" ,r-preprocesscore)
9393 ("r-protgenerics" ,r-protgenerics)
9394 ("r-rcpp" ,r-rcpp)
11879284 9395 ("r-s4vectors" ,r-s4vectors)
250d78ea 9396 ("r-scales" ,r-scales)
11879284
RW
9397 ("r-vsn" ,r-vsn)
9398 ("r-xml" ,r-xml)))
9399 (home-page "https://github.com/lgatto/MSnbase")
9400 (synopsis "Base functions and classes for MS-based proteomics")
9401 (description
9402 "This package provides basic plotting, data manipulation and processing
e614d639 9403of mass spectrometry based proteomics data.")
11879284 9404 (license license:artistic2.0)))
66da3a9f
RW
9405
9406(define-public r-msnid
9407 (package
9408 (name "r-msnid")
9abf344f 9409 (version "1.16.1")
66da3a9f
RW
9410 (source
9411 (origin
9412 (method url-fetch)
9413 (uri (bioconductor-uri "MSnID" version))
9414 (sha256
9415 (base32
9abf344f 9416 "077n6ljcnnl7q4w0qj8v46vm4sjk9vzzfqf7wsc6lz0wmyzqdng3"))))
66da3a9f
RW
9417 (properties `((upstream-name . "MSnID")))
9418 (build-system r-build-system)
9419 (propagated-inputs
9420 `(("r-biobase" ,r-biobase)
9421 ("r-data-table" ,r-data-table)
9422 ("r-doparallel" ,r-doparallel)
9423 ("r-dplyr" ,r-dplyr)
9424 ("r-foreach" ,r-foreach)
9425 ("r-iterators" ,r-iterators)
9426 ("r-msnbase" ,r-msnbase)
9427 ("r-mzid" ,r-mzid)
9428 ("r-mzr" ,r-mzr)
9429 ("r-protgenerics" ,r-protgenerics)
9430 ("r-r-cache" ,r-r-cache)
9431 ("r-rcpp" ,r-rcpp)
9432 ("r-reshape2" ,r-reshape2)))
5713bbf1 9433 (home-page "https://bioconductor.org/packages/MSnID")
66da3a9f
RW
9434 (synopsis "Utilities for LC-MSn proteomics identifications")
9435 (description
2923f3e5
RW
9436 "This package extracts @dfn{tandem mass spectrometry} (MS/MS) ID data
9437from mzIdentML (leveraging the mzID package) or text files. After collating
9438the search results from multiple datasets it assesses their identification
9439quality and optimize filtering criteria to achieve the maximum number of
9440identifications while not exceeding a specified false discovery rate. It also
9441contains a number of utilities to explore the MS/MS results and assess missed
9442and irregular enzymatic cleavages, mass measurement accuracy, etc.")
66da3a9f 9443 (license license:artistic2.0)))
5ded35d8 9444
2441c284 9445(define-public r-seurat
f1a2b1cb
RW
9446 (package
9447 (name "r-seurat")
296da6e6 9448 (version "3.0.0")
f1a2b1cb
RW
9449 (source (origin
9450 (method url-fetch)
9451 (uri (cran-uri "Seurat" version))
9452 (sha256
9453 (base32
296da6e6 9454 "183lm2wk0i3g114jbdf7pb4ssizr48qzqv3cknbsiackr8kvpsvc"))))
f1a2b1cb
RW
9455 (properties `((upstream-name . "Seurat")))
9456 (build-system r-build-system)
f1a2b1cb
RW
9457 (propagated-inputs
9458 `(("r-ape" ,r-ape)
c36ce476 9459 ("r-cluster" ,r-cluster)
f1a2b1cb 9460 ("r-cowplot" ,r-cowplot)
c36ce476 9461 ("r-fitdistrplus" ,r-fitdistrplus)
296da6e6
RW
9462 ("r-future" ,r-future)
9463 ("r-future-apply" ,r-future-apply)
f1a2b1cb 9464 ("r-ggplot2" ,r-ggplot2)
296da6e6 9465 ("r-ggrepel" ,r-ggrepel)
26e3e28c 9466 ("r-ggridges" ,r-ggridges)
f1a2b1cb
RW
9467 ("r-ica" ,r-ica)
9468 ("r-igraph" ,r-igraph)
9469 ("r-irlba" ,r-irlba)
296da6e6 9470 ("r-kernsmooth" ,r-kernsmooth)
c36ce476 9471 ("r-lmtest" ,r-lmtest)
f1a2b1cb
RW
9472 ("r-mass" ,r-mass)
9473 ("r-matrix" ,r-matrix)
ebec98ae 9474 ("r-metap" ,r-metap)
f1a2b1cb
RW
9475 ("r-pbapply" ,r-pbapply)
9476 ("r-plotly" ,r-plotly)
c36ce476 9477 ("r-png" ,r-png)
c36ce476 9478 ("r-rann" ,r-rann)
f1a2b1cb
RW
9479 ("r-rcolorbrewer" ,r-rcolorbrewer)
9480 ("r-rcpp" ,r-rcpp)
26e3e28c 9481 ("r-rcppeigen" ,r-rcppeigen)
f1a2b1cb 9482 ("r-rcppprogress" ,r-rcppprogress)
ce8b9e3b 9483 ("r-reticulate" ,r-reticulate)
296da6e6 9484 ("r-rlang" ,r-rlang)
f1a2b1cb 9485 ("r-rocr" ,r-rocr)
296da6e6 9486 ("r-rsvd" ,r-rsvd)
f1a2b1cb 9487 ("r-rtsne" ,r-rtsne)
296da6e6
RW
9488 ("r-scales" ,r-scales)
9489 ("r-sctransform" ,r-sctransform)
f1a2b1cb 9490 ("r-sdmtools" ,r-sdmtools)
6f6aef80 9491 ("r-tsne" ,r-tsne)))
f1a2b1cb
RW
9492 (home-page "http://www.satijalab.org/seurat")
9493 (synopsis "Seurat is an R toolkit for single cell genomics")
9494 (description
9495 "This package is an R package designed for QC, analysis, and
2441c284
RJPB
9496exploration of single cell RNA-seq data. It easily enables widely-used
9497analytical techniques, including the identification of highly variable genes,
9498dimensionality reduction; PCA, ICA, t-SNE, standard unsupervised clustering
9499algorithms; density clustering, hierarchical clustering, k-means, and the
9500discovery of differentially expressed genes and markers.")
f1a2b1cb 9501 (license license:gpl3)))
2441c284 9502
d4b83651
RW
9503(define-public r-aroma-light
9504 (package
9505 (name "r-aroma-light")
800954eb 9506 (version "3.12.0")
d4b83651
RW
9507 (source
9508 (origin
9509 (method url-fetch)
9510 (uri (bioconductor-uri "aroma.light" version))
9511 (sha256
9512 (base32
800954eb 9513 "0vfifgpqxjjncbiv6gvlk9jmj14j90r9f30bqk3ks9v1csjnjhrb"))))
d4b83651
RW
9514 (properties `((upstream-name . "aroma.light")))
9515 (build-system r-build-system)
9516 (propagated-inputs
9517 `(("r-matrixstats" ,r-matrixstats)
9518 ("r-r-methodss3" ,r-r-methodss3)
9519 ("r-r-oo" ,r-r-oo)
9520 ("r-r-utils" ,r-r-utils)))
9521 (home-page "https://github.com/HenrikBengtsson/aroma.light")
9522 (synopsis "Methods for normalization and visualization of microarray data")
9523 (description
9524 "This package provides methods for microarray analysis that take basic
9525data types such as matrices and lists of vectors. These methods can be used
9526standalone, be utilized in other packages, or be wrapped up in higher-level
9527classes.")
9528 (license license:gpl2+)))
9529
7b465327
RW
9530(define-public r-deseq
9531 (package
9532 (name "r-deseq")
3bdc41b3 9533 (version "1.34.1")
7b465327
RW
9534 (source
9535 (origin
9536 (method url-fetch)
9537 (uri (bioconductor-uri "DESeq" version))
9538 (sha256
9539 (base32
3bdc41b3 9540 "0bpiixczbhlyaiinpbl6xrpmv72k2bq76bxnw06gl35m4pgs94p2"))))
7b465327
RW
9541 (properties `((upstream-name . "DESeq")))
9542 (build-system r-build-system)
9543 (propagated-inputs
9544 `(("r-biobase" ,r-biobase)
9545 ("r-biocgenerics" ,r-biocgenerics)
9546 ("r-genefilter" ,r-genefilter)
9547 ("r-geneplotter" ,r-geneplotter)
9548 ("r-lattice" ,r-lattice)
9549 ("r-locfit" ,r-locfit)
9550 ("r-mass" ,r-mass)
9551 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9552 (home-page "http://www-huber.embl.de/users/anders/DESeq")
9553 (synopsis "Differential gene expression analysis")
9554 (description
9555 "This package provides tools for estimating variance-mean dependence in
9556count data from high-throughput genetic sequencing assays and for testing for
9557differential expression based on a model using the negative binomial
9558distribution.")
9559 (license license:gpl3+)))
9560
296b3c63
RW
9561(define-public r-edaseq
9562 (package
9563 (name "r-edaseq")
ab4a862a 9564 (version "2.16.3")
296b3c63
RW
9565 (source
9566 (origin
9567 (method url-fetch)
9568 (uri (bioconductor-uri "EDASeq" version))
9569 (sha256
9570 (base32
ab4a862a 9571 "0559ph606ps2g9bwbl0a2knkcs5w581n9igngpjxvk5p56k24gb5"))))
296b3c63
RW
9572 (properties `((upstream-name . "EDASeq")))
9573 (build-system r-build-system)
9574 (propagated-inputs
9575 `(("r-annotationdbi" ,r-annotationdbi)
9576 ("r-aroma-light" ,r-aroma-light)
9577 ("r-biobase" ,r-biobase)
9578 ("r-biocgenerics" ,r-biocgenerics)
ab4a862a 9579 ("r-biocmanager" ,r-biocmanager)
296b3c63
RW
9580 ("r-biomart" ,r-biomart)
9581 ("r-biostrings" ,r-biostrings)
9582 ("r-deseq" ,r-deseq)
9583 ("r-genomicfeatures" ,r-genomicfeatures)
9584 ("r-genomicranges" ,r-genomicranges)
9585 ("r-iranges" ,r-iranges)
9586 ("r-rsamtools" ,r-rsamtools)
9587 ("r-shortread" ,r-shortread)))
9588 (home-page "https://github.com/drisso/EDASeq")
9589 (synopsis "Exploratory data analysis and normalization for RNA-Seq")
9590 (description
9591 "This package provides support for numerical and graphical summaries of
9592RNA-Seq genomic read data. Provided within-lane normalization procedures to
9593adjust for GC-content effect (or other gene-level effects) on read counts:
9594loess robust local regression, global-scaling, and full-quantile
9595normalization. Between-lane normalization procedures to adjust for
9596distributional differences between lanes (e.g., sequencing depth):
9597global-scaling and full-quantile normalization.")
9598 (license license:artistic2.0)))
9599
5f96f30f
RW
9600(define-public r-interactivedisplaybase
9601 (package
9602 (name "r-interactivedisplaybase")
d7ea34bf 9603 (version "1.20.0")
5f96f30f
RW
9604 (source
9605 (origin
9606 (method url-fetch)
9607 (uri (bioconductor-uri "interactiveDisplayBase" version))
9608 (sha256
9609 (base32
d7ea34bf 9610 "04xz3dkwan2s5ic1mwkdfnggm0l41mgqfagx160bcsrpkw6z7ark"))))
5f96f30f
RW
9611 (properties
9612 `((upstream-name . "interactiveDisplayBase")))
9613 (build-system r-build-system)
9614 (propagated-inputs
9615 `(("r-biocgenerics" ,r-biocgenerics)
9616 ("r-shiny" ,r-shiny)))
5713bbf1 9617 (home-page "https://bioconductor.org/packages/interactiveDisplayBase")
5f96f30f
RW
9618 (synopsis "Base package for web displays of Bioconductor objects")
9619 (description
9620 "This package contains the basic methods needed to generate interactive
9621Shiny-based display methods for Bioconductor objects.")
9622 (license license:artistic2.0)))
9623
4a007ffa
RW
9624(define-public r-annotationhub
9625 (package
9626 (name "r-annotationhub")
933cc196 9627 (version "2.14.5")
4a007ffa
RW
9628 (source
9629 (origin
9630 (method url-fetch)
9631 (uri (bioconductor-uri "AnnotationHub" version))
9632 (sha256
9633 (base32
933cc196 9634 "0iyrxaijl4614iz5c1j53227xy2g756p3bx7hcwglcybh0k30nki"))))
4a007ffa
RW
9635 (properties `((upstream-name . "AnnotationHub")))
9636 (build-system r-build-system)
9637 (propagated-inputs
9638 `(("r-annotationdbi" ,r-annotationdbi)
9639 ("r-biocgenerics" ,r-biocgenerics)
147633d4 9640 ("r-biocmanager" ,r-biocmanager)
14b3c719 9641 ("r-curl" ,r-curl)
4a007ffa
RW
9642 ("r-httr" ,r-httr)
9643 ("r-interactivedisplaybase" ,r-interactivedisplaybase)
9644 ("r-rsqlite" ,r-rsqlite)
9645 ("r-s4vectors" ,r-s4vectors)
9646 ("r-yaml" ,r-yaml)))
5713bbf1 9647 (home-page "https://bioconductor.org/packages/AnnotationHub")
4a007ffa
RW
9648 (synopsis "Client to access AnnotationHub resources")
9649 (description
9650 "This package provides a client for the Bioconductor AnnotationHub web
9651resource. The AnnotationHub web resource provides a central location where
9652genomic files (e.g. VCF, bed, wig) and other resources from standard
9653locations (e.g. UCSC, Ensembl) can be discovered. The resource includes
9654metadata about each resource, e.g., a textual description, tags, and date of
9655modification. The client creates and manages a local cache of files retrieved
9656by the user, helping with quick and reproducible access.")
9657 (license license:artistic2.0)))
9658
d4a1e918
RW
9659(define-public r-fastseg
9660 (package
9661 (name "r-fastseg")
95df764c 9662 (version "1.28.0")
d4a1e918
RW
9663 (source
9664 (origin
9665 (method url-fetch)
9666 (uri (bioconductor-uri "fastseg" version))
9667 (sha256
9668 (base32
95df764c 9669 "1l8mdjpfpgwqdss2ywjkb8b4h55wf8v6kmyxdlvy04ds2hj16sb1"))))
d4a1e918
RW
9670 (build-system r-build-system)
9671 (propagated-inputs
9672 `(("r-biobase" ,r-biobase)
9673 ("r-biocgenerics" ,r-biocgenerics)
9674 ("r-genomicranges" ,r-genomicranges)
9675 ("r-iranges" ,r-iranges)
9676 ("r-s4vectors" ,r-s4vectors)))
9677 (home-page "http://www.bioinf.jku.at/software/fastseg/index.html")
9678 (synopsis "Fast segmentation algorithm for genetic sequencing data")
9679 (description
9680 "Fastseg implements a very fast and efficient segmentation algorithm.
9681It can segment data from DNA microarrays and data from next generation
9682sequencing for example to detect copy number segments. Further it can segment
9683data from RNA microarrays like tiling arrays to identify transcripts. Most
9684generally, it can segment data given as a matrix or as a vector. Various data
9685formats can be used as input to fastseg like expression set objects for
9686microarrays or GRanges for sequencing data.")
9687 (license license:lgpl2.0+)))
9688
3121814e
RW
9689(define-public r-keggrest
9690 (package
9691 (name "r-keggrest")
49842127 9692 (version "1.22.0")
3121814e
RW
9693 (source
9694 (origin
9695 (method url-fetch)
9696 (uri (bioconductor-uri "KEGGREST" version))
9697 (sha256
9698 (base32
49842127 9699 "0blpd5a7whd2sswfhqd17h58hg06ymaf80gapdr9ja43hnnlj309"))))
3121814e
RW
9700 (properties `((upstream-name . "KEGGREST")))
9701 (build-system r-build-system)
9702 (propagated-inputs
9703 `(("r-biostrings" ,r-biostrings)
9704 ("r-httr" ,r-httr)
9705 ("r-png" ,r-png)))
9706 (home-page "https://bioconductor.org/packages/KEGGREST")
9707 (synopsis "Client-side REST access to KEGG")
9708 (description
9709 "This package provides a package that provides a client interface to the
9710@dfn{Kyoto Encyclopedia of Genes and Genomes} (KEGG) REST server.")
9711 (license license:artistic2.0)))
9712
e160aa1f
RW
9713(define-public r-gage
9714 (package
9715 (name "r-gage")
15d89fe9 9716 (version "2.32.1")
e160aa1f
RW
9717 (source
9718 (origin
9719 (method url-fetch)
9720 (uri (bioconductor-uri "gage" version))
9721 (sha256
9722 (base32
15d89fe9 9723 "02g796sb1800ff0f1mq9f2m5wwzpf8pnfzajs49i68dhq2hm01a8"))))
e160aa1f
RW
9724 (build-system r-build-system)
9725 (propagated-inputs
9726 `(("r-annotationdbi" ,r-annotationdbi)
9727 ("r-graph" ,r-graph)
9728 ("r-keggrest" ,r-keggrest)))
9729 (home-page "http://www.biomedcentral.com/1471-2105/10/161")
9730 (synopsis "Generally applicable gene-set enrichment for pathway analysis")
9731 (description
9732 "GAGE is a published method for gene set (enrichment or GSEA) or pathway
9733analysis. GAGE is generally applicable independent of microarray or RNA-Seq
9734data attributes including sample sizes, experimental designs, assay platforms,
9735and other types of heterogeneity. The gage package provides functions for
9736basic GAGE analysis, result processing and presentation. In addition, it
9737provides demo microarray data and commonly used gene set data based on KEGG
9738pathways and GO terms. These funtions and data are also useful for gene set
9739analysis using other methods.")
9740 (license license:gpl2+)))
9741
902fb15d
RW
9742(define-public r-genomicfiles
9743 (package
9744 (name "r-genomicfiles")
d78c6aca 9745 (version "1.18.0")
902fb15d
RW
9746 (source
9747 (origin
9748 (method url-fetch)
9749 (uri (bioconductor-uri "GenomicFiles" version))
9750 (sha256
9751 (base32
d78c6aca 9752 "0qf2yj4lfnnk64fk125n8sqms01shfqiik04nasx2z3k129ykpxp"))))
902fb15d
RW
9753 (properties `((upstream-name . "GenomicFiles")))
9754 (build-system r-build-system)
9755 (propagated-inputs
9756 `(("r-biocgenerics" ,r-biocgenerics)
9757 ("r-biocparallel" ,r-biocparallel)
9758 ("r-genomeinfodb" ,r-genomeinfodb)
9759 ("r-genomicalignments" ,r-genomicalignments)
9760 ("r-genomicranges" ,r-genomicranges)
9761 ("r-iranges" ,r-iranges)
9762 ("r-rsamtools" ,r-rsamtools)
9763 ("r-rtracklayer" ,r-rtracklayer)
9764 ("r-s4vectors" ,r-s4vectors)
9765 ("r-summarizedexperiment" ,r-summarizedexperiment)
9766 ("r-variantannotation" ,r-variantannotation)))
9767 (home-page "https://bioconductor.org/packages/GenomicFiles")
9768 (synopsis "Distributed computing by file or by range")
9769 (description
9770 "This package provides infrastructure for parallel computations
9771distributed by file or by range. User defined mapper and reducer functions
9772provide added flexibility for data combination and manipulation.")
9773 (license license:artistic2.0)))
9774
3af149f5
RW
9775(define-public r-complexheatmap
9776 (package
9777 (name "r-complexheatmap")
5ae5a8eb 9778 (version "1.20.0")
3af149f5
RW
9779 (source
9780 (origin
9781 (method url-fetch)
9782 (uri (bioconductor-uri "ComplexHeatmap" version))
9783 (sha256
9784 (base32
5ae5a8eb 9785 "0s01dzcfj1lmpqfpsbqw7r4858krfzy499lz4cwx4fq3mbyvy2aj"))))
3af149f5
RW
9786 (properties
9787 `((upstream-name . "ComplexHeatmap")))
9788 (build-system r-build-system)
9789 (propagated-inputs
9790 `(("r-circlize" ,r-circlize)
9791 ("r-colorspace" ,r-colorspace)
9792 ("r-getoptlong" ,r-getoptlong)
9793 ("r-globaloptions" ,r-globaloptions)
9794 ("r-rcolorbrewer" ,r-rcolorbrewer)))
9795 (home-page
9796 "https://github.com/jokergoo/ComplexHeatmap")
9797 (synopsis "Making Complex Heatmaps")
9798 (description
9799 "Complex heatmaps are efficient to visualize associations between
9800different sources of data sets and reveal potential structures. This package
9801provides a highly flexible way to arrange multiple heatmaps and supports
9802self-defined annotation graphics.")
9803 (license license:gpl2+)))
9804
04e2a2e9
RW
9805(define-public r-dirichletmultinomial
9806 (package
9807 (name "r-dirichletmultinomial")
43931ff7 9808 (version "1.24.1")
04e2a2e9
RW
9809 (source
9810 (origin
9811 (method url-fetch)
9812 (uri (bioconductor-uri "DirichletMultinomial" version))
9813 (sha256
9814 (base32
43931ff7 9815 "0vazfjzqy78p5g7dnv30lbqbj4bhq4zafd2wh6gdwy2il1fd78xa"))))
04e2a2e9
RW
9816 (properties
9817 `((upstream-name . "DirichletMultinomial")))
9818 (build-system r-build-system)
9819 (inputs
9820 `(("gsl" ,gsl)))
9821 (propagated-inputs
9822 `(("r-biocgenerics" ,r-biocgenerics)
9823 ("r-iranges" ,r-iranges)
9824 ("r-s4vectors" ,r-s4vectors)))
9825 (home-page "https://bioconductor.org/packages/DirichletMultinomial")
9826 (synopsis "Dirichlet-Multinomial mixture models for microbiome data")
9827 (description
9828 "Dirichlet-multinomial mixture models can be used to describe variability
9829in microbial metagenomic data. This package is an interface to code
9830originally made available by Holmes, Harris, and Quince, 2012, PLoS ONE 7(2):
98311-15.")
9832 (license license:lgpl3)))
9833
aa30ab5a
RW
9834(define-public r-ensembldb
9835 (package
9836 (name "r-ensembldb")
8f30d382 9837 (version "2.6.8")
aa30ab5a
RW
9838 (source
9839 (origin
9840 (method url-fetch)
9841 (uri (bioconductor-uri "ensembldb" version))
9842 (sha256
9843 (base32
8f30d382 9844 "0gijx2l2y00h6gfj3gfr7rd4vva6qf2vkfdfy5gdmvqlxy84ka38"))))
aa30ab5a
RW
9845 (build-system r-build-system)
9846 (propagated-inputs
9847 `(("r-annotationdbi" ,r-annotationdbi)
9848 ("r-annotationfilter" ,r-annotationfilter)
aa30ab5a
RW
9849 ("r-biobase" ,r-biobase)
9850 ("r-biocgenerics" ,r-biocgenerics)
9851 ("r-biostrings" ,r-biostrings)
9852 ("r-curl" ,r-curl)
9853 ("r-dbi" ,r-dbi)
9854 ("r-genomeinfodb" ,r-genomeinfodb)
9855 ("r-genomicfeatures" ,r-genomicfeatures)
9856 ("r-genomicranges" ,r-genomicranges)
9857 ("r-iranges" ,r-iranges)
9858 ("r-protgenerics" ,r-protgenerics)
9859 ("r-rsamtools" ,r-rsamtools)
9860 ("r-rsqlite" ,r-rsqlite)
9861 ("r-rtracklayer" ,r-rtracklayer)
9862 ("r-s4vectors" ,r-s4vectors)))
9863 (home-page "https://github.com/jotsetung/ensembldb")
9864 (synopsis "Utilities to create and use Ensembl-based annotation databases")
9865 (description
9866 "The package provides functions to create and use transcript-centric
9867annotation databases/packages. The annotation for the databases are directly
9868fetched from Ensembl using their Perl API. The functionality and data is
9869similar to that of the TxDb packages from the @code{GenomicFeatures} package,
9870but, in addition to retrieve all gene/transcript models and annotations from
9871the database, the @code{ensembldb} package also provides a filter framework
9872allowing to retrieve annotations for specific entries like genes encoded on a
9873chromosome region or transcript models of lincRNA genes.")
9874 ;; No version specified
9875 (license license:lgpl3+)))
9876
2f6f61fd
RW
9877(define-public r-organismdbi
9878 (package
9879 (name "r-organismdbi")
cdab2dcf 9880 (version "1.24.0")
2f6f61fd
RW
9881 (source
9882 (origin
9883 (method url-fetch)
9884 (uri (bioconductor-uri "OrganismDbi" version))
9885 (sha256
9886 (base32
cdab2dcf 9887 "11pyv56cy4iy095h40k6k0mpjdlh6gsb4ld3s57nfa9nd4ypx3yi"))))
2f6f61fd
RW
9888 (properties `((upstream-name . "OrganismDbi")))
9889 (build-system r-build-system)
9890 (propagated-inputs
9891 `(("r-annotationdbi" ,r-annotationdbi)
9892 ("r-biobase" ,r-biobase)
9893 ("r-biocgenerics" ,r-biocgenerics)
cdab2dcf 9894 ("r-biocmanager" ,r-biocmanager)
2f6f61fd
RW
9895 ("r-dbi" ,r-dbi)
9896 ("r-genomicfeatures" ,r-genomicfeatures)
9897 ("r-genomicranges" ,r-genomicranges)
9898 ("r-graph" ,r-graph)
9899 ("r-iranges" ,r-iranges)
9900 ("r-rbgl" ,r-rbgl)
9901 ("r-s4vectors" ,r-s4vectors)))
9902 (home-page "https://bioconductor.org/packages/OrganismDbi")
9903 (synopsis "Software to enable the smooth interfacing of database packages")
9904 (description "The package enables a simple unified interface to several
9905annotation packages each of which has its own schema by taking advantage of
9906the fact that each of these packages implements a select methods.")
9907 (license license:artistic2.0)))
9908
7af1f403
RW
9909(define-public r-biovizbase
9910 (package
9911 (name "r-biovizbase")
c8059593 9912 (version "1.30.1")
7af1f403
RW
9913 (source
9914 (origin
9915 (method url-fetch)
9916 (uri (bioconductor-uri "biovizBase" version))
9917 (sha256
9918 (base32
c8059593 9919 "0v5gvcx180qn5487i1dph9abadw3ggqwp5yzy41jswzbdc8q6sbm"))))
7af1f403
RW
9920 (properties `((upstream-name . "biovizBase")))
9921 (build-system r-build-system)
9922 (propagated-inputs
9923 `(("r-annotationdbi" ,r-annotationdbi)
9924 ("r-annotationfilter" ,r-annotationfilter)
9925 ("r-biocgenerics" ,r-biocgenerics)
9926 ("r-biostrings" ,r-biostrings)
9927 ("r-dichromat" ,r-dichromat)
9928 ("r-ensembldb" ,r-ensembldb)
9929 ("r-genomeinfodb" ,r-genomeinfodb)
9930 ("r-genomicalignments" ,r-genomicalignments)
9931 ("r-genomicfeatures" ,r-genomicfeatures)
9932 ("r-genomicranges" ,r-genomicranges)
9933 ("r-hmisc" ,r-hmisc)
9934 ("r-iranges" ,r-iranges)
9935 ("r-rcolorbrewer" ,r-rcolorbrewer)
70daf936 9936 ("r-rlang" ,r-rlang)
7af1f403
RW
9937 ("r-rsamtools" ,r-rsamtools)
9938 ("r-s4vectors" ,r-s4vectors)
9939 ("r-scales" ,r-scales)
9940 ("r-summarizedexperiment" ,r-summarizedexperiment)
9941 ("r-variantannotation" ,r-variantannotation)))
9942 (home-page "https://bioconductor.org/packages/biovizBase")
9943 (synopsis "Basic graphic utilities for visualization of genomic data")
9944 (description
9945 "The biovizBase package is designed to provide a set of utilities, color
9946schemes and conventions for genomic data. It serves as the base for various
9947high-level packages for biological data visualization. This saves development
9948effort and encourages consistency.")
9949 (license license:artistic2.0)))
9950
60faf945
RW
9951(define-public r-ggbio
9952 (package
9953 (name "r-ggbio")
f20c7664 9954 (version "1.30.0")
60faf945
RW
9955 (source
9956 (origin
9957 (method url-fetch)
9958 (uri (bioconductor-uri "ggbio" version))
9959 (sha256
9960 (base32
f20c7664 9961 "0wq49qqzkcn8s19xgaxf2s1j1a563d7pbhhvris6fhxfdjsz4934"))))
60faf945 9962 (build-system r-build-system)
fc3ebc30
RW
9963 (arguments
9964 `(#:phases
9965 (modify-phases %standard-phases
9966 ;; See https://github.com/tengfei/ggbio/issues/117
9967 ;; This fix will be included in the next release.
9968 (add-after 'unpack 'fix-typo
9969 (lambda _
9970 (substitute* "R/GGbio-class.R"
9971 (("fechable") "fetchable"))
9972 #t)))))
60faf945
RW
9973 (propagated-inputs
9974 `(("r-annotationdbi" ,r-annotationdbi)
9975 ("r-annotationfilter" ,r-annotationfilter)
9976 ("r-biobase" ,r-biobase)
9977 ("r-biocgenerics" ,r-biocgenerics)
9978 ("r-biostrings" ,r-biostrings)
9979 ("r-biovizbase" ,r-biovizbase)
9980 ("r-bsgenome" ,r-bsgenome)
9981 ("r-ensembldb" ,r-ensembldb)
9982 ("r-genomeinfodb" ,r-genomeinfodb)
9983 ("r-genomicalignments" ,r-genomicalignments)
9984 ("r-genomicfeatures" ,r-genomicfeatures)
9985 ("r-genomicranges" ,r-genomicranges)
9986 ("r-ggally" ,r-ggally)
9987 ("r-ggplot2" ,r-ggplot2)
9988 ("r-gridextra" ,r-gridextra)
9989 ("r-gtable" ,r-gtable)
9990 ("r-hmisc" ,r-hmisc)
9991 ("r-iranges" ,r-iranges)
9992 ("r-organismdbi" ,r-organismdbi)
9993 ("r-reshape2" ,r-reshape2)
16527f1c 9994 ("r-rlang" ,r-rlang)
60faf945
RW
9995 ("r-rsamtools" ,r-rsamtools)
9996 ("r-rtracklayer" ,r-rtracklayer)
9997 ("r-s4vectors" ,r-s4vectors)
9998 ("r-scales" ,r-scales)
9999 ("r-summarizedexperiment" ,r-summarizedexperiment)
10000 ("r-variantannotation" ,r-variantannotation)))
10001 (home-page "http://www.tengfei.name/ggbio/")
10002 (synopsis "Visualization tools for genomic data")
10003 (description
10004 "The ggbio package extends and specializes the grammar of graphics for
10005biological data. The graphics are designed to answer common scientific
10006questions, in particular those often asked of high throughput genomics data.
10007All core Bioconductor data structures are supported, where appropriate. The
10008package supports detailed views of particular genomic regions, as well as
10009genome-wide overviews. Supported overviews include ideograms and grand linear
10010views. High-level plots include sequence fragment length, edge-linked
10011interval to data view, mismatch pileup, and several splicing summaries.")
10012 (license license:artistic2.0)))
10013
96a392a0
RW
10014(define-public r-gprofiler
10015 (package
10016 (name "r-gprofiler")
6b451c08 10017 (version "0.6.7")
96a392a0
RW
10018 (source
10019 (origin
10020 (method url-fetch)
10021 (uri (cran-uri "gProfileR" version))
10022 (sha256
10023 (base32
6b451c08 10024 "12nwidbnqmnfy5dnqga26byslvdnkrpz2fi19qfcby6xx0wbndk7"))))
96a392a0
RW
10025 (properties `((upstream-name . "gProfileR")))
10026 (build-system r-build-system)
10027 (propagated-inputs
10028 `(("r-plyr" ,r-plyr)
10029 ("r-rcurl" ,r-rcurl)))
e9960d8c 10030 (home-page "https://cran.r-project.org/web/packages/gProfileR/")
96a392a0
RW
10031 (synopsis "Interface to the g:Profiler toolkit")
10032 (description
10033 "This package provides tools for functional enrichment analysis,
10034gene identifier conversion and mapping homologous genes across related
10035organisms via the @code{g:Profiler} toolkit.")
10036 (license license:gpl2+)))
10037
e2b92799
RW
10038(define-public r-gqtlbase
10039 (package
10040 (name "r-gqtlbase")
181a8431 10041 (version "1.14.0")
e2b92799
RW
10042 (source
10043 (origin
10044 (method url-fetch)
10045 (uri (bioconductor-uri "gQTLBase" version))
10046 (sha256
10047 (base32
181a8431 10048 "1lbk1m1mkvbk30flk5pf3pcrnm2s0sj5r48kbjgad39dsvd8zgqx"))))
e2b92799
RW
10049 (properties `((upstream-name . "gQTLBase")))
10050 (build-system r-build-system)
10051 (propagated-inputs
10052 `(("r-batchjobs" ,r-batchjobs)
10053 ("r-bbmisc" ,r-bbmisc)
10054 ("r-biocgenerics" ,r-biocgenerics)
10055 ("r-bit" ,r-bit)
10056 ("r-doparallel" ,r-doparallel)
10057 ("r-ff" ,r-ff)
10058 ("r-ffbase" ,r-ffbase)
10059 ("r-foreach" ,r-foreach)
10060 ("r-genomicfiles" ,r-genomicfiles)
10061 ("r-genomicranges" ,r-genomicranges)
10062 ("r-rtracklayer" ,r-rtracklayer)
10063 ("r-s4vectors" ,r-s4vectors)
10064 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10065 (home-page "https://bioconductor.org/packages/gQTLBase")
10066 (synopsis "Infrastructure for eQTL, mQTL and similar studies")
10067 (description
10068 "The purpose of this package is to simplify the storage and interrogation
10069of @dfn{quantitative trait loci} (QTL) archives, such as eQTL, mQTL, dsQTL,
10070and more.")
10071 (license license:artistic2.0)))
10072
dd5fc8b7
RW
10073(define-public r-snpstats
10074 (package
10075 (name "r-snpstats")
220ac15e 10076 (version "1.32.0")
dd5fc8b7
RW
10077 (source
10078 (origin
10079 (method url-fetch)
10080 (uri (bioconductor-uri "snpStats" version))
10081 (sha256
10082 (base32
220ac15e 10083 "1pplx4pf9bqi7v5v1l74yknc1s61carvbqkf327ky7vbvp0bck33"))))
dd5fc8b7
RW
10084 (properties `((upstream-name . "snpStats")))
10085 (build-system r-build-system)
10086 (inputs `(("zlib" ,zlib)))
10087 (propagated-inputs
10088 `(("r-biocgenerics" ,r-biocgenerics)
10089 ("r-matrix" ,r-matrix)
10090 ("r-survival" ,r-survival)
10091 ("r-zlibbioc" ,r-zlibbioc)))
10092 (home-page "https://bioconductor.org/packages/snpStats")
10093 (synopsis "Methods for SNP association studies")
10094 (description
10095 "This package provides classes and statistical methods for large
10096@dfn{single-nucleotide polymorphism} (SNP) association studies. This extends
10097the earlier snpMatrix package, allowing for uncertainty in genotypes.")
10098 (license license:gpl3)))
10099
421c68e3
RW
10100(define-public r-homo-sapiens
10101 (package
10102 (name "r-homo-sapiens")
10103 (version "1.3.1")
10104 (source (origin
10105 (method url-fetch)
10106 ;; We cannot use bioconductor-uri here because this tarball is
10107 ;; located under "data/annotation/" instead of "bioc/".
10108 (uri (string-append "http://www.bioconductor.org/packages/"
10109 "release/data/annotation/src/contrib/"
10110 "Homo.sapiens_"
10111 version ".tar.gz"))
10112 (sha256
10113 (base32
10114 "151vj7h5p1c8yd5swrchk46z469p135wk50hvkl0nhgndvy0jj01"))))
10115 (properties
10116 `((upstream-name . "Homo.sapiens")))
10117 (build-system r-build-system)
10118 (propagated-inputs
10119 `(("r-genomicfeatures" ,r-genomicfeatures)
10120 ("r-go-db" ,r-go-db)
10121 ("r-org-hs-eg-db" ,r-org-hs-eg-db)
10122 ("r-txdb-hsapiens-ucsc-hg19-knowngene" ,r-txdb-hsapiens-ucsc-hg19-knowngene)
10123 ("r-organismdbi" ,r-organismdbi)
10124 ("r-annotationdbi" ,r-annotationdbi)))
10125 (home-page "https://bioconductor.org/packages/Homo.sapiens/")
10126 (synopsis "Annotation package for the Homo.sapiens object")
10127 (description
10128 "This package contains the Homo.sapiens object to access data from
10129several related annotation packages.")
10130 (license license:artistic2.0)))
10131
15f98b0d
RW
10132(define-public r-erma
10133 (package
10134 (name "r-erma")
4b913355 10135 (version "0.14.0")
15f98b0d
RW
10136 (source
10137 (origin
10138 (method url-fetch)
10139 (uri (bioconductor-uri "erma" version))
10140 (sha256
10141 (base32
4b913355 10142 "0hj9iz904rr1y66442lkxjywkw1ydyxxlhmjirawbf09ic5ad4g9"))))
15f98b0d
RW
10143 (build-system r-build-system)
10144 (propagated-inputs
10145 `(("r-annotationdbi" ,r-annotationdbi)
10146 ("r-biobase" ,r-biobase)
10147 ("r-biocgenerics" ,r-biocgenerics)
9b0b108e
RW
10148 ("r-biocparallel" ,r-biocparallel)
10149 ("r-genomeinfodb" ,r-genomeinfodb)
15f98b0d
RW
10150 ("r-genomicfiles" ,r-genomicfiles)
10151 ("r-genomicranges" ,r-genomicranges)
10152 ("r-ggplot2" ,r-ggplot2)
10153 ("r-homo-sapiens" ,r-homo-sapiens)
9b0b108e 10154 ("r-iranges" ,r-iranges)
15f98b0d
RW
10155 ("r-rtracklayer" ,r-rtracklayer)
10156 ("r-s4vectors" ,r-s4vectors)
10157 ("r-shiny" ,r-shiny)
10158 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10159 (home-page "https://bioconductor.org/packages/erma")
10160 (synopsis "Epigenomic road map adventures")
10161 (description
10162 "The epigenomics road map describes locations of epigenetic marks in DNA
10163from a variety of cell types. Of interest are locations of histone
10164modifications, sites of DNA methylation, and regions of accessible chromatin.
10165This package presents a selection of elements of the road map including
10166metadata and outputs of the ChromImpute procedure applied to ENCODE cell lines
10167by Ernst and Kellis.")
10168 (license license:artistic2.0)))
10169
66c39102
RW
10170(define-public r-ldblock
10171 (package
10172 (name "r-ldblock")
f613f9ae 10173 (version "1.12.1")
66c39102
RW
10174 (source
10175 (origin
10176 (method url-fetch)
10177 (uri (bioconductor-uri "ldblock" version))
10178 (sha256
10179 (base32
f613f9ae 10180 "01lf74pby7si2g3kgc10qzr6lkcbigqcgqs2j3anc38vzxv0zhwv"))))
66c39102
RW
10181 (build-system r-build-system)
10182 (propagated-inputs
45c29a6e
RW
10183 `(("r-biocgenerics" ,r-biocgenerics)
10184 ("r-erma" ,r-erma)
66c39102
RW
10185 ("r-genomeinfodb" ,r-genomeinfodb)
10186 ("r-genomicfiles" ,r-genomicfiles)
10187 ("r-go-db" ,r-go-db)
10188 ("r-homo-sapiens" ,r-homo-sapiens)
10189 ("r-matrix" ,r-matrix)
10190 ("r-rsamtools" ,r-rsamtools)
10191 ("r-snpstats" ,r-snpstats)
10192 ("r-variantannotation" ,r-variantannotation)))
10193 (home-page "https://bioconductor.org/packages/ldblock")
10194 (synopsis "Data structures for linkage disequilibrium measures in populations")
10195 (description
10196 "This package defines data structures for @dfn{linkage
10197disequilibrium} (LD) measures in populations. Its purpose is to simplify
10198handling of existing population-level data for the purpose of flexibly
10199defining LD blocks.")
10200 (license license:artistic2.0)))
10201
794ff347
RW
10202(define-public r-gqtlstats
10203 (package
10204 (name "r-gqtlstats")
adfbda0f 10205 (version "1.14.1")
794ff347
RW
10206 (source
10207 (origin
10208 (method url-fetch)
10209 (uri (bioconductor-uri "gQTLstats" version))
10210 (sha256
10211 (base32
adfbda0f 10212 "1rkbnb3h02fdksc4nacqvmq4jgbj9fz4hm7j51yr2ggcgcykwraa"))))
794ff347
RW
10213 (properties `((upstream-name . "gQTLstats")))
10214 (build-system r-build-system)
10215 (propagated-inputs
10216 `(("r-annotationdbi" ,r-annotationdbi)
10217 ("r-batchjobs" ,r-batchjobs)
10218 ("r-bbmisc" ,r-bbmisc)
10219 ("r-beeswarm" ,r-beeswarm)
10220 ("r-biobase" ,r-biobase)
10221 ("r-biocgenerics" ,r-biocgenerics)
10222 ("r-doparallel" ,r-doparallel)
10223 ("r-dplyr" ,r-dplyr)
10224 ("r-erma" ,r-erma)
10225 ("r-ffbase" ,r-ffbase)
10226 ("r-foreach" ,r-foreach)
10227 ("r-genomeinfodb" ,r-genomeinfodb)
10228 ("r-genomicfeatures" ,r-genomicfeatures)
10229 ("r-genomicfiles" ,r-genomicfiles)
10230 ("r-genomicranges" ,r-genomicranges)
10231 ("r-ggbeeswarm" ,r-ggbeeswarm)
10232 ("r-ggplot2" ,r-ggplot2)
10233 ("r-gqtlbase" ,r-gqtlbase)
10234 ("r-hardyweinberg" ,r-hardyweinberg)
6929b975 10235 ("r-homo-sapiens" ,r-homo-sapiens)
794ff347 10236 ("r-iranges" ,r-iranges)
794ff347
RW
10237 ("r-limma" ,r-limma)
10238 ("r-mgcv" ,r-mgcv)
10239 ("r-plotly" ,r-plotly)
10240 ("r-reshape2" ,r-reshape2)
10241 ("r-s4vectors" ,r-s4vectors)
10242 ("r-shiny" ,r-shiny)
10243 ("r-snpstats" ,r-snpstats)
10244 ("r-summarizedexperiment" ,r-summarizedexperiment)
10245 ("r-variantannotation" ,r-variantannotation)))
10246 (home-page "https://bioconductor.org/packages/gQTLstats")
10247 (synopsis "Computationally efficient analysis for eQTL and allied studies")
10248 (description
10249 "This package provides tools for the computationally efficient analysis
10250of @dfn{quantitative trait loci} (QTL) data, including eQTL, mQTL, dsQTL, etc.
10251The software in this package aims to support refinements and functional
10252interpretation of members of a collection of association statistics on a
10253family of feature/genome hypotheses.")
10254 (license license:artistic2.0)))
10255
42720006
RW
10256(define-public r-gviz
10257 (package
10258 (name "r-gviz")
6453d7ae 10259 (version "1.26.5")
42720006
RW
10260 (source
10261 (origin
10262 (method url-fetch)
10263 (uri (bioconductor-uri "Gviz" version))
10264 (sha256
10265 (base32
6453d7ae 10266 "1dpkcaar7qgzg3vgafvkplprhwmhzpb7ph009kr6ajm36hx4z81c"))))
42720006
RW
10267 (properties `((upstream-name . "Gviz")))
10268 (build-system r-build-system)
10269 (propagated-inputs
10270 `(("r-annotationdbi" ,r-annotationdbi)
10271 ("r-biobase" ,r-biobase)
10272 ("r-biocgenerics" ,r-biocgenerics)
10273 ("r-biomart" ,r-biomart)
10274 ("r-biostrings" ,r-biostrings)
10275 ("r-biovizbase" ,r-biovizbase)
10276 ("r-bsgenome" ,r-bsgenome)
10277 ("r-digest" ,r-digest)
10278 ("r-genomeinfodb" ,r-genomeinfodb)
10279 ("r-genomicalignments" ,r-genomicalignments)
10280 ("r-genomicfeatures" ,r-genomicfeatures)
10281 ("r-genomicranges" ,r-genomicranges)
10282 ("r-iranges" ,r-iranges)
10283 ("r-lattice" ,r-lattice)
10284 ("r-latticeextra" ,r-latticeextra)
10285 ("r-matrixstats" ,r-matrixstats)
10286 ("r-rcolorbrewer" ,r-rcolorbrewer)
10287 ("r-rsamtools" ,r-rsamtools)
10288 ("r-rtracklayer" ,r-rtracklayer)
10289 ("r-s4vectors" ,r-s4vectors)
10290 ("r-xvector" ,r-xvector)))
10291 (home-page "https://bioconductor.org/packages/Gviz")
10292 (synopsis "Plotting data and annotation information along genomic coordinates")
10293 (description
10294 "Genomic data analyses requires integrated visualization of known genomic
10295information and new experimental data. Gviz uses the biomaRt and the
10296rtracklayer packages to perform live annotation queries to Ensembl and UCSC
10297and translates this to e.g. gene/transcript structures in viewports of the
10298grid graphics package. This results in genomic information plotted together
10299with your data.")
10300 (license license:artistic2.0)))
10301
2e4ce60e
RW
10302(define-public r-gwascat
10303 (package
10304 (name "r-gwascat")
85b16c05 10305 (version "2.14.0")
2e4ce60e
RW
10306 (source
10307 (origin
10308 (method url-fetch)
10309 (uri (bioconductor-uri "gwascat" version))
10310 (sha256
10311 (base32
85b16c05 10312 "1fnyjydhicq4ayrv0lqjv48h9bd72h40s6l82g1h2ng0icwz38g0"))))
2e4ce60e
RW
10313 (build-system r-build-system)
10314 (propagated-inputs
10315 `(("r-annotationdbi" ,r-annotationdbi)
10316 ("r-annotationhub" ,r-annotationhub)
10317 ("r-biocgenerics" ,r-biocgenerics)
10318 ("r-biostrings" ,r-biostrings)
10319 ("r-genomeinfodb" ,r-genomeinfodb)
10320 ("r-genomicfeatures" ,r-genomicfeatures)
10321 ("r-genomicranges" ,r-genomicranges)
10322 ("r-ggbio" ,r-ggbio)
10323 ("r-ggplot2" ,r-ggplot2)
10324 ("r-gqtlstats" ,r-gqtlstats)
10325 ("r-graph" ,r-graph)
10326 ("r-gviz" ,r-gviz)
10327 ("r-homo-sapiens" ,r-homo-sapiens)
10328 ("r-iranges" ,r-iranges)
10329 ("r-rsamtools" ,r-rsamtools)
10330 ("r-rtracklayer" ,r-rtracklayer)
10331 ("r-s4vectors" ,r-s4vectors)
10332 ("r-snpstats" ,r-snpstats)
10333 ("r-summarizedexperiment" ,r-summarizedexperiment)
10334 ("r-variantannotation" ,r-variantannotation)))
10335 (home-page "https://bioconductor.org/packages/gwascat")
10336 (synopsis "Tools for data in the EMBL-EBI GWAS catalog")
10337 (description
10338 "This package provides tools for representing and modeling data in the
10339EMBL-EBI GWAS catalog.")
10340 (license license:artistic2.0)))
10341
fbf54406
RW
10342(define-public r-sushi
10343 (package
10344 (name "r-sushi")
7468a764 10345 (version "1.20.0")
fbf54406
RW
10346 (source (origin
10347 (method url-fetch)
10348 (uri (bioconductor-uri "Sushi" version))
10349 (sha256
10350 (base32
7468a764 10351 "0dv5di0hgbvk9cxnqhyf18mdjl50k6bk00a89r6zgp83rbxwr1r8"))))
fbf54406
RW
10352 (properties `((upstream-name . "Sushi")))
10353 (build-system r-build-system)
10354 (propagated-inputs
10355 `(("r-biomart" ,r-biomart)
10356 ("r-zoo" ,r-zoo)))
10357 (home-page "https://bioconductor.org/packages/Sushi")
10358 (synopsis "Tools for visualizing genomics data")
10359 (description
10360 "This package provides flexible, quantitative, and integrative genomic
10361visualizations for publication-quality multi-panel figures.")
10362 (license license:gpl2+)))
10363
30eb4e37
RW
10364(define-public r-fithic
10365 (package
10366 (name "r-fithic")
80239129 10367 (version "1.8.0")
30eb4e37
RW
10368 (source (origin
10369 (method url-fetch)
10370 (uri (bioconductor-uri "FitHiC" version))
10371 (sha256
10372 (base32
80239129 10373 "15xd8mz7660q4zr9p74mq1pqps4iz7pxp8f9ifn21gwg94aq1avn"))))
30eb4e37
RW
10374 (properties `((upstream-name . "FitHiC")))
10375 (build-system r-build-system)
10376 (propagated-inputs
10377 `(("r-data-table" ,r-data-table)
10378 ("r-fdrtool" ,r-fdrtool)
10379 ("r-rcpp" ,r-rcpp)))
10380 (home-page "https://bioconductor.org/packages/FitHiC")
10381 (synopsis "Confidence estimation for intra-chromosomal contact maps")
10382 (description
10383 "Fit-Hi-C is a tool for assigning statistical confidence estimates to
10384intra-chromosomal contact maps produced by genome-wide genome architecture
10385assays such as Hi-C.")
10386 (license license:gpl2+)))
10387
c49102ec
RW
10388(define-public r-hitc
10389 (package
10390 (name "r-hitc")
d055f199 10391 (version "1.26.0")
c49102ec
RW
10392 (source (origin
10393 (method url-fetch)
10394 (uri (bioconductor-uri "HiTC" version))
10395 (sha256
10396 (base32
d055f199 10397 "11f96k1707g6milpjgnrjf3b5r42hsrxhb5d8znkcr3y3mrskdbj"))))
c49102ec
RW
10398 (properties `((upstream-name . "HiTC")))
10399 (build-system r-build-system)
10400 (propagated-inputs
10401 `(("r-biostrings" ,r-biostrings)
10402 ("r-genomeinfodb" ,r-genomeinfodb)
10403 ("r-genomicranges" ,r-genomicranges)
10404 ("r-iranges" ,r-iranges)
10405 ("r-matrix" ,r-matrix)
10406 ("r-rcolorbrewer" ,r-rcolorbrewer)
10407 ("r-rtracklayer" ,r-rtracklayer)))
10408 (home-page "https://bioconductor.org/packages/HiTC")
10409 (synopsis "High throughput chromosome conformation capture analysis")
10410 (description
10411 "The HiTC package was developed to explore high-throughput \"C\" data
10412such as 5C or Hi-C. Dedicated R classes as well as standard methods for
10413quality controls, normalization, visualization, and further analysis are also
10414provided.")
10415 (license license:artistic2.0)))
10416
aba3e482
RW
10417(define-public r-hdf5array
10418 (package
10419 (name "r-hdf5array")
40561d02 10420 (version "1.10.1")
aba3e482
RW
10421 (source
10422 (origin
10423 (method url-fetch)
10424 (uri (bioconductor-uri "HDF5Array" version))
10425 (sha256
10426 (base32
40561d02 10427 "1qwdsygcadl58qj598hfyvs8hp0hqcl9ghnhknahrlhmb7k2bd2d"))))
aba3e482
RW
10428 (properties `((upstream-name . "HDF5Array")))
10429 (build-system r-build-system)
10430 (propagated-inputs
10431 `(("r-biocgenerics" ,r-biocgenerics)
10432 ("r-delayedarray" ,r-delayedarray)
10433 ("r-iranges" ,r-iranges)
10434 ("r-rhdf5" ,r-rhdf5)
10435 ("r-s4vectors" ,r-s4vectors)))
10436 (home-page "https://bioconductor.org/packages/HDF5Array")
10437 (synopsis "HDF5 back end for DelayedArray objects")
10438 (description "This package provides an array-like container for convenient
10439access and manipulation of HDF5 datasets. It supports delayed operations and
10440block processing.")
10441 (license license:artistic2.0)))
10442
748e9f16
RW
10443(define-public r-rhdf5lib
10444 (package
10445 (name "r-rhdf5lib")
dfe420ee 10446 (version "1.4.3")
748e9f16
RW
10447 (source
10448 (origin
10449 (method url-fetch)
10450 (uri (bioconductor-uri "Rhdf5lib" version))
10451 (sha256
10452 (base32
dfe420ee 10453 "0hjhjvg2kss71fkmxlbgnyyy1agwzgq57rxkgkm4riw82x2rvw7q"))
37200dbc
RW
10454 (modules '((guix build utils)))
10455 (snippet
10456 '(begin
10457 ;; Delete bundled binaries
10458 (delete-file-recursively "src/winlib/")
10459 #t))))
748e9f16
RW
10460 (properties `((upstream-name . "Rhdf5lib")))
10461 (build-system r-build-system)
10462 (arguments
10463 `(#:phases
10464 (modify-phases %standard-phases
10465 (add-after 'unpack 'do-not-use-bundled-hdf5
10466 (lambda* (#:key inputs #:allow-other-keys)
10467 (for-each delete-file '("configure" "configure.ac"))
10468 ;; Do not make other packages link with the proprietary libsz.
10469 (substitute* "R/zzz.R"
e9c41736
RW
10470 (("'%s/libhdf5_cpp.a %s/libhdf5.a %s/libsz.a -lz'")
10471 "'%s/libhdf5_cpp.a %s/libhdf5.a %s/libhdf5.a -lz'")
10472 (("'%s/libhdf5.a %s/libsz.a -lz'")
10473 "'%s/libhdf5.a %s/libhdf5.a -lz'"))
748e9f16
RW
10474 (with-directory-excursion "src"
10475 (invoke "tar" "xvf" (assoc-ref inputs "hdf5-source"))
37200dbc 10476 (rename-file (string-append "hdf5-" ,(package-version hdf5-1.10))
748e9f16 10477 "hdf5")
a539ad86
RW
10478 ;; Remove timestamp and host system information to make
10479 ;; the build reproducible.
10480 (substitute* "hdf5/src/libhdf5.settings.in"
10481 (("Configured on: @CONFIG_DATE@")
10482 "Configured on: Guix")
10483 (("Uname information:.*")
10484 "Uname information: Linux\n")
10485 ;; Remove unnecessary store reference.
10486 (("C Compiler:.*")
10487 "C Compiler: GCC\n"))
748e9f16
RW
10488 (rename-file "Makevars.in" "Makevars")
10489 (substitute* "Makevars"
10490 (("HDF5_CXX_LIB=.*")
10491 (string-append "HDF5_CXX_LIB="
10492 (assoc-ref inputs "hdf5") "/lib/libhdf5_cpp.a\n"))
10493 (("HDF5_LIB=.*")
10494 (string-append "HDF5_LIB="
10495 (assoc-ref inputs "hdf5") "/lib/libhdf5.a\n"))
10496 (("HDF5_CXX_INCLUDE=.*") "HDF5_CXX_INCLUDE=./hdf5/c++/src\n")
10497 (("HDF5_INCLUDE=.*") "HDF5_INCLUDE=./hdf5/src\n")
10498 ;; szip is non-free software
10499 (("cp \\$\\{SZIP_LIB\\}.*") "")
e9c41736 10500 (("\\$\\{USER_LIB_DIR\\}libsz.a") "")))
748e9f16
RW
10501 #t)))))
10502 (inputs
10503 `(("zlib" ,zlib)))
10504 (propagated-inputs
37200dbc 10505 `(("hdf5" ,hdf5-1.10)))
748e9f16 10506 (native-inputs
37200dbc 10507 `(("hdf5-source" ,(package-source hdf5-1.10))))
748e9f16
RW
10508 (home-page "https://bioconductor.org/packages/Rhdf5lib")
10509 (synopsis "HDF5 library as an R package")
10510 (description "This package provides C and C++ HDF5 libraries for use in R
10511packages.")
10512 (license license:artistic2.0)))
10513
9ec08988
RW
10514(define-public r-beachmat
10515 (package
10516 (name "r-beachmat")
3c833608 10517 (version "1.4.0")
9ec08988
RW
10518 (source
10519 (origin
10520 (method url-fetch)
10521 (uri (bioconductor-uri "beachmat" version))
10522 (sha256
10523 (base32
3c833608 10524 "07zgmms0qg8gw7x0js46965bbhpfj2aa1h5ixdz9r332bxv9cdmr"))))
9ec08988
RW
10525 (build-system r-build-system)
10526 (inputs
fd613234
RW
10527 `(("hdf5" ,hdf5)
10528 ("zlib" ,zlib)))
9ec08988 10529 (propagated-inputs
3c833608
RW
10530 `(("r-biocgenerics" ,r-biocgenerics)
10531 ("r-delayedarray" ,r-delayedarray)
9ec08988
RW
10532 ("r-hdf5array" ,r-hdf5array)
10533 ("r-rcpp" ,r-rcpp)
10534 ("r-rhdf5" ,r-rhdf5)
10535 ("r-rhdf5lib" ,r-rhdf5lib)))
10536 (home-page "https://bioconductor.org/packages/beachmat")
10537 (synopsis "Compiling Bioconductor to handle each matrix type")
10538 (description "This package provides a consistent C++ class interface for a
10539variety of commonly used matrix types, including sparse and HDF5-backed
10540matrices.")
10541 (license license:gpl3)))
10542
6fb1dc17
RW
10543(define-public r-singlecellexperiment
10544 (package
10545 (name "r-singlecellexperiment")
0f268bb2 10546 (version "1.4.1")
6fb1dc17
RW
10547 (source
10548 (origin
10549 (method url-fetch)
10550 (uri (bioconductor-uri "SingleCellExperiment" version))
10551 (sha256
10552 (base32
0f268bb2 10553 "12139kk9cqgzpm6f3cwdsq31gj5lxamz2q939dy9fa0fa54gdaq4"))))
6fb1dc17
RW
10554 (properties
10555 `((upstream-name . "SingleCellExperiment")))
10556 (build-system r-build-system)
10557 (propagated-inputs
10558 `(("r-biocgenerics" ,r-biocgenerics)
10559 ("r-s4vectors" ,r-s4vectors)
10560 ("r-summarizedexperiment" ,r-summarizedexperiment)))
10561 (home-page "https://bioconductor.org/packages/SingleCellExperiment")
10562 (synopsis "S4 classes for single cell data")
10563 (description "This package defines an S4 class for storing data from
10564single-cell experiments. This includes specialized methods to store and
10565retrieve spike-in information, dimensionality reduction coordinates and size
10566factors for each cell, along with the usual metadata for genes and
10567libraries.")
10568 (license license:gpl3)))
10569
658ab21d
RW
10570(define-public r-scater
10571 (package
10572 (name "r-scater")
1e107b09 10573 (version "1.10.1")
658ab21d
RW
10574 (source (origin
10575 (method url-fetch)
10576 (uri (bioconductor-uri "scater" version))
10577 (sha256
10578 (base32
1e107b09 10579 "0rijhy7g5qmcn927y1wyd63la1fhyar9fv1hccsqd23jd98yc55a"))))
658ab21d
RW
10580 (build-system r-build-system)
10581 (propagated-inputs
10582 `(("r-beachmat" ,r-beachmat)
658ab21d 10583 ("r-biocgenerics" ,r-biocgenerics)
48f27914 10584 ("r-biocparallel" ,r-biocparallel)
92963798
RW
10585 ("r-delayedarray" ,r-delayedarray)
10586 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
658ab21d 10587 ("r-dplyr" ,r-dplyr)
658ab21d
RW
10588 ("r-ggbeeswarm" ,r-ggbeeswarm)
10589 ("r-ggplot2" ,r-ggplot2)
658ab21d 10590 ("r-matrix" ,r-matrix)
658ab21d
RW
10591 ("r-plyr" ,r-plyr)
10592 ("r-rcpp" ,r-rcpp)
10593 ("r-reshape2" ,r-reshape2)
658ab21d 10594 ("r-rhdf5lib" ,r-rhdf5lib)
658ab21d 10595 ("r-s4vectors" ,r-s4vectors)
658ab21d
RW
10596 ("r-singlecellexperiment" ,r-singlecellexperiment)
10597 ("r-summarizedexperiment" ,r-summarizedexperiment)
658ab21d
RW
10598 ("r-viridis" ,r-viridis)))
10599 (home-page "https://github.com/davismcc/scater")
10600 (synopsis "Single-cell analysis toolkit for gene expression data in R")
10601 (description "This package provides a collection of tools for doing
10602various analyses of single-cell RNA-seq gene expression data, with a focus on
10603quality control.")
10604 (license license:gpl2+)))
10605
7f1d9bef
RW
10606(define-public r-scran
10607 (package
10608 (name "r-scran")
feb561f7 10609 (version "1.10.2")
7f1d9bef
RW
10610 (source
10611 (origin
10612 (method url-fetch)
10613 (uri (bioconductor-uri "scran" version))
10614 (sha256
10615 (base32
feb561f7 10616 "07mgilr3gq3lnrm1fjm9zhz4w7970bjhsykln1drqy9gkzj5sn7g"))))
7f1d9bef
RW
10617 (build-system r-build-system)
10618 (propagated-inputs
10619 `(("r-beachmat" ,r-beachmat)
10620 ("r-biocgenerics" ,r-biocgenerics)
70a3a76b 10621 ("r-biocneighbors" ,r-biocneighbors)
7f1d9bef 10622 ("r-biocparallel" ,r-biocparallel)
d7e32999
RW
10623 ("r-delayedarray" ,r-delayedarray)
10624 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
7f1d9bef
RW
10625 ("r-dynamictreecut" ,r-dynamictreecut)
10626 ("r-edger" ,r-edger)
7f1d9bef
RW
10627 ("r-igraph" ,r-igraph)
10628 ("r-limma" ,r-limma)
10629 ("r-matrix" ,r-matrix)
10630 ("r-rcpp" ,r-rcpp)
10631 ("r-rhdf5lib" ,r-rhdf5lib)
10632 ("r-s4vectors" ,r-s4vectors)
10633 ("r-scater" ,r-scater)
7f1d9bef
RW
10634 ("r-singlecellexperiment" ,r-singlecellexperiment)
10635 ("r-statmod" ,r-statmod)
70a3a76b 10636 ("r-summarizedexperiment" ,r-summarizedexperiment)))
7f1d9bef
RW
10637 (home-page "https://bioconductor.org/packages/scran")
10638 (synopsis "Methods for single-cell RNA-Seq data analysis")
10639 (description "This package implements a variety of low-level analyses of
10640single-cell RNA-seq data. Methods are provided for normalization of
10641cell-specific biases, assignment of cell cycle phase, and detection of highly
10642variable and significantly correlated genes.")
10643 (license license:gpl3)))
10644
05f72960
RW
10645(define-public r-delayedmatrixstats
10646 (package
10647 (name "r-delayedmatrixstats")
900ce2ba 10648 (version "1.4.0")
05f72960
RW
10649 (source
10650 (origin
10651 (method url-fetch)
10652 (uri (bioconductor-uri "DelayedMatrixStats" version))
10653 (sha256
10654 (base32
900ce2ba 10655 "03fk2avl1vyjv2wslczkc82qr0zmp1ra8iimd47pbmnnm839ly4w"))))
05f72960
RW
10656 (properties
10657 `((upstream-name . "DelayedMatrixStats")))
10658 (build-system r-build-system)
10659 (propagated-inputs
900ce2ba
RW
10660 `(("r-biocparallel" ,r-biocparallel)
10661 ("r-delayedarray" ,r-delayedarray)
10662 ("r-hdf5array" ,r-hdf5array)
05f72960
RW
10663 ("r-iranges" ,r-iranges)
10664 ("r-matrix" ,r-matrix)
10665 ("r-matrixstats" ,r-matrixstats)
10666 ("r-s4vectors" ,r-s4vectors)))
10667 (home-page "https://github.com/PeteHaitch/DelayedMatrixStats")
10668 (synopsis "Functions that apply to rows and columns of DelayedMatrix objects")
10669 (description
10670 "This package provides a port of the @code{matrixStats} API for use with
10671@code{DelayedMatrix} objects from the @code{DelayedArray} package. It
10672contains high-performing functions operating on rows and columns of
10673@code{DelayedMatrix} objects, e.g. @code{colMedians}, @code{rowMedians},
10674@code{colRanks}, @code{rowRanks}, @code{colSds}, and @code{rowSds}. Functions
10675are optimized per data type and for subsetted calculations such that both
10676memory usage and processing time is minimized.")
10677 (license license:expat)))
10678
22a0c659
RW
10679(define-public r-phangorn
10680 (package
10681 (name "r-phangorn")
9ebb7f81 10682 (version "2.5.3")
22a0c659
RW
10683 (source
10684 (origin
10685 (method url-fetch)
10686 (uri (cran-uri "phangorn" version))
10687 (sha256
10688 (base32
9ebb7f81 10689 "1bv86yfk5r015s7ij6v4zz7bagwrw9m13yfs5853drxb19d5h1m3"))))
22a0c659
RW
10690 (build-system r-build-system)
10691 (propagated-inputs
10692 `(("r-ape" ,r-ape)
10693 ("r-fastmatch" ,r-fastmatch)
10694 ("r-igraph" ,r-igraph)
10695 ("r-magrittr" ,r-magrittr)
10696 ("r-matrix" ,r-matrix)
10697 ("r-quadprog" ,r-quadprog)
10698 ("r-rcpp" ,r-rcpp)))
10699 (home-page "https://github.com/KlausVigo/phangorn")
10700 (synopsis "Phylogenetic analysis in R")
10701 (description
10702 "Phangorn is a package for phylogenetic analysis in R. It supports
10703estimation of phylogenetic trees and networks using Maximum Likelihood,
10704Maximum Parsimony, distance methods and Hadamard conjugation.")
10705 (license license:gpl2+)))
10706
3082de04 10707(define-public r-dropbead
84c195e5
RW
10708 (let ((commit "d746c6f3b32110428ea56d6a0001ce52a251c247")
10709 (revision "2"))
3082de04
RW
10710 (package
10711 (name "r-dropbead")
10712 (version (string-append "0-" revision "." (string-take commit 7)))
10713 (source
10714 (origin
10715 (method git-fetch)
10716 (uri (git-reference
10717 (url "https://github.com/rajewsky-lab/dropbead.git")
10718 (commit commit)))
b1d4026d 10719 (file-name (git-file-name name version))
3082de04
RW
10720 (sha256
10721 (base32
84c195e5 10722 "0sbzma49aiiyw8b0jpr7fnhzys9nsqmp4hy4hdz1gzyg1lhnca26"))))
3082de04
RW
10723 (build-system r-build-system)
10724 (propagated-inputs
10725 `(("r-ggplot2" ,r-ggplot2)
10726 ("r-rcolorbrewer" ,r-rcolorbrewer)
10727 ("r-gridextra" ,r-gridextra)
10728 ("r-gplots" ,r-gplots)
10729 ("r-plyr" ,r-plyr)))
10730 (home-page "https://github.com/rajewsky-lab/dropbead")
10731 (synopsis "Basic exploration and analysis of Drop-seq data")
10732 (description "This package offers a quick and straight-forward way to
10733explore and perform basic analysis of single cell sequencing data coming from
10734droplet sequencing. It has been particularly tailored for Drop-seq.")
10735 (license license:gpl3))))
10736
5ded35d8
RW
10737(define htslib-for-sambamba
10738 (let ((commit "2f3c3ea7b301f9b45737a793c0b2dcf0240e5ee5"))
10739 (package
10740 (inherit htslib)
10741 (name "htslib-for-sambamba")
10742 (version (string-append "1.3.1-1." (string-take commit 9)))
10743 (source
10744 (origin
10745 (method git-fetch)
10746 (uri (git-reference
10747 (url "https://github.com/lomereiter/htslib.git")
10748 (commit commit)))
10749 (file-name (string-append "htslib-" version "-checkout"))
10750 (sha256
10751 (base32
10752 "0g38g8s3npr0gjm9fahlbhiskyfws9l5i0x1ml3rakzj7az5l9c9"))))
5ded35d8
RW
10753 (native-inputs
10754 `(("autoconf" ,autoconf)
10755 ("automake" ,automake)
10756 ,@(package-native-inputs htslib))))))
10757
10758(define-public sambamba
10759 (package
10760 (name "sambamba")
2d86eaff 10761 (version "0.6.8")
5ded35d8
RW
10762 (source
10763 (origin
482959ff
RW
10764 (method git-fetch)
10765 (uri (git-reference
10766 (url "https://github.com/lomereiter/sambamba.git")
10767 (commit (string-append "v" version))))
10768 (file-name (string-append name "-" version "-checkout"))
5ded35d8
RW
10769 (sha256
10770 (base32
2d86eaff 10771 "0k0cz3qcv98p6cq09zlbgnjsggxcqbcmzxg5zikgcgbr2nfq4lry"))))
5ded35d8
RW
10772 (build-system gnu-build-system)
10773 (arguments
482959ff
RW
10774 `(#:tests? #f ; there is no test target
10775 #:parallel-build? #f ; not supported
5ded35d8
RW
10776 #:phases
10777 (modify-phases %standard-phases
10778 (delete 'configure)
482959ff
RW
10779 (add-after 'unpack 'fix-ldc-version
10780 (lambda _
10781 (substitute* "gen_ldc_version_info.py"
2d86eaff 10782 (("/usr/bin/env.*") (which "python3")))
482959ff 10783 (substitute* "Makefile"
2d86eaff
RJ
10784 ;; We use ldc2 instead of ldmd2 to compile sambamba.
10785 (("\\$\\(shell which ldmd2\\)") (which "ldc2")))
482959ff
RW
10786 #t))
10787 (add-after 'unpack 'place-biod-and-undead
5ded35d8
RW
10788 (lambda* (#:key inputs #:allow-other-keys)
10789 (copy-recursively (assoc-ref inputs "biod") "BioD")
482959ff 10790 (copy-recursively (assoc-ref inputs "undead") "undeaD")
5ded35d8
RW
10791 #t))
10792 (add-after 'unpack 'unbundle-prerequisites
10793 (lambda _
10794 (substitute* "Makefile"
482959ff
RW
10795 (("htslib/libhts.a lz4/lib/liblz4.a")
10796 "-L-lhts -L-llz4")
2d86eaff 10797 ((" lz4-static htslib-static") ""))
5ded35d8
RW
10798 #t))
10799 (replace 'install
10800 (lambda* (#:key outputs #:allow-other-keys)
10801 (let* ((out (assoc-ref outputs "out"))
10802 (bin (string-append out "/bin")))
10803 (mkdir-p bin)
2d86eaff 10804 (install-file "bin/sambamba" bin)
5ded35d8
RW
10805 #t))))))
10806 (native-inputs
10807 `(("ldc" ,ldc)
10808 ("rdmd" ,rdmd)
61506fe5 10809 ("python" ,python)
5ded35d8 10810 ("biod"
2d86eaff 10811 ,(let ((commit "4f1a7d2fb7ef3dfe962aa357d672f354ebfbe42e"))
5ded35d8
RW
10812 (origin
10813 (method git-fetch)
10814 (uri (git-reference
10815 (url "https://github.com/biod/BioD.git")
10816 (commit commit)))
10817 (file-name (string-append "biod-"
10818 (string-take commit 9)
10819 "-checkout"))
10820 (sha256
10821 (base32
2d86eaff 10822 "1k5pdjv1qvi0a3rwd1sfq6zbj37l86i7bf710m4c0y6737lxj426")))))
482959ff 10823 ("undead"
2d86eaff 10824 ,(let ((commit "9be93876982b5f14fcca60832563b3cd767dd84d"))
482959ff
RW
10825 (origin
10826 (method git-fetch)
10827 (uri (git-reference
2d86eaff 10828 (url "https://github.com/biod/undeaD.git")
482959ff
RW
10829 (commit commit)))
10830 (file-name (string-append "undead-"
10831 (string-take commit 9)
10832 "-checkout"))
10833 (sha256
10834 (base32
2d86eaff 10835 "1xfarj0nqlmi5jd1vmcmm7pabzaf9hxyvk6hp0d6jslb5k9r8r3d")))))))
5ded35d8
RW
10836 (inputs
10837 `(("lz4" ,lz4)
10838 ("htslib" ,htslib-for-sambamba)))
10839 (home-page "http://lomereiter.github.io/sambamba")
10840 (synopsis "Tools for working with SAM/BAM data")
10841 (description "Sambamba is a high performance modern robust and
10842fast tool (and library), written in the D programming language, for
10843working with SAM and BAM files. Current parallelised functionality is
10844an important subset of samtools functionality, including view, index,
10845sort, markdup, and depth.")
10846 (license license:gpl2+)))
b8fffd3a
RW
10847
10848(define-public ritornello
10849 (package
10850 (name "ritornello")
3b888065 10851 (version "2.0.1")
b8fffd3a 10852 (source (origin
7145f4e5
RW
10853 (method git-fetch)
10854 (uri (git-reference
10855 (url "https://github.com/KlugerLab/Ritornello.git")
10856 (commit (string-append "v" version))))
10857 (file-name (git-file-name name version))
b8fffd3a
RW
10858 (sha256
10859 (base32
3b888065 10860 "1xahvq215qld7x1w8vpa5zbrsj6p9crb9shqa2x89sb0aaxa02jk"))))
b8fffd3a
RW
10861 (build-system gnu-build-system)
10862 (arguments
10863 `(#:tests? #f ; there are no tests
10864 #:phases
10865 (modify-phases %standard-phases
10866 (add-after 'unpack 'patch-samtools-references
10867 (lambda* (#:key inputs #:allow-other-keys)
10868 (substitute* '("src/SamStream.h"
3b888065 10869 "src/FLD.cpp")
b8fffd3a
RW
10870 (("<sam.h>") "<samtools/sam.h>"))
10871 #t))
10872 (delete 'configure)
10873 (replace 'install
10874 (lambda* (#:key inputs outputs #:allow-other-keys)
10875 (let* ((out (assoc-ref outputs "out"))
10876 (bin (string-append out "/bin/")))
10877 (mkdir-p bin)
10878 (install-file "bin/Ritornello" bin)
10879 #t))))))
10880 (inputs
10881 `(("samtools" ,samtools-0.1)
10882 ("fftw" ,fftw)
10883 ("boost" ,boost)
10884 ("zlib" ,zlib)))
10885 (home-page "https://github.com/KlugerLab/Ritornello")
10886 (synopsis "Control-free peak caller for ChIP-seq data")
10887 (description "Ritornello is a ChIP-seq peak calling algorithm based on
10888signal processing that can accurately call binding events without the need to
10889do a pair total DNA input or IgG control sample. It has been tested for use
10890with narrow binding events such as transcription factor ChIP-seq.")
10891 (license license:gpl3+)))
44f6c889
RW
10892
10893(define-public trim-galore
10894 (package
10895 (name "trim-galore")
fdc316f3 10896 (version "0.6.1")
44f6c889
RW
10897 (source
10898 (origin
f895a7a4
RW
10899 (method git-fetch)
10900 (uri (git-reference
10901 (url "https://github.com/FelixKrueger/TrimGalore.git")
10902 (commit version)))
fdc316f3 10903 (file-name (git-file-name name version))
44f6c889
RW
10904 (sha256
10905 (base32
fdc316f3 10906 "1y31wbxwkm9xqzr5zv1pk5q418whnmlmgmfyxxpnl12h83m2i9iv"))))
44f6c889
RW
10907 (build-system gnu-build-system)
10908 (arguments
10909 `(#:tests? #f ; no tests
10910 #:phases
10911 (modify-phases %standard-phases
5f1e3109
RW
10912 (replace 'configure
10913 (lambda _
10914 ;; Trim Galore tries to figure out what version of Python
10915 ;; cutadapt is using by looking at the shebang. Of course that
10916 ;; doesn't work, because cutadapt is wrapped in a shell script.
10917 (substitute* "trim_galore"
10918 (("my \\$python_return.*")
10919 "my $python_return = \"Python 3.999\";\n"))
10920 #t))
44f6c889
RW
10921 (delete 'build)
10922 (add-after 'unpack 'hardcode-tool-references
10923 (lambda* (#:key inputs #:allow-other-keys)
10924 (substitute* "trim_galore"
10925 (("\\$path_to_cutadapt = 'cutadapt'")
10926 (string-append "$path_to_cutadapt = '"
10927 (assoc-ref inputs "cutadapt")
10928 "/bin/cutadapt'"))
fdc316f3
RW
10929 (("\\$compression_path = \"gzip\"")
10930 (string-append "$compression_path = \""
44f6c889 10931 (assoc-ref inputs "gzip")
fdc316f3 10932 "/bin/gzip\""))
44f6c889
RW
10933 (("\"gunzip")
10934 (string-append "\""
10935 (assoc-ref inputs "gzip")
58d8225d
RW
10936 "/bin/gunzip"))
10937 (("\"pigz")
10938 (string-append "\""
10939 (assoc-ref inputs "pigz")
10940 "/bin/pigz")))
44f6c889
RW
10941 #t))
10942 (replace 'install
10943 (lambda* (#:key outputs #:allow-other-keys)
10944 (let ((bin (string-append (assoc-ref outputs "out")
10945 "/bin")))
10946 (mkdir-p bin)
10947 (install-file "trim_galore" bin)
10948 #t))))))
10949 (inputs
10950 `(("gzip" ,gzip)
10951 ("perl" ,perl)
58d8225d 10952 ("pigz" ,pigz)
44f6c889
RW
10953 ("cutadapt" ,cutadapt)))
10954 (native-inputs
10955 `(("unzip" ,unzip)))
10956 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/trim_galore/")
10957 (synopsis "Wrapper around Cutadapt and FastQC")
10958 (description "Trim Galore! is a wrapper script to automate quality and
10959adapter trimming as well as quality control, with some added functionality to
10960remove biased methylation positions for RRBS sequence files.")
10961 (license license:gpl3+)))
3420c905
RW
10962
10963(define-public gess
10964 (package
10965 (name "gess")
10966 (version "1.0")
10967 (source (origin
10968 (method url-fetch)
10969 (uri (string-append "http://compbio.uthscsa.edu/"
10970 "GESS_Web/files/"
10971 "gess-" version ".src.tar.gz"))
10972 (sha256
10973 (base32
10974 "0hyk403kxscclzfs24pvdgiv0wm03kjcziqdrp5w46cb049gz0d7"))))
10975 (build-system gnu-build-system)
10976 (arguments
10977 `(#:tests? #f ; no tests
10978 #:phases
10979 (modify-phases %standard-phases
10980 (delete 'configure)
10981 (delete 'build)
10982 (replace 'install
10983 (lambda* (#:key inputs outputs #:allow-other-keys)
10984 (let* ((python (assoc-ref inputs "python"))
10985 (out (assoc-ref outputs "out"))
10986 (bin (string-append out "/bin/"))
10987 (target (string-append
2f3977b9
EF
10988 out "/lib/python"
10989 ,(version-major+minor
10990 (package-version python))
10991 "/site-packages/gess/")))
3420c905
RW
10992 (mkdir-p target)
10993 (copy-recursively "." target)
10994 ;; Make GESS.py executable
10995 (chmod (string-append target "GESS.py") #o555)
10996 ;; Add Python shebang to the top and make Matplotlib
10997 ;; usable.
10998 (substitute* (string-append target "GESS.py")
10999 (("\"\"\"Description:" line)
11000 (string-append "#!" (which "python") "
11001import matplotlib
11002matplotlib.use('Agg')
11003" line)))
11004 ;; Make sure GESS has all modules in its path
11005 (wrap-program (string-append target "GESS.py")
11006 `("PYTHONPATH" ":" prefix (,target ,(getenv "PYTHONPATH"))))
11007 (mkdir-p bin)
11008 (symlink (string-append target "GESS.py")
11009 (string-append bin "GESS.py"))
11010 #t))))))
11011 (inputs
11012 `(("python" ,python-2)
11013 ("python2-pysam" ,python2-pysam)
11014 ("python2-scipy" ,python2-scipy)
11015 ("python2-numpy" ,python2-numpy)
11016 ("python2-networkx" ,python2-networkx)
11017 ("python2-biopython" ,python2-biopython)))
11018 (home-page "http://compbio.uthscsa.edu/GESS_Web/")
11019 (synopsis "Detect exon-skipping events from raw RNA-seq data")
11020 (description
11021 "GESS is an implementation of a novel computational method to detect de
11022novo exon-skipping events directly from raw RNA-seq data without the prior
11023knowledge of gene annotation information. GESS stands for the graph-based
11024exon-skipping scanner detection scheme.")
11025 (license license:bsd-3)))
282b0151
RW
11026
11027(define-public phylip
11028 (package
11029 (name "phylip")
11030 (version "3.696")
11031 (source
11032 (origin
11033 (method url-fetch)
11034 (uri (string-append "http://evolution.gs.washington.edu/phylip/"
11035 "download/phylip-" version ".tar.gz"))
11036 (sha256
11037 (base32
11038 "01jar1rayhr2gba2pgbw49m56rc5z4p5wn3ds0m188hrlln4a2nd"))))
11039 (build-system gnu-build-system)
11040 (arguments
11041 `(#:tests? #f ; no check target
11042 #:make-flags (list "-f" "Makefile.unx" "install")
11043 #:parallel-build? #f ; not supported
11044 #:phases
11045 (modify-phases %standard-phases
11046 (add-after 'unpack 'enter-dir
11047 (lambda _ (chdir "src") #t))
11048 (delete 'configure)
11049 (replace 'install
11050 (lambda* (#:key inputs outputs #:allow-other-keys)
11051 (let ((target (string-append (assoc-ref outputs "out")
11052 "/bin")))
11053 (mkdir-p target)
11054 (for-each (lambda (file)
11055 (install-file file target))
11056 (find-files "../exe" ".*")))
11057 #t)))))
11058 (home-page "http://evolution.genetics.washington.edu/phylip/")
11059 (synopsis "Tools for inferring phylogenies")
11060 (description "PHYLIP (the PHYLogeny Inference Package) is a package of
11061programs for inferring phylogenies (evolutionary trees).")
11062 (license license:bsd-2)))
aa163424
RW
11063
11064(define-public imp
11065 (package
11066 (name "imp")
11067 (version "2.6.2")
11068 (source
11069 (origin
11070 (method url-fetch)
11071 (uri (string-append "https://integrativemodeling.org/"
11072 version "/download/imp-" version ".tar.gz"))
11073 (sha256
11074 (base32
11075 "0lxqx7vh79d771svr611dkilp6sn30qrbw8zvscbrm37v38d2j6h"))))
11076 (build-system cmake-build-system)
11077 (arguments
11078 `(;; FIXME: Some tests fail because they produce warnings, others fail
11079 ;; because the PYTHONPATH does not include the modeller's directory.
677bc34d 11080 #:tests? #f))
aa163424
RW
11081 (inputs
11082 `(("boost" ,boost)
11083 ("gsl" ,gsl)
11084 ("swig" ,swig)
11085 ("hdf5" ,hdf5)
11086 ("fftw" ,fftw)
11087 ("python" ,python-2)))
11088 (propagated-inputs
11089 `(("python2-numpy" ,python2-numpy)
11090 ("python2-scipy" ,python2-scipy)
11091 ("python2-pandas" ,python2-pandas)
11092 ("python2-scikit-learn" ,python2-scikit-learn)
11093 ("python2-networkx" ,python2-networkx)))
11094 (home-page "https://integrativemodeling.org")
11095 (synopsis "Integrative modeling platform")
11096 (description "IMP's broad goal is to contribute to a comprehensive
11097structural characterization of biomolecules ranging in size and complexity
11098from small peptides to large macromolecular assemblies, by integrating data
11099from diverse biochemical and biophysical experiments. IMP provides a C++ and
11100Python toolbox for solving complex modeling problems, and a number of
11101applications for tackling some common problems in a user-friendly way.")
11102 ;; IMP is largely available under the GNU Lesser GPL; see the file
11103 ;; COPYING.LGPL for the full text of this license. Some IMP modules are
11104 ;; available under the GNU GPL (see the file COPYING.GPL).
11105 (license (list license:lgpl2.1+
11106 license:gpl3+))))
8befd094
RW
11107
11108(define-public tadbit
11109 (package
11110 (name "tadbit")
e0f1aa2d 11111 (version "0.2.0")
8befd094 11112 (source (origin
e0f1aa2d
RW
11113 (method git-fetch)
11114 (uri (git-reference
11115 (url "https://github.com/3DGenomes/TADbit.git")
11116 (commit (string-append "v" version))))
11117 (file-name (git-file-name name version))
8befd094
RW
11118 (sha256
11119 (base32
e0f1aa2d 11120 "07g3aj648prmsvxp9caz5yl41k0y0647vxh0f5p3w8376mfiljd0"))))
8befd094
RW
11121 (build-system python-build-system)
11122 (arguments
11123 `(;; Tests are included and must be run after installation, but
11124 ;; they are incomplete and thus cannot be run.
11125 #:tests? #f
11126 #:python ,python-2
11127 #:phases
11128 (modify-phases %standard-phases
11129 (add-after 'unpack 'fix-problems-with-setup.py
11130 (lambda* (#:key outputs #:allow-other-keys)
11131 ;; setup.py opens these files for writing
11132 (chmod "_pytadbit/_version.py" #o664)
11133 (chmod "README.rst" #o664)
11134
11135 ;; Don't attempt to install the bash completions to
11136 ;; the home directory.
11137 (rename-file "extras/.bash_completion"
11138 "extras/tadbit")
11139 (substitute* "setup.py"
11140 (("\\(path.expanduser\\('~'\\)")
11141 (string-append "(\""
11142 (assoc-ref outputs "out")
11143 "/etc/bash_completion.d\""))
11144 (("extras/\\.bash_completion")
11145 "extras/tadbit"))
11146 #t)))))
11147 (inputs
11148 ;; TODO: add Chimera for visualization
11149 `(("imp" ,imp)
11150 ("mcl" ,mcl)
11151 ("python2-scipy" ,python2-scipy)
11152 ("python2-numpy" ,python2-numpy)
11153 ("python2-matplotlib" ,python2-matplotlib)
11154 ("python2-pysam" ,python2-pysam)))
eeb8b0e6 11155 (home-page "https://3dgenomes.github.io/TADbit/")
8befd094
RW
11156 (synopsis "Analyze, model, and explore 3C-based data")
11157 (description
11158 "TADbit is a complete Python library to deal with all steps to analyze,
11159model, and explore 3C-based data. With TADbit the user can map FASTQ files to
11160obtain raw interaction binned matrices (Hi-C like matrices), normalize and
a147fadd 11161correct interaction matrices, identify and compare the so-called
8befd094
RW
11162@dfn{Topologically Associating Domains} (TADs), build 3D models from the
11163interaction matrices, and finally, extract structural properties from the
11164models. TADbit is complemented by TADkit for visualizing 3D models.")
11165 (license license:gpl3+)))
94820951
RW
11166
11167(define-public kentutils
11168 (package
11169 (name "kentutils")
11170 ;; 302.1.0 is out, but the only difference is the inclusion of
11171 ;; pre-built binaries.
11172 (version "302.0.0")
11173 (source
11174 (origin
4257c10a
RW
11175 (method git-fetch)
11176 (uri (git-reference
11177 (url "https://github.com/ENCODE-DCC/kentUtils.git")
11178 (commit (string-append "v" version))))
11179 (file-name (git-file-name name version))
94820951
RW
11180 (sha256
11181 (base32
4257c10a 11182 "0n1wbyjpzii2b9qhyp9r1q76j623cggpg3y8fmw78ld3z4y7ivha"))
94820951
RW
11183 (modules '((guix build utils)
11184 (srfi srfi-26)
11185 (ice-9 ftw)))
11186 (snippet
11187 '(begin
11188 ;; Only the contents of the specified directories are free
11189 ;; for all uses, so we remove the rest. "hg/autoSql" and
11190 ;; "hg/autoXml" are nominally free, but they depend on a
11191 ;; library that is built from the sources in "hg/lib",
11192 ;; which is nonfree.
11193 (let ((free (list "." ".."
11194 "utils" "lib" "inc" "tagStorm"
11195 "parasol" "htslib"))
11196 (directory? (lambda (file)
11197 (eq? 'directory (stat:type (stat file))))))
11198 (for-each (lambda (file)
11199 (and (directory? file)
11200 (delete-file-recursively file)))
11201 (map (cut string-append "src/" <>)
11202 (scandir "src"
11203 (lambda (file)
11204 (not (member file free)))))))
11205 ;; Only make the utils target, not the userApps target,
11206 ;; because that requires libraries we won't build.
11207 (substitute* "Makefile"
11208 ((" userApps") " utils"))
11209 ;; Only build libraries that are free.
11210 (substitute* "src/makefile"
11211 (("DIRS =.*") "DIRS =\n")
11212 (("cd jkOwnLib.*") "")
11213 ((" hgLib") "")
11214 (("cd hg.*") ""))
11215 (substitute* "src/utils/makefile"
11216 ;; These tools depend on "jkhgap.a", which is part of the
11217 ;; nonfree "src/hg/lib" directory.
11218 (("raSqlQuery") "")
11219 (("pslLiftSubrangeBlat") "")
11220
11221 ;; Do not build UCSC tools, which may require nonfree
11222 ;; components.
11223 (("ALL_APPS =.*") "ALL_APPS = $(UTILS_APPLIST)\n"))
11224 #t))))
11225 (build-system gnu-build-system)
11226 (arguments
11227 `( ;; There is no global test target and the test target for
11228 ;; individual tools depends on input files that are not
11229 ;; included.
11230 #:tests? #f
11231 #:phases
11232 (modify-phases %standard-phases
4257c10a
RW
11233 (add-after 'unpack 'fix-permissions
11234 (lambda _ (make-file-writable "src/inc/localEnvironment.mk") #t))
94820951
RW
11235 (add-after 'unpack 'fix-paths
11236 (lambda _
11237 (substitute* "Makefile"
11238 (("/bin/echo") (which "echo")))
11239 #t))
11240 (add-after 'unpack 'prepare-samtabix
11241 (lambda* (#:key inputs #:allow-other-keys)
11242 (copy-recursively (assoc-ref inputs "samtabix")
11243 "samtabix")
11244 #t))
11245 (delete 'configure)
11246 (replace 'install
11247 (lambda* (#:key outputs #:allow-other-keys)
11248 (let ((bin (string-append (assoc-ref outputs "out")
11249 "/bin")))
11250 (copy-recursively "bin" bin))
11251 #t)))))
11252 (native-inputs
11253 `(("samtabix"
11254 ,(origin
11255 (method git-fetch)
11256 (uri (git-reference
11257 (url "http://genome-source.cse.ucsc.edu/samtabix.git")
11258 (commit "10fd107909c1ac4d679299908be4262a012965ba")))
11259 (sha256
11260 (base32
11261 "0c1nj64l42v395sa84n7az43xiap4i6f9n9dfz4058aqiwkhkmma"))))))
11262 (inputs
11263 `(("zlib" ,zlib)
11264 ("tcsh" ,tcsh)
11265 ("perl" ,perl)
11266 ("libpng" ,libpng)
80420f11 11267 ("mariadb" ,mariadb)
94820951
RW
11268 ("openssl" ,openssl)))
11269 (home-page "http://genome.cse.ucsc.edu/index.html")
11270 (synopsis "Assorted bioinformatics utilities")
11271 (description "This package provides the kentUtils, a selection of
11272bioinformatics utilities used in combination with the UCSC genome
11273browser.")
11274 ;; Only a subset of the sources are released under a non-copyleft
11275 ;; free software license. All other sources are removed in a
11276 ;; snippet. See this bug report for an explanation of how the
11277 ;; license statements apply:
11278 ;; https://github.com/ENCODE-DCC/kentUtils/issues/12
11279 (license (license:non-copyleft
11280 "http://genome.ucsc.edu/license/"
11281 "The contents of this package are free for all uses."))))
7ceb0a83
RW
11282
11283(define-public f-seq
11284 (let ((commit "6ccded34cff38cf432deed8503648b4a66953f9b")
11285 (revision "1"))
11286 (package
11287 (name "f-seq")
c6643f2d 11288 (version (string-append "1.1-" revision "." (string-take commit 7)))
7ceb0a83
RW
11289 (source (origin
11290 (method git-fetch)
11291 (uri (git-reference
11292 (url "https://github.com/aboyle/F-seq.git")
11293 (commit commit)))
11294 (file-name (string-append name "-" version))
11295 (sha256
11296 (base32
11297 "1nk33k0yajg2id4g59bc4szr58r2q6pdq42vgcw054m8ip9wv26h"))
11298 (modules '((guix build utils)))
11299 ;; Remove bundled Java library archives.
11300 (snippet
11301 '(begin
11302 (for-each delete-file (find-files "lib" ".*"))
11303 #t))))
11304 (build-system ant-build-system)
11305 (arguments
11306 `(#:tests? #f ; no tests included
11307 #:phases
11308 (modify-phases %standard-phases
11309 (replace 'install
c0770fee 11310 (lambda* (#:key inputs outputs #:allow-other-keys)
7ceb0a83 11311 (let* ((target (assoc-ref outputs "out"))
c61d8226
TGR
11312 (bin (string-append target "/bin"))
11313 (doc (string-append target "/share/doc/f-seq"))
11314 (lib (string-append target "/lib")))
7ceb0a83
RW
11315 (mkdir-p target)
11316 (mkdir-p doc)
11317 (substitute* "bin/linux/fseq"
c0770fee
RW
11318 (("java") (which "java"))
11319 (("\\$REALDIR/../lib/commons-cli-1.1.jar")
11320 (string-append (assoc-ref inputs "java-commons-cli")
11321 "/share/java/commons-cli.jar"))
11322 (("REALDIR=.*")
c61d8226 11323 (string-append "REALDIR=" bin "\n")))
7ceb0a83 11324 (install-file "README.txt" doc)
c61d8226
TGR
11325 (install-file "bin/linux/fseq" bin)
11326 (install-file "build~/fseq.jar" lib)
11327 (copy-recursively "lib" lib)
7ceb0a83
RW
11328 #t))))))
11329 (inputs
11330 `(("perl" ,perl)
11331 ("java-commons-cli" ,java-commons-cli)))
11332 (home-page "http://fureylab.web.unc.edu/software/fseq/")
11333 (synopsis "Feature density estimator for high-throughput sequence tags")
11334 (description
11335 "F-Seq is a software package that generates a continuous tag sequence
11336density estimation allowing identification of biologically meaningful sites
11337such as transcription factor binding sites (ChIP-seq) or regions of open
11338chromatin (DNase-seq). Output can be displayed directly in the UCSC Genome
11339Browser.")
11340 (license license:gpl3+))))
96348048
RW
11341
11342(define-public bismark
11343 (package
11344 (name "bismark")
38502a7d 11345 (version "0.20.1")
96348048
RW
11346 (source
11347 (origin
126c9e3f
RW
11348 (method git-fetch)
11349 (uri (git-reference
11350 (url "https://github.com/FelixKrueger/Bismark.git")
11351 (commit version)))
11352 (file-name (string-append name "-" version "-checkout"))
96348048
RW
11353 (sha256
11354 (base32
38502a7d 11355 "0xchm3rgilj6vfjnyzfzzymfd7djr64sbrmrvs3njbwi66jqbzw9"))))
96348048
RW
11356 (build-system perl-build-system)
11357 (arguments
126c9e3f 11358 `(#:tests? #f ; there are no tests
38502a7d
RW
11359 #:modules ((guix build utils)
11360 (ice-9 popen)
11361 (srfi srfi-26)
11362 (guix build perl-build-system))
96348048
RW
11363 #:phases
11364 (modify-phases %standard-phases
38502a7d
RW
11365 ;; The bundled plotly.js is minified.
11366 (add-after 'unpack 'replace-plotly.js
11367 (lambda* (#:key inputs #:allow-other-keys)
11368 (let* ((file (assoc-ref inputs "plotly.js"))
11369 (installed "plotly/plotly.js"))
11370 (let ((minified (open-pipe* OPEN_READ "uglify-js" file)))
11371 (call-with-output-file installed
11372 (cut dump-port minified <>))))
11373 #t))
96348048
RW
11374 (delete 'configure)
11375 (delete 'build)
11376 (replace 'install
09658903 11377 (lambda* (#:key inputs outputs #:allow-other-keys)
126c9e3f
RW
11378 (let* ((out (assoc-ref outputs "out"))
11379 (bin (string-append out "/bin"))
11380 (share (string-append out "/share/bismark"))
11381 (docdir (string-append out "/share/doc/bismark"))
11382 (docs '("Docs/Bismark_User_Guide.html"))
11383 (scripts '("bismark"
11384 "bismark_genome_preparation"
11385 "bismark_methylation_extractor"
11386 "bismark2bedGraph"
11387 "bismark2report"
11388 "coverage2cytosine"
11389 "deduplicate_bismark"
11390 "filter_non_conversion"
11391 "bam2nuc"
38502a7d
RW
11392 "bismark2summary"
11393 "NOMe_filtering")))
0f5ad3a1 11394 (substitute* "bismark2report"
38502a7d
RW
11395 (("\\$RealBin/plotly")
11396 (string-append share "/plotly")))
126c9e3f 11397 (mkdir-p share)
96348048
RW
11398 (mkdir-p docdir)
11399 (mkdir-p bin)
11400 (for-each (lambda (file) (install-file file bin))
11401 scripts)
11402 (for-each (lambda (file) (install-file file docdir))
11403 docs)
126c9e3f 11404 (copy-recursively "Docs/Images" (string-append docdir "/Images"))
38502a7d
RW
11405 (copy-recursively "plotly"
11406 (string-append share "/plotly"))
126c9e3f 11407
09658903
RW
11408 ;; Fix references to gunzip
11409 (substitute* (map (lambda (file)
11410 (string-append bin "/" file))
11411 scripts)
11412 (("\"gunzip -c")
11413 (string-append "\"" (assoc-ref inputs "gzip")
11414 "/bin/gunzip -c")))
96348048 11415 #t))))))
09658903 11416 (inputs
38502a7d
RW
11417 `(("gzip" ,gzip)
11418 ("perl-carp" ,perl-carp)
11419 ("perl-getopt-long" ,perl-getopt-long)))
11420 (native-inputs
11421 `(("plotly.js"
11422 ,(origin
11423 (method url-fetch)
11424 (uri (string-append "https://raw.githubusercontent.com/plotly/plotly.js/"
11425 "v1.39.4/dist/plotly.js"))
11426 (sha256
11427 (base32 "138mwsr4nf5qif4mrxx286mpnagxd1xwl6k8aidrjgknaqg88zyr"))))
11428 ("uglify-js" ,uglify-js)))
96348048
RW
11429 (home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
11430 (synopsis "Map bisulfite treated sequence reads and analyze methylation")
11431 (description "Bismark is a program to map bisulfite treated sequencing
11432reads to a genome of interest and perform methylation calls in a single step.
11433The output can be easily imported into a genome viewer, such as SeqMonk, and
11434enables a researcher to analyse the methylation levels of their samples
11435straight away. Its main features are:
11436
11437@itemize
11438@item Bisulfite mapping and methylation calling in one single step
11439@item Supports single-end and paired-end read alignments
11440@item Supports ungapped and gapped alignments
11441@item Alignment seed length, number of mismatches etc are adjustable
11442@item Output discriminates between cytosine methylation in CpG, CHG
11443 and CHH context
11444@end itemize\n")
11445 (license license:gpl3+)))
dc8ddbfb
RW
11446
11447(define-public paml
11448 (package
11449 (name "paml")
11450 (version "4.9e")
11451 (source (origin
11452 (method url-fetch)
11453 (uri (string-append "http://abacus.gene.ucl.ac.uk/software/"
11454 "paml" version ".tgz"))
11455 (sha256
11456 (base32
11457 "13zf6h9fiqghwhch2h06x1zdr6s42plsnqahflp5g7myr3han3s6"))
11458 (modules '((guix build utils)))
11459 ;; Remove Windows binaries
11460 (snippet
11461 '(begin
11462 (for-each delete-file (find-files "." "\\.exe$"))
11463 #t))))
11464 (build-system gnu-build-system)
11465 (arguments
11466 `(#:tests? #f ; there are no tests
11467 #:make-flags '("CC=gcc")
11468 #:phases
11469 (modify-phases %standard-phases
11470 (replace 'configure
11471 (lambda _
11472 (substitute* "src/BFdriver.c"
11473 (("/bin/bash") (which "bash")))
11474 (chdir "src")
11475 #t))
11476 (replace 'install
11477 (lambda* (#:key outputs #:allow-other-keys)
11478 (let ((tools '("baseml" "basemlg" "codeml"
11479 "pamp" "evolver" "yn00" "chi2"))
11480 (bin (string-append (assoc-ref outputs "out") "/bin"))
11481 (docdir (string-append (assoc-ref outputs "out")
11482 "/share/doc/paml")))
11483 (mkdir-p bin)
11484 (for-each (lambda (file) (install-file file bin)) tools)
11485 (copy-recursively "../doc" docdir)
11486 #t))))))
11487 (home-page "http://abacus.gene.ucl.ac.uk/software/paml.html")
11488 (synopsis "Phylogentic analysis by maximum likelihood")
11489 (description "PAML (for Phylogentic Analysis by Maximum Likelihood)
11490contains a few programs for model fitting and phylogenetic tree reconstruction
11491using nucleotide or amino-acid sequence data.")
11492 ;; GPLv3 only
11493 (license license:gpl3)))
d112e5a8
RW
11494
11495(define-public kallisto
11496 (package
11497 (name "kallisto")
e8a7eab1 11498 (version "0.44.0")
d112e5a8 11499 (source (origin
e8a7eab1
RW
11500 (method git-fetch)
11501 (uri (git-reference
11502 (url "https://github.com/pachterlab/kallisto.git")
11503 (commit (string-append "v" version))))
11504 (file-name (git-file-name name version))
d112e5a8
RW
11505 (sha256
11506 (base32
e8a7eab1 11507 "0nj382jiywqnpgvyhichajpkkh5r0bapn43f4dx40zdaq5v4m40m"))))
d112e5a8 11508 (build-system cmake-build-system)
e8a7eab1
RW
11509 (arguments
11510 `(#:tests? #f ; no "check" target
11511 #:phases
11512 (modify-phases %standard-phases
11513 (add-after 'unpack 'do-not-use-bundled-htslib
11514 (lambda _
11515 (substitute* "CMakeLists.txt"
11516 (("^ExternalProject_Add" m)
11517 (string-append "if (NEVER)\n" m))
11518 (("^\\)")
11519 (string-append ")\nendif(NEVER)"))
11520 (("include_directories\\(\\$\\{htslib_PREFIX.*" m)
11521 (string-append "# " m)))
11522 (substitute* "src/CMakeLists.txt"
11523 (("target_link_libraries\\(kallisto kallisto_core pthread \
11524\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/../ext/htslib/libhts.a\\)")
11525 "target_link_libraries(kallisto kallisto_core pthread hts)")
11526 (("include_directories\\(\\.\\./ext/htslib\\)") ""))
11527 #t)))))
d112e5a8
RW
11528 (inputs
11529 `(("hdf5" ,hdf5)
e8a7eab1 11530 ("htslib" ,htslib)
d112e5a8
RW
11531 ("zlib" ,zlib)))
11532 (home-page "http://pachterlab.github.io/kallisto/")
11533 (synopsis "Near-optimal RNA-Seq quantification")
11534 (description
11535 "Kallisto is a program for quantifying abundances of transcripts from
11536RNA-Seq data, or more generally of target sequences using high-throughput
11537sequencing reads. It is based on the novel idea of pseudoalignment for
11538rapidly determining the compatibility of reads with targets, without the need
11539for alignment. Pseudoalignment of reads preserves the key information needed
11540for quantification, and kallisto is therefore not only fast, but also as
11541accurate as existing quantification tools.")
11542 (license license:bsd-2)))
c3b2ab9d
RW
11543
11544(define-public libgff
11545 (package
11546 (name "libgff")
11547 (version "1.0")
11548 (source (origin
55698df2
RW
11549 (method git-fetch)
11550 (uri (git-reference
11551 (url "https://github.com/Kingsford-Group/libgff.git")
11552 (commit (string-append "v" version))))
11553 (file-name (git-file-name name version))
c3b2ab9d
RW
11554 (sha256
11555 (base32
55698df2 11556 "0n6vfjnq7a2mianipscbshrvbncss8z4zkgkbjw754p9043nfkps"))))
c3b2ab9d
RW
11557 (build-system cmake-build-system)
11558 (arguments `(#:tests? #f)) ; no tests included
11559 (home-page "https://github.com/Kingsford-Group/libgff")
11560 (synopsis "Parser library for reading/writing GFF files")
11561 (description "This is a simple \"libraryfication\" of the GFF/GTF parsing
11562code that is used in the Cufflinks codebase. The goal of this library is to
11563provide this functionality without the necessity of drawing in a heavy-weight
11564dependency like SeqAn.")
a2cfe190 11565 (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"))))
1fe0bde3
RW
11566
11567(define-public libdivsufsort
11568 (package
11569 (name "libdivsufsort")
11570 (version "2.0.1")
11571 (source (origin
11572 (method git-fetch)
11573 (uri (git-reference
11574 (url "https://github.com/y-256/libdivsufsort.git")
11575 (commit version)))
d9a069c2 11576 (file-name (git-file-name name version))
1fe0bde3
RW
11577 (sha256
11578 (base32
11579 "0fgdz9fzihlvjjrxy01md1bv9vh12rkgkwbm90b1hj5xpbaqp7z2"))))
11580 (build-system cmake-build-system)
11581 (arguments
11582 '(#:tests? #f ; there are no tests
11583 #:configure-flags
11584 ;; Needed for rapmap and sailfish.
11585 '("-DBUILD_DIVSUFSORT64=ON")))
11586 (home-page "https://github.com/y-256/libdivsufsort")
11587 (synopsis "Lightweight suffix-sorting library")
11588 (description "libdivsufsort is a software library that implements a
11589lightweight suffix array construction algorithm. This library provides a
11590simple and an efficient C API to construct a suffix array and a
11591Burrows-Wheeler transformed string from a given string over a constant-size
11592alphabet. The algorithm runs in O(n log n) worst-case time using only 5n+O(1)
11593bytes of memory space, where n is the length of the string.")
11594 (license license:expat)))
8d77a085
RW
11595
11596(define-public sailfish
11597 (package
11598 (name "sailfish")
11599 (version "0.10.1")
11600 (source (origin
c098c49b
RW
11601 (method git-fetch)
11602 (uri (git-reference
11603 (url "https://github.com/kingsfordgroup/sailfish.git")
11604 (commit (string-append "v" version))))
11605 (file-name (git-file-name name version))
8d77a085
RW
11606 (sha256
11607 (base32
c098c49b 11608 "1amcc5hqvsl42hg4x19bi9vy47cl874s0lw1fmi0hwsdk9i8c03v"))
8d77a085
RW
11609 (modules '((guix build utils)))
11610 (snippet
11611 '(begin
11612 ;; Delete bundled headers for eigen3.
11613 (delete-file-recursively "include/eigen3/")
11614 #t))))
11615 (build-system cmake-build-system)
11616 (arguments
11617 `(#:configure-flags
11618 (list (string-append "-DBOOST_INCLUDEDIR="
11619 (assoc-ref %build-inputs "boost")
11620 "/include/")
11621 (string-append "-DBOOST_LIBRARYDIR="
11622 (assoc-ref %build-inputs "boost")
11623 "/lib/")
11624 (string-append "-DBoost_LIBRARIES="
11625 "-lboost_iostreams "
11626 "-lboost_filesystem "
11627 "-lboost_system "
11628 "-lboost_thread "
11629 "-lboost_timer "
11630 "-lboost_chrono "
11631 "-lboost_program_options")
11632 "-DBoost_FOUND=TRUE"
11633 ;; Don't download RapMap---we already have it!
11634 "-DFETCHED_RAPMAP=1")
11635 ;; Tests must be run after installation and the location of the test
11636 ;; data file must be overridden. But the tests fail. It looks like
11637 ;; they are not really meant to be run.
11638 #:tests? #f
11639 #:phases
11640 (modify-phases %standard-phases
11641 ;; Boost cannot be found, even though it's right there.
11642 (add-after 'unpack 'do-not-look-for-boost
11643 (lambda* (#:key inputs #:allow-other-keys)
11644 (substitute* "CMakeLists.txt"
2e0f6905
MW
11645 (("find_package\\(Boost 1\\.53\\.0") "#"))
11646 #t))
8d77a085
RW
11647 (add-after 'unpack 'do-not-assign-to-macro
11648 (lambda _
11649 (substitute* "include/spdlog/details/format.cc"
2e0f6905
MW
11650 (("const unsigned CHAR_WIDTH = 1;") ""))
11651 #t))
8d77a085
RW
11652 (add-after 'unpack 'prepare-rapmap
11653 (lambda* (#:key inputs #:allow-other-keys)
11654 (let ((src "external/install/src/rapmap/")
11655 (include "external/install/include/rapmap/")
11656 (rapmap (assoc-ref inputs "rapmap")))
11657 (mkdir-p "/tmp/rapmap")
9f527c91
RW
11658 (invoke "tar" "xf"
11659 (assoc-ref inputs "rapmap")
11660 "-C" "/tmp/rapmap"
11661 "--strip-components=1")
8d77a085
RW
11662 (mkdir-p src)
11663 (mkdir-p include)
11664 (for-each (lambda (file)
11665 (install-file file src))
11666 (find-files "/tmp/rapmap/src" "\\.(c|cpp)"))
2e0f6905
MW
11667 (copy-recursively "/tmp/rapmap/include" include))
11668 #t))
8d77a085
RW
11669 (add-after 'unpack 'use-system-libraries
11670 (lambda* (#:key inputs #:allow-other-keys)
11671 (substitute* '("src/SailfishIndexer.cpp"
11672 "src/SailfishUtils.cpp"
11673 "src/SailfishQuantify.cpp"
11674 "src/FASTAParser.cpp"
11675 "include/PCA.hpp"
11676 "include/SailfishUtils.hpp"
11677 "include/SailfishIndex.hpp"
11678 "include/CollapsedEMOptimizer.hpp"
11679 "src/CollapsedEMOptimizer.cpp")
11680 (("#include \"jellyfish/config.h\"") ""))
11681 (substitute* "src/CMakeLists.txt"
11682 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11683 (string-append (assoc-ref inputs "jellyfish")
11684 "/include/jellyfish-" ,(package-version jellyfish)))
11685 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11686 (string-append (assoc-ref inputs "jellyfish")
11687 "/lib/libjellyfish-2.0.a"))
11688 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11689 (string-append (assoc-ref inputs "libdivsufsort")
11690 "/lib/libdivsufsort.so"))
11691 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11692 (string-append (assoc-ref inputs "libdivsufsort")
11693 "/lib/libdivsufsort64.so")))
11694 (substitute* "CMakeLists.txt"
11695 ;; Don't prefer static libs
11696 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11697 (("find_package\\(Jellyfish.*") "")
11698 (("ExternalProject_Add\\(libjellyfish") "message(")
11699 (("ExternalProject_Add\\(libgff") "message(")
11700 (("ExternalProject_Add\\(libsparsehash") "message(")
11701 (("ExternalProject_Add\\(libdivsufsort") "message("))
11702
11703 ;; Ensure that Eigen headers can be found
11704 (setenv "CPLUS_INCLUDE_PATH"
11705 (string-append (getenv "CPLUS_INCLUDE_PATH")
11706 ":"
11707 (assoc-ref inputs "eigen")
2e0f6905
MW
11708 "/include/eigen3"))
11709 #t)))))
8d77a085
RW
11710 (inputs
11711 `(("boost" ,boost)
11712 ("eigen" ,eigen)
11713 ("jemalloc" ,jemalloc)
11714 ("jellyfish" ,jellyfish)
11715 ("sparsehash" ,sparsehash)
11716 ("rapmap" ,(origin
11717 (method git-fetch)
11718 (uri (git-reference
11719 (url "https://github.com/COMBINE-lab/RapMap.git")
11720 (commit (string-append "sf-v" version))))
11721 (file-name (string-append "rapmap-sf-v" version "-checkout"))
11722 (sha256
11723 (base32
11724 "1hv79l5i576ykv5a1srj2p0q36yvyl5966m0fcy2lbi169ipjakf"))
11725 (modules '((guix build utils)))
11726 ;; These files are expected to be excluded.
11727 (snippet
11728 '(begin (delete-file-recursively "include/spdlog")
11729 (for-each delete-file '("include/xxhash.h"
6cbee49d
MW
11730 "src/xxhash.c"))
11731 #t))))
8d77a085
RW
11732 ("libdivsufsort" ,libdivsufsort)
11733 ("libgff" ,libgff)
11734 ("tbb" ,tbb)
11735 ("zlib" ,zlib)))
11736 (native-inputs
11737 `(("pkg-config" ,pkg-config)))
11738 (home-page "http://www.cs.cmu.edu/~ckingsf/software/sailfish")
11739 (synopsis "Mapping-based isoform quantification from RNA-Seq reads")
11740 (description "Sailfish is a tool for genomic transcript quantification
11741from RNA-seq data. It requires a set of target transcripts (either from a
11742reference or de-novo assembly) to quantify. All you need to run sailfish is a
11743fasta file containing your reference transcripts and a (set of) fasta/fastq
11744file(s) containing your reads.")
11745 (license license:gpl3+)))
7762646d
RW
11746
11747(define libstadenio-for-salmon
11748 (package
11749 (name "libstadenio")
11750 (version "1.14.8")
11751 (source (origin
11752 (method git-fetch)
11753 (uri (git-reference
11754 (url "https://github.com/COMBINE-lab/staden-io_lib.git")
11755 (commit (string-append "v" version))))
11756 (file-name (string-append name "-" version "-checkout"))
11757 (sha256
11758 (base32
11759 "1x8kxxqxl892vwfbprlbyfwkkv7c34ggkc94892x9x0g37x5nbwx"))))
11760 (build-system gnu-build-system)
11761 (arguments '(#:parallel-tests? #f)) ; not supported
11762 (inputs
11763 `(("zlib" ,zlib)))
11764 (native-inputs
11765 `(("perl" ,perl))) ; for tests
11766 (home-page "https://github.com/COMBINE-lab/staden-io_lib")
11767 (synopsis "General purpose trace and experiment file library")
11768 (description "This package provides a library of file reading and writing
11769code to provide a general purpose Trace file (and Experiment File) reading
11770interface.
11771
11772The following file formats are supported:
11773
11774@enumerate
11775@item SCF trace files
11776@item ABI trace files
11777@item ALF trace files
11778@item ZTR trace files
11779@item SFF trace archives
11780@item SRF trace archives
11781@item Experiment files
11782@item Plain text files
11783@item SAM/BAM sequence files
11784@item CRAM sequence files
11785@end enumerate\n")
11786 (license license:bsd-3)))
11787
11788(define spdlog-for-salmon
11789 (package
11790 (name "spdlog")
11791 (version "0.14.0")
11792 (source (origin
11793 (method git-fetch)
11794 (uri (git-reference
11795 (url "https://github.com/COMBINE-lab/spdlog.git")
11796 (commit (string-append "v" version))))
11797 (file-name (string-append name "-" version "-checkout"))
11798 (sha256
11799 (base32
11800 "13730429gwlabi432ilpnja3sfvy0nn2719vnhhmii34xcdyc57q"))))
11801 (build-system cmake-build-system)
11802 (home-page "https://github.com/COMBINE-lab/spdlog")
11803 (synopsis "Very fast C++ logging library")
11804 (description "Spdlog is a very fast header-only C++ logging library with
11805performance as its primary goal.")
11806 (license license:expat)))
11807
11808;; This is a modified variant of bwa for use with Salmon. It installs a
11809;; library to avoid having to build this as part of Salmon.
11810(define bwa-for-salmon
11811 (package (inherit bwa)
11812 (name "bwa")
11813 (version "0.7.12.5")
11814 (source (origin
11815 (method git-fetch)
11816 (uri (git-reference
11817 (url "https://github.com/COMBINE-lab/bwa.git")
11818 (commit (string-append "v" version))))
11819 (file-name (string-append "bwa-for-salmon-" version "-checkout"))
11820 (sha256
11821 (base32
11822 "1z2qa64y0c5hky10510x137mnzlhz6k8qf27csw4w9j6qihq95gb"))))
11823 (build-system gnu-build-system)
11824 (arguments
11825 '(#:tests? #f ;no "check" target
11826 #:phases
11827 (modify-phases %standard-phases
11828 (replace 'install
11829 (lambda* (#:key outputs #:allow-other-keys)
11830 (let* ((out (assoc-ref outputs "out"))
11831 (bin (string-append out "/bin"))
11832 (lib (string-append out "/lib"))
11833 (doc (string-append out "/share/doc/bwa"))
11834 (man (string-append out "/share/man/man1"))
11835 (inc (string-append out "/include/bwa")))
11836 (install-file "bwa" bin)
11837 (install-file "README.md" doc)
11838 (install-file "bwa.1" man)
11839 (install-file "libbwa.a" lib)
11840 (mkdir-p lib)
11841 (mkdir-p inc)
11842 (for-each (lambda (file)
11843 (install-file file inc))
11844 (find-files "." "\\.h$")))
11845 #t))
11846 ;; no "configure" script
11847 (delete 'configure))))))
11848
11849(define-public salmon
11850 (package
11851 (name "salmon")
11852 (version "0.9.1")
11853 (source (origin
11854 (method git-fetch)
11855 (uri (git-reference
11856 (url "https://github.com/COMBINE-lab/salmon.git")
11857 (commit (string-append "v" version))))
11858 (file-name (string-append name "-" version "-checkout"))
11859 (sha256
11860 (base32
11861 "1zi1ff4i7y2ykk0vdzysgwzzzv166vg2x77pj1mf4baclavxj87a"))
11862 (modules '((guix build utils)))
11863 (snippet
11864 '(begin
11865 ;; Delete bundled headers for eigen3.
11866 (delete-file-recursively "include/eigen3/")
11867 #t))))
11868 (build-system cmake-build-system)
11869 (arguments
11870 `(#:configure-flags
11871 (list (string-append "-DBOOST_INCLUDEDIR="
11872 (assoc-ref %build-inputs "boost")
11873 "/include/")
11874 (string-append "-DBOOST_LIBRARYDIR="
11875 (assoc-ref %build-inputs "boost")
11876 "/lib/")
11877 (string-append "-DBoost_LIBRARIES="
11878 "-lboost_iostreams "
11879 "-lboost_filesystem "
11880 "-lboost_system "
11881 "-lboost_thread "
11882 "-lboost_timer "
11883 "-lboost_chrono "
11884 "-lboost_program_options")
11885 "-DBoost_FOUND=TRUE"
11886 "-DTBB_LIBRARIES=tbb tbbmalloc"
11887 ;; Don't download RapMap---we already have it!
11888 "-DFETCHED_RAPMAP=1")
11889 #:phases
11890 (modify-phases %standard-phases
11891 ;; Boost cannot be found, even though it's right there.
11892 (add-after 'unpack 'do-not-look-for-boost
11893 (lambda* (#:key inputs #:allow-other-keys)
11894 (substitute* "CMakeLists.txt"
2e0f6905
MW
11895 (("find_package\\(Boost 1\\.53\\.0") "#"))
11896 #t))
7762646d
RW
11897 (add-after 'unpack 'do-not-phone-home
11898 (lambda _
11899 (substitute* "src/Salmon.cpp"
2e0f6905
MW
11900 (("getVersionMessage\\(\\)") "\"\""))
11901 #t))
7762646d
RW
11902 (add-after 'unpack 'prepare-rapmap
11903 (lambda* (#:key inputs #:allow-other-keys)
11904 (let ((src "external/install/src/rapmap/")
11905 (include "external/install/include/rapmap/")
11906 (rapmap (assoc-ref inputs "rapmap")))
11907 (mkdir-p src)
11908 (mkdir-p include)
11909 (for-each (lambda (file)
11910 (install-file file src))
11911 (find-files (string-append rapmap "/src") "\\.(c|cpp)"))
11912 (copy-recursively (string-append rapmap "/include") include)
11913 (for-each delete-file '("external/install/include/rapmap/xxhash.h"
11914 "external/install/include/rapmap/FastxParser.hpp"
11915 "external/install/include/rapmap/concurrentqueue.h"
11916 "external/install/include/rapmap/FastxParserThreadUtils.hpp"
11917 "external/install/src/rapmap/FastxParser.cpp"
2e0f6905
MW
11918 "external/install/src/rapmap/xxhash.c")))
11919 #t))
7762646d
RW
11920 (add-after 'unpack 'use-system-libraries
11921 (lambda* (#:key inputs #:allow-other-keys)
11922 (substitute* "src/CMakeLists.txt"
11923 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/include/jellyfish-2.2..")
11924 (string-append (assoc-ref inputs "jellyfish")
11925 "/include/jellyfish-" ,(package-version jellyfish)))
11926 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libjellyfish-2.0.a")
11927 (string-append (assoc-ref inputs "jellyfish")
11928 "/lib/libjellyfish-2.0.a"))
11929 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort.a")
11930 (string-append (assoc-ref inputs "libdivsufsort")
11931 "/lib/libdivsufsort.so"))
11932 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libstaden-read.a")
11933 (string-append (assoc-ref inputs "libstadenio-for-salmon")
11934 "/lib/libstaden-read.a"))
11935 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libbwa.a")
11936 (string-append (assoc-ref inputs "bwa") "/lib/libbwa.a"))
11937 (("\\$\\{GAT_SOURCE_DIR\\}/external/install/lib/libdivsufsort64.a")
11938 (string-append (assoc-ref inputs "libdivsufsort")
11939 "/lib/libdivsufsort64.so")))
11940 (substitute* "CMakeLists.txt"
11941 ;; Don't prefer static libs
11942 (("SET\\(CMAKE_FIND_LIBRARY_SUFFIXES.*") "")
11943 (("set\\(TBB_LIBRARIES") "message(")
11944 (("find_package\\(Jellyfish.*") "")
11945 (("ExternalProject_Add\\(libcereal") "message(")
11946 (("ExternalProject_Add\\(libbwa") "message(")
11947 (("ExternalProject_Add\\(libjellyfish") "message(")
11948 (("ExternalProject_Add\\(libgff") "message(")
11949 (("ExternalProject_Add\\(libtbb") "message(")
11950 (("ExternalProject_Add\\(libspdlog") "message(")
11951 (("ExternalProject_Add\\(libdivsufsort") "message(")
11952 (("ExternalProject_Add\\(libstadenio") "message(")
11953 (("ExternalProject_Add_Step\\(") "message("))
11954
11955 ;; Ensure that all headers can be found
11956 (setenv "CPLUS_INCLUDE_PATH"
11957 (string-append (getenv "CPLUS_INCLUDE_PATH")
11958 ":"
11959 (assoc-ref inputs "bwa")
11960 "/include/bwa"
11961 ":"
11962 (assoc-ref inputs "eigen")
11963 "/include/eigen3"))
11964 (setenv "CPATH"
11965 (string-append (assoc-ref inputs "bwa")
11966 "/include/bwa"
11967 ":"
11968 (assoc-ref inputs "eigen")
11969 "/include/eigen3"))
11970 #t))
11971 ;; CMAKE_INSTALL_PREFIX does not exist when the tests are
11972 ;; run. It only exists after the install phase.
11973 (add-after 'unpack 'fix-tests
11974 (lambda _
11975 (substitute* "src/CMakeLists.txt"
11976 (("DTOPLEVEL_DIR=\\$\\{CMAKE_INSTALL_PREFIX")
11977 "DTOPLEVEL_DIR=${GAT_SOURCE_DIR"))
11978 #t)))))
11979 (inputs
11980 `(("boost" ,boost)
11981 ("bwa" ,bwa-for-salmon)
11982 ("bzip2" ,bzip2)
11983 ("cereal" ,cereal)
11984 ("eigen" ,eigen)
11985 ("rapmap" ,(origin
11986 (method git-fetch)
11987 (uri (git-reference
11988 (url "https://github.com/COMBINE-lab/RapMap.git")
11989 (commit (string-append "salmon-v" version))))
11990 (file-name (string-append "rapmap-salmon-v" version "-checkout"))
11991 (sha256
11992 (base32
11993 "1yc12yqsz6f0r8sg1qnk57xg34aqwc9jbqq6gd5ys28xw3plj98p"))))
11994 ("jemalloc" ,jemalloc)
11995 ("jellyfish" ,jellyfish)
11996 ("libgff" ,libgff)
11997 ("tbb" ,tbb)
11998 ("libdivsufsort" ,libdivsufsort)
11999 ("libstadenio-for-salmon" ,libstadenio-for-salmon)
12000 ("spdlog-for-salmon" ,spdlog-for-salmon)
12001 ("xz" ,xz)
12002 ("zlib" ,zlib)))
12003 (home-page "https://github.com/COMBINE-lab/salmon")
12004 (synopsis "Quantification from RNA-seq reads using lightweight alignments")
12005 (description "Salmon is a program to produce highly-accurate,
12006transcript-level quantification estimates from RNA-seq data. Salmon achieves
12007its accuracy and speed via a number of different innovations, including the
12008use of lightweight alignments (accurate but fast-to-compute proxies for
12009traditional read alignments) and massively-parallel stochastic collapsed
12010variational inference.")
12011 (license license:gpl3+)))
152d30c3
RW
12012
12013(define-public python-loompy
12014 (package
12015 (name "python-loompy")
55a0a3c8
RW
12016 (version "2.0.17")
12017 ;; The tarball on Pypi does not include the tests.
12018 (source (origin
12019 (method git-fetch)
12020 (uri (git-reference
12021 (url "https://github.com/linnarsson-lab/loompy.git")
12022 (commit version)))
12023 (file-name (git-file-name name version))
12024 (sha256
12025 (base32
12026 "12a5kjgiikapv93wahfw0frszx1lblnppyz3vs5gy8fgmgngra07"))))
152d30c3 12027 (build-system python-build-system)
55a0a3c8
RW
12028 (arguments
12029 `(#:phases
12030 (modify-phases %standard-phases
12031 (replace 'check
12032 (lambda _
12033 (setenv "PYTHONPATH"
12034 (string-append (getcwd) ":"
12035 (getenv "PYTHONPATH")))
12036 (invoke "pytest" "tests")
12037 #t)))))
152d30c3
RW
12038 (propagated-inputs
12039 `(("python-h5py" ,python-h5py)
12040 ("python-numpy" ,python-numpy)
55a0a3c8 12041 ("python-pandas" ,python-pandas)
93d229cb 12042 ("python-scipy" ,python-scipy)))
55a0a3c8
RW
12043 (native-inputs
12044 `(("python-pytest" ,python-pytest)))
152d30c3
RW
12045 (home-page "https://github.com/linnarsson-lab/loompy")
12046 (synopsis "Work with .loom files for single-cell RNA-seq data")
12047 (description "The loom file format is an efficient format for very large
12048omics datasets, consisting of a main matrix, optional additional layers, a
12049variable number of row and column annotations. Loom also supports sparse
12050graphs. This library makes it easy to work with @file{.loom} files for
12051single-cell RNA-seq data.")
12052 (license license:bsd-3)))
5fef15e5 12053
dc112a0f
RW
12054;; pigx-scrnaseq does not work with the latest version of loompy.
12055(define-public python-loompy-for-pigx-scrnaseq
12056 (package (inherit python-loompy)
12057 (name "python-loompy")
12058 (version "2.0.3")
12059 (source (origin
12060 (method git-fetch)
12061 (uri (git-reference
12062 (url "https://github.com/linnarsson-lab/loompy.git")
12063 (commit (string-append "v" version))))
12064 (file-name (git-file-name name version))
12065 (sha256
12066 (base32
12067 "0pjyl532pl8sbv71yci6h0agchn0naw2qjcwj50n6afrsahbsag3"))))
12068 ;; There are none.
12069 (arguments '(#:tests? #f))))
12070
f09d16e5
RW
12071;; We cannot use the latest commit because it requires Java 9.
12072(define-public java-forester
12073 (let ((commit "86b07efe302d5094b42deed9260f719a4c4ac2e6")
12074 (revision "1"))
12075 (package
12076 (name "java-forester")
12077 (version (string-append "0-" revision "." (string-take commit 7)))
12078 (source (origin
12079 (method git-fetch)
12080 (uri (git-reference
12081 (url "https://github.com/cmzmasek/forester.git")
12082 (commit commit)))
12083 (file-name (string-append name "-" version "-checkout"))
12084 (sha256
12085 (base32
12086 "0vxavc1yrf84yrnf20dq26hi0lglidk8d382xrxsy4qmlbjd276z"))
12087 (modules '((guix build utils)))
12088 (snippet
12089 '(begin
12090 ;; Delete bundled jars and pre-built classes
12091 (delete-file-recursively "forester/java/resources")
12092 (delete-file-recursively "forester/java/classes")
12093 (for-each delete-file (find-files "forester/java/" "\\.jar$"))
12094 ;; Delete bundled applications
12095 (delete-file-recursively "forester_applications")
12096 #t))))
12097 (build-system ant-build-system)
12098 (arguments
12099 `(#:tests? #f ; there are none
12100 #:jdk ,icedtea-8
12101 #:modules ((guix build ant-build-system)
12102 (guix build utils)
12103 (guix build java-utils)
12104 (sxml simple)
12105 (sxml transform))
12106 #:phases
12107 (modify-phases %standard-phases
12108 (add-after 'unpack 'chdir
12109 (lambda _ (chdir "forester/java") #t))
12110 (add-after 'chdir 'fix-dependencies
12111 (lambda _
12112 (chmod "build.xml" #o664)
12113 (call-with-output-file "build.xml.new"
12114 (lambda (port)
12115 (sxml->xml
12116 (pre-post-order
12117 (with-input-from-file "build.xml"
12118 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12119 `(;; Remove all unjar tags to avoid repacking classes.
12120 (unjar . ,(lambda _ '()))
12121 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12122 (*text* . ,(lambda (_ txt) txt))))
12123 port)))
12124 (rename-file "build.xml.new" "build.xml")
12125 #t))
12126 ;; FIXME: itext is difficult to package as it depends on a few
12127 ;; unpackaged libraries.
12128 (add-after 'chdir 'remove-dependency-on-unpackaged-itext
12129 (lambda _
12130 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12131 (substitute* "src/org/forester/archaeopteryx/MainFrame.java"
12132 (("pdf_written_to = PdfExporter.*")
12133 "throw new IOException(\"PDF export is not available.\");"))
12134 #t))
12135 ;; There is no install target
12136 (replace 'install (install-jars ".")))))
12137 (propagated-inputs
12138 `(("java-commons-codec" ,java-commons-codec)
12139 ("java-openchart2" ,java-openchart2)))
12140 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12141 (synopsis "Phylogenomics libraries for Java")
12142 (description "Forester is a collection of Java libraries for
12143phylogenomics and evolutionary biology research. It includes support for
12144reading, writing, and exporting phylogenetic trees.")
12145 (license license:lgpl2.1+))))
12146
10645b92
RW
12147(define-public java-forester-1.005
12148 (package
12149 (name "java-forester")
12150 (version "1.005")
12151 (source (origin
12152 (method url-fetch)
12153 (uri (string-append "http://search.maven.org/remotecontent?"
12154 "filepath=org/biojava/thirdparty/forester/"
12155 version "/forester-" version "-sources.jar"))
12156 (file-name (string-append name "-" version ".jar"))
12157 (sha256
12158 (base32
12159 "04r8qv4rk3p71z4ajrvp11py1z46qrx0047j3zzs79s6lnsm3lcv"))))
12160 (build-system ant-build-system)
12161 (arguments
12162 `(#:tests? #f ; there are none
12163 #:jdk ,icedtea-8
12164 #:modules ((guix build ant-build-system)
12165 (guix build utils)
12166 (guix build java-utils)
12167 (sxml simple)
12168 (sxml transform))
12169 #:phases
12170 (modify-phases %standard-phases
12171 (add-after 'unpack 'fix-dependencies
12172 (lambda* (#:key inputs #:allow-other-keys)
12173 (call-with-output-file "build.xml"
12174 (lambda (port)
12175 (sxml->xml
12176 (pre-post-order
12177 (with-input-from-file "src/build.xml"
12178 (lambda _ (xml->sxml #:trim-whitespace? #t)))
12179 `(;; Remove all unjar tags to avoid repacking classes.
12180 (unjar . ,(lambda _ '()))
12181 (*default* . ,(lambda (tag . kids) `(,tag ,@kids)))
12182 (*text* . ,(lambda (_ txt) txt))))
12183 port)))
12184 (copy-file (assoc-ref inputs "synth_look_and_feel_1.xml")
12185 "synth_look_and_feel_1.xml")
12186 (copy-file (assoc-ref inputs "phyloxml.xsd")
12187 "phyloxml.xsd")
12188 (substitute* "build.xml"
12189 (("../resources/synth_laf/synth_look_and_feel_1.xml")
12190 "synth_look_and_feel_1.xml")
12191 (("../resources/phyloxml_schema/1.10/phyloxml.xsd")
12192 "phyloxml.xsd"))
12193 #t))
12194 ;; FIXME: itext is difficult to package as it depends on a few
12195 ;; unpackaged libraries.
12196 (add-after 'unpack 'remove-dependency-on-unpackaged-itext
12197 (lambda _
12198 (delete-file "src/org/forester/archaeopteryx/PdfExporter.java")
12199 (substitute* '("src/org/forester/archaeopteryx/MainFrame.java"
12200 "src/org/forester/archaeopteryx/MainFrameApplication.java")
12201 (("pdf_written_to = PdfExporter.*")
12202 "throw new IOException(\"PDF export is not available.\"); /*")
12203 ((".getPrintSizeX\\(\\), getOptions\\(\\).getPrintSizeY\\(\\) \\);") "*/")
12204 (("getCurrentTreePanel\\(\\).getHeight\\(\\) \\);") "*/"))
12205 #t))
12206 (add-after 'unpack 'delete-pre-built-classes
12207 (lambda _ (delete-file-recursively "src/classes") #t))
12208 ;; There is no install target
12209 (replace 'install (install-jars ".")))))
12210 (propagated-inputs
12211 `(("java-commons-codec" ,java-commons-codec)
12212 ("java-openchart2" ,java-openchart2)))
12213 ;; The source archive does not contain the resources.
12214 (native-inputs
12215 `(("phyloxml.xsd"
12216 ,(origin
12217 (method url-fetch)
12218 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12219 "b61cc2dcede0bede317db362472333115756b8c6/"
12220 "forester/resources/phyloxml_schema/1.10/phyloxml.xsd"))
12221 (file-name (string-append name "-phyloxml-" version ".xsd"))
12222 (sha256
12223 (base32
12224 "1zxc4m8sn4n389nqdnpxa8d0k17qnr3pm2y5y6g6vh4k0zm52npv"))))
12225 ("synth_look_and_feel_1.xml"
12226 ,(origin
12227 (method url-fetch)
12228 (uri (string-append "https://raw.githubusercontent.com/cmzmasek/forester/"
12229 "29e04321615da6b35c1e15c60e52caf3f21d8e6a/"
12230 "forester/java/classes/resources/synth_look_and_feel_1.xml"))
12231 (file-name (string-append name "-synth-look-and-feel-" version ".xml"))
12232 (sha256
12233 (base32
12234 "1gv5602gv4k7y7713y75a4jvj7i9s7nildsbdl7n9q10sc2ikg8h"))))))
12235 (home-page "https://sites.google.com/site/cmzmasek/home/software/forester")
12236 (synopsis "Phylogenomics libraries for Java")
12237 (description "Forester is a collection of Java libraries for
12238phylogenomics and evolutionary biology research. It includes support for
12239reading, writing, and exporting phylogenetic trees.")
12240 (license license:lgpl2.1+)))
12241
5fef15e5
RW
12242(define-public java-biojava-core
12243 (package
12244 (name "java-biojava-core")
12245 (version "4.2.11")
12246 (source (origin
12247 (method git-fetch)
12248 (uri (git-reference
12249 (url "https://github.com/biojava/biojava")
12250 (commit (string-append "biojava-" version))))
12251 (file-name (string-append name "-" version "-checkout"))
12252 (sha256
12253 (base32
12254 "1bvryh2bpsvash8ln79cmc9sqm8qw72hz4xzwqxcrjm8ssxszhqk"))))
12255 (build-system ant-build-system)
12256 (arguments
12257 `(#:jdk ,icedtea-8
12258 #:jar-name "biojava-core.jar"
12259 #:source-dir "biojava-core/src/main/java/"
12260 #:test-dir "biojava-core/src/test"
12261 ;; These tests seem to require internet access.
12262 #:test-exclude (list "**/SearchIOTest.java"
12263 "**/BlastXMLParserTest.java"
12264 "**/GenbankCookbookTest.java"
12265 "**/GenbankProxySequenceReaderTest.java")
12266 #:phases
12267 (modify-phases %standard-phases
12268 (add-before 'build 'copy-resources
12269 (lambda _
12270 (copy-recursively "biojava-core/src/main/resources"
12271 "build/classes")
12272 #t))
12273 (add-before 'check 'copy-test-resources
12274 (lambda _
12275 (copy-recursively "biojava-core/src/test/resources"
12276 "build/test-classes")
12277 #t)))))
12278 (propagated-inputs
12279 `(("java-log4j-api" ,java-log4j-api)
12280 ("java-log4j-core" ,java-log4j-core)
12281 ("java-slf4j-api" ,java-slf4j-api)
12282 ("java-slf4j-simple" ,java-slf4j-simple)))
12283 (native-inputs
12284 `(("java-junit" ,java-junit)
12285 ("java-hamcrest-core" ,java-hamcrest-core)))
12286 (home-page "http://biojava.org")
12287 (synopsis "Core libraries of Java framework for processing biological data")
12288 (description "BioJava is a project dedicated to providing a Java framework
12289for processing biological data. It provides analytical and statistical
12290routines, parsers for common file formats, reference implementations of
12291popular algorithms, and allows the manipulation of sequences and 3D
12292structures. The goal of the biojava project is to facilitate rapid
12293application development for bioinformatics.
12294
12295This package provides the core libraries.")
12296 (license license:lgpl2.1+)))
b28c8037
RW
12297
12298(define-public java-biojava-phylo
12299 (package (inherit java-biojava-core)
12300 (name "java-biojava-phylo")
12301 (build-system ant-build-system)
12302 (arguments
12303 `(#:jdk ,icedtea-8
12304 #:jar-name "biojava-phylo.jar"
12305 #:source-dir "biojava-phylo/src/main/java/"
12306 #:test-dir "biojava-phylo/src/test"
12307 #:phases
12308 (modify-phases %standard-phases
12309 (add-before 'build 'copy-resources
12310 (lambda _
12311 (copy-recursively "biojava-phylo/src/main/resources"
12312 "build/classes")
12313 #t))
12314 (add-before 'check 'copy-test-resources
12315 (lambda _
12316 (copy-recursively "biojava-phylo/src/test/resources"
12317 "build/test-classes")
12318 #t)))))
12319 (propagated-inputs
12320 `(("java-log4j-api" ,java-log4j-api)
12321 ("java-log4j-core" ,java-log4j-core)
12322 ("java-slf4j-api" ,java-slf4j-api)
12323 ("java-slf4j-simple" ,java-slf4j-simple)
12324 ("java-biojava-core" ,java-biojava-core)
12325 ("java-forester" ,java-forester)))
12326 (native-inputs
12327 `(("java-junit" ,java-junit)
12328 ("java-hamcrest-core" ,java-hamcrest-core)))
12329 (home-page "http://biojava.org")
12330 (synopsis "Biojava interface to the forester phylogenomics library")
12331 (description "The phylo module provides a biojava interface layer to the
12332forester phylogenomics library for constructing phylogenetic trees.")))
22c09c33
RW
12333
12334(define-public java-biojava-alignment
12335 (package (inherit java-biojava-core)
12336 (name "java-biojava-alignment")
12337 (build-system ant-build-system)
12338 (arguments
12339 `(#:jdk ,icedtea-8
12340 #:jar-name "biojava-alignment.jar"
12341 #:source-dir "biojava-alignment/src/main/java/"
12342 #:test-dir "biojava-alignment/src/test"
12343 #:phases
12344 (modify-phases %standard-phases
12345 (add-before 'build 'copy-resources
12346 (lambda _
12347 (copy-recursively "biojava-alignment/src/main/resources"
12348 "build/classes")
12349 #t))
12350 (add-before 'check 'copy-test-resources
12351 (lambda _
12352 (copy-recursively "biojava-alignment/src/test/resources"
12353 "build/test-classes")
12354 #t)))))
12355 (propagated-inputs
12356 `(("java-log4j-api" ,java-log4j-api)
12357 ("java-log4j-core" ,java-log4j-core)
12358 ("java-slf4j-api" ,java-slf4j-api)
12359 ("java-slf4j-simple" ,java-slf4j-simple)
12360 ("java-biojava-core" ,java-biojava-core)
12361 ("java-biojava-phylo" ,java-biojava-phylo)
12362 ("java-forester" ,java-forester)))
12363 (native-inputs
12364 `(("java-junit" ,java-junit)
12365 ("java-hamcrest-core" ,java-hamcrest-core)))
12366 (home-page "http://biojava.org")
12367 (synopsis "Biojava API for genetic sequence alignment")
12368 (description "The alignment module of BioJava provides an API that
12369contains
12370
12371@itemize
12372@item implementations of dynamic programming algorithms for sequence
12373 alignment;
12374@item reading and writing of popular alignment file formats;
12375@item a single-, or multi- threaded multiple sequence alignment algorithm.
12376@end itemize\n")))
e44da58c
RW
12377
12378(define-public java-biojava-core-4.0
12379 (package (inherit java-biojava-core)
12380 (name "java-biojava-core")
12381 (version "4.0.0")
12382 (source (origin
12383 (method git-fetch)
12384 (uri (git-reference
12385 (url "https://github.com/biojava/biojava")
12386 (commit (string-append "biojava-" version))))
12387 (file-name (string-append name "-" version "-checkout"))
12388 (sha256
12389 (base32
12390 "13675f6y9aqi7bi2lk3s1z7a22ynccjiqwa8izh7p97xi9wsfmd8"))))))
5528f9e8
RW
12391
12392(define-public java-biojava-phylo-4.0
12393 (package (inherit java-biojava-core-4.0)
12394 (name "java-biojava-phylo")
12395 (build-system ant-build-system)
12396 (arguments
12397 `(#:jdk ,icedtea-8
12398 #:jar-name "biojava-phylo.jar"
12399 #:source-dir "biojava-phylo/src/main/java/"
12400 #:test-dir "biojava-phylo/src/test"
12401 #:phases
12402 (modify-phases %standard-phases
12403 (add-before 'build 'copy-resources
12404 (lambda _
12405 (copy-recursively "biojava-phylo/src/main/resources"
12406 "build/classes")
12407 #t))
12408 (add-before 'check 'copy-test-resources
12409 (lambda _
12410 (copy-recursively "biojava-phylo/src/test/resources"
12411 "build/test-classes")
12412 #t)))))
12413 (propagated-inputs
12414 `(("java-log4j-api" ,java-log4j-api)
12415 ("java-log4j-core" ,java-log4j-core)
12416 ("java-slf4j-api" ,java-slf4j-api)
12417 ("java-slf4j-simple" ,java-slf4j-simple)
12418 ("java-biojava-core" ,java-biojava-core-4.0)
12419 ("java-forester" ,java-forester-1.005)))
12420 (native-inputs
12421 `(("java-junit" ,java-junit)
12422 ("java-hamcrest-core" ,java-hamcrest-core)))
12423 (home-page "http://biojava.org")
12424 (synopsis "Biojava interface to the forester phylogenomics library")
12425 (description "The phylo module provides a biojava interface layer to the
12426forester phylogenomics library for constructing phylogenetic trees.")))
9ac7db18
RW
12427
12428(define-public java-biojava-alignment-4.0
12429 (package (inherit java-biojava-core-4.0)
12430 (name "java-biojava-alignment")
12431 (build-system ant-build-system)
12432 (arguments
12433 `(#:jdk ,icedtea-8
12434 #:jar-name "biojava-alignment.jar"
12435 #:source-dir "biojava-alignment/src/main/java/"
12436 #:test-dir "biojava-alignment/src/test"
12437 #:phases
12438 (modify-phases %standard-phases
12439 (add-before 'build 'copy-resources
12440 (lambda _
12441 (copy-recursively "biojava-alignment/src/main/resources"
12442 "build/classes")
12443 #t))
12444 (add-before 'check 'copy-test-resources
12445 (lambda _
12446 (copy-recursively "biojava-alignment/src/test/resources"
12447 "build/test-classes")
12448 #t)))))
12449 (propagated-inputs
12450 `(("java-log4j-api" ,java-log4j-api)
12451 ("java-log4j-core" ,java-log4j-core)
12452 ("java-slf4j-api" ,java-slf4j-api)
12453 ("java-slf4j-simple" ,java-slf4j-simple)
12454 ("java-biojava-core" ,java-biojava-core-4.0)
12455 ("java-biojava-phylo" ,java-biojava-phylo-4.0)
12456 ("java-forester" ,java-forester-1.005)))
12457 (native-inputs
12458 `(("java-junit" ,java-junit)
12459 ("java-hamcrest-core" ,java-hamcrest-core)))
12460 (home-page "http://biojava.org")
12461 (synopsis "Biojava API for genetic sequence alignment")
12462 (description "The alignment module of BioJava provides an API that
12463contains
12464
12465@itemize
12466@item implementations of dynamic programming algorithms for sequence
12467 alignment;
12468@item reading and writing of popular alignment file formats;
12469@item a single-, or multi- threaded multiple sequence alignment algorithm.
12470@end itemize\n")))
1adeef31
RW
12471
12472(define-public dropseq-tools
12473 (package
12474 (name "dropseq-tools")
12475 (version "1.13")
12476 (source
12477 (origin
12478 (method url-fetch)
12479 (uri "http://mccarrolllab.com/download/1276/")
12480 (file-name (string-append "dropseq-tools-" version ".zip"))
12481 (sha256
12482 (base32
12483 "0yrffckxqk5l8b5xb6z4laq157zd9mdypr2p4b4vq2bhjzi1sj0s"))
12484 ;; Delete bundled libraries
12485 (modules '((guix build utils)))
12486 (snippet
12487 '(begin
12488 (for-each delete-file (find-files "jar/lib" "\\.jar$"))
6cbee49d
MW
12489 (delete-file-recursively "3rdParty")
12490 #t))))
1adeef31
RW
12491 (build-system ant-build-system)
12492 (arguments
12493 `(#:tests? #f ; test data are not included
12494 #:test-target "test"
12495 #:build-target "all"
12496 #:source-dir "public/src/"
12497 #:jdk ,icedtea-8
12498 #:make-flags
12499 (list (string-append "-Dpicard.executable.dir="
12500 (assoc-ref %build-inputs "java-picard")
12501 "/share/java/"))
12502 #:modules ((ice-9 match)
12503 (srfi srfi-1)
12504 (guix build utils)
12505 (guix build java-utils)
12506 (guix build ant-build-system))
12507 #:phases
12508 (modify-phases %standard-phases
e53152c7 12509 ;; FIXME: fails with "java.io.FileNotFoundException:
6fe41974 12510 ;; /gnu/store/…-dropseq-tools-1.13/share/java/lib/biojava-alignment.jar"
e53152c7 12511 (delete 'generate-jar-indices)
1adeef31
RW
12512 ;; All dependencies must be linked to "lib", because that's where
12513 ;; they will be searched for when the Class-Path property of the
12514 ;; manifest is computed.
12515 (add-after 'unpack 'record-references
12516 (lambda* (#:key inputs #:allow-other-keys)
12517 (mkdir-p "jar/lib")
12518 (let ((dirs (filter-map (match-lambda
12519 ((name . dir)
12520 (if (and (string-prefix? "java-" name)
12521 (not (string=? name "java-testng")))
12522 dir #f)))
12523 inputs)))
12524 (for-each (lambda (jar)
12525 (symlink jar (string-append "jar/lib/" (basename jar))))
12526 (append-map (lambda (dir) (find-files dir "\\.jar$"))
12527 dirs)))
12528 #t))
12529 ;; There is no installation target
12530 (replace 'install
12531 (lambda* (#:key inputs outputs #:allow-other-keys)
12532 (let* ((out (assoc-ref outputs "out"))
12533 (bin (string-append out "/bin"))
12534 (share (string-append out "/share/java/"))
12535 (lib (string-append share "/lib/"))
12536 (scripts (list "BAMTagHistogram"
12537 "BAMTagofTagCounts"
12538 "BaseDistributionAtReadPosition"
12539 "CollapseBarcodesInPlace"
12540 "CollapseTagWithContext"
12541 "ConvertToRefFlat"
12542 "CreateIntervalsFiles"
12543 "DetectBeadSynthesisErrors"
12544 "DigitalExpression"
12545 "Drop-seq_alignment.sh"
12546 "FilterBAM"
12547 "FilterBAMByTag"
12548 "GatherGeneGCLength"
12549 "GatherMolecularBarcodeDistributionByGene"
12550 "GatherReadQualityMetrics"
12551 "PolyATrimmer"
12552 "ReduceGTF"
12553 "SelectCellsByNumTranscripts"
12554 "SingleCellRnaSeqMetricsCollector"
12555 "TagBamWithReadSequenceExtended"
12556 "TagReadWithGeneExon"
12557 "TagReadWithInterval"
12558 "TrimStartingSequence"
12559 "ValidateReference")))
12560 (for-each mkdir-p (list bin share lib))
12561 (install-file "dist/dropseq.jar" share)
12562 (for-each (lambda (script)
12563 (chmod script #o555)
12564 (install-file script bin))
12565 scripts)
12566 (substitute* (map (lambda (script)
12567 (string-append bin "/" script))
12568 scripts)
12569 (("^java") (which "java"))
12570 (("jar_deploy_dir=.*")
12571 (string-append "jar_deploy_dir=" share "\n"))))
12572 #t))
12573 ;; FIXME: We do this after stripping jars because we don't want it to
12574 ;; copy all these jars and strip them. We only want to install
12575 ;; links. Arguably, this is a problem with the ant-build-system.
12576 (add-after 'strip-jar-timestamps 'install-links
12577 (lambda* (#:key outputs #:allow-other-keys)
12578 (let* ((out (assoc-ref outputs "out"))
12579 (share (string-append out "/share/java/"))
12580 (lib (string-append share "/lib/")))
12581 (for-each (lambda (jar)
12582 (symlink (readlink jar)
12583 (string-append lib (basename jar))))
12584 (find-files "jar/lib" "\\.jar$")))
12585 #t)))))
12586 (inputs
12587 `(("jdk" ,icedtea-8)
12588 ("java-picard" ,java-picard-2.10.3)
12589 ("java-log4j-1.2-api" ,java-log4j-1.2-api)
12590 ("java-commons-math3" ,java-commons-math3)
12591 ("java-commons-jexl2" ,java-commons-jexl-2)
12592 ("java-commons-collections4" ,java-commons-collections4)
12593 ("java-commons-lang2" ,java-commons-lang)
12594 ("java-commons-io" ,java-commons-io)
12595 ("java-snappy-1.0.3-rc3" ,java-snappy-1)
12596 ("java-guava" ,java-guava)
12597 ("java-la4j" ,java-la4j)
12598 ("java-biojava-core" ,java-biojava-core-4.0)
12599 ("java-biojava-alignment" ,java-biojava-alignment-4.0)
12600 ("java-jdistlib" ,java-jdistlib)
12601 ("java-simple-xml" ,java-simple-xml)
12602 ("java-snakeyaml" ,java-snakeyaml)))
12603 (native-inputs
12604 `(("unzip" ,unzip)
12605 ("java-testng" ,java-testng)))
12606 (home-page "http://mccarrolllab.com/dropseq/")
12607 (synopsis "Tools for Drop-seq analyses")
12608 (description "Drop-seq is a technology to enable biologists to
12609analyze RNA expression genome-wide in thousands of individual cells at
12610once. This package provides tools to perform Drop-seq analyses.")
12611 (license license:expat)))
0bdd5b8a
RW
12612
12613(define-public pigx-rnaseq
12614 (package
12615 (name "pigx-rnaseq")
42c3e00c 12616 (version "0.0.5")
0bdd5b8a
RW
12617 (source (origin
12618 (method url-fetch)
12619 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_rnaseq/"
12620 "releases/download/v" version
12621 "/pigx_rnaseq-" version ".tar.gz"))
12622 (sha256
12623 (base32
42c3e00c 12624 "05gn658zpj9xki5dbs728z9zxq1mcm25hkwr5vzwqxsfi15l5f2l"))))
0bdd5b8a
RW
12625 (build-system gnu-build-system)
12626 (arguments
12627 `(#:parallel-tests? #f ; not supported
12628 #:phases
12629 (modify-phases %standard-phases
fe52a215
RW
12630 ;; "test.sh" runs STAR, which requires excessive amounts of memory.
12631 (add-after 'unpack 'disable-resource-intensive-test
12632 (lambda _
12633 (substitute* "Makefile.in"
12634 (("(^ tests/test_trim_galore/test.sh).*" _ m) m)
26fd7b24 12635 (("^ tests/test_multiqc/test.sh") "")
fe52a215 12636 (("^ test.sh") ""))
0bdd5b8a
RW
12637 #t)))))
12638 (inputs
616446ff 12639 `(("gzip" ,gzip)
42c3e00c 12640 ("snakemake" ,snakemake)
0bdd5b8a
RW
12641 ("fastqc" ,fastqc)
12642 ("multiqc" ,multiqc)
12643 ("star" ,star)
12644 ("trim-galore" ,trim-galore)
12645 ("htseq" ,htseq)
12646 ("samtools" ,samtools)
12647 ("bedtools" ,bedtools)
12648 ("r-minimal" ,r-minimal)
12649 ("r-rmarkdown" ,r-rmarkdown)
12650 ("r-ggplot2" ,r-ggplot2)
12651 ("r-ggrepel" ,r-ggrepel)
12652 ("r-gprofiler" ,r-gprofiler)
12653 ("r-deseq2" ,r-deseq2)
12654 ("r-dt" ,r-dt)
12655 ("r-knitr" ,r-knitr)
12656 ("r-pheatmap" ,r-pheatmap)
12657 ("r-corrplot" ,r-corrplot)
12658 ("r-reshape2" ,r-reshape2)
12659 ("r-plotly" ,r-plotly)
12660 ("r-scales" ,r-scales)
12661 ("r-summarizedexperiment" ,r-summarizedexperiment)
12662 ("r-crosstalk" ,r-crosstalk)
12663 ("r-tximport" ,r-tximport)
12664 ("r-rtracklayer" ,r-rtracklayer)
12665 ("r-rjson" ,r-rjson)
12666 ("salmon" ,salmon)
ca248f1d
RW
12667 ("ghc-pandoc" ,ghc-pandoc)
12668 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
0bdd5b8a
RW
12669 ("python-wrapper" ,python-wrapper)
12670 ("python-pyyaml" ,python-pyyaml)))
12671 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12672 (synopsis "Analysis pipeline for RNA sequencing experiments")
12673 (description "PiGX RNAseq is an analysis pipeline for preprocessing and
12674reporting for RNA sequencing experiments. It is easy to use and produces high
12675quality reports. The inputs are reads files from the sequencing experiment,
12676and a configuration file which describes the experiment. In addition to
12677quality control of the experiment, the pipeline produces a differential
12678expression report comparing samples in an easily configurable manner.")
12679 (license license:gpl3+)))
531afc8a
RW
12680
12681(define-public pigx-chipseq
12682 (package
12683 (name "pigx-chipseq")
82cc1174 12684 (version "0.0.40")
531afc8a
RW
12685 (source (origin
12686 (method url-fetch)
12687 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_chipseq/"
12688 "releases/download/v" version
12689 "/pigx_chipseq-" version ".tar.gz"))
12690 (sha256
12691 (base32
82cc1174 12692 "0y9x62cfwzhsp82imnawyamxp58bcb00yjxdy44spylqnjdlsaj8"))))
531afc8a 12693 (build-system gnu-build-system)
c57e50b2
RW
12694 ;; parts of the tests rely on access to the network
12695 (arguments '(#:tests? #f))
531afc8a 12696 (inputs
d7a11f1a
RW
12697 `(("grep" ,grep)
12698 ("coreutils" ,coreutils)
12699 ("r-minimal" ,r-minimal)
531afc8a 12700 ("r-argparser" ,r-argparser)
363ee7a3
RW
12701 ("r-biocparallel" ,r-biocparallel)
12702 ("r-biostrings" ,r-biostrings)
531afc8a
RW
12703 ("r-chipseq" ,r-chipseq)
12704 ("r-data-table" ,r-data-table)
363ee7a3 12705 ("r-dplyr" ,r-dplyr)
531afc8a 12706 ("r-genomation" ,r-genomation)
363ee7a3 12707 ("r-genomicalignments" ,r-genomicalignments)
531afc8a 12708 ("r-genomicranges" ,r-genomicranges)
363ee7a3 12709 ("r-rsamtools" ,r-rsamtools)
531afc8a 12710 ("r-rtracklayer" ,r-rtracklayer)
363ee7a3 12711 ("r-s4vectors" ,r-s4vectors)
531afc8a 12712 ("r-stringr" ,r-stringr)
363ee7a3
RW
12713 ("r-tibble" ,r-tibble)
12714 ("r-tidyr" ,r-tidyr)
531afc8a
RW
12715 ("r-jsonlite" ,r-jsonlite)
12716 ("r-heatmaply" ,r-heatmaply)
363ee7a3 12717 ("r-htmlwidgets" ,r-htmlwidgets)
531afc8a
RW
12718 ("r-ggplot2" ,r-ggplot2)
12719 ("r-plotly" ,r-plotly)
363ee7a3 12720 ("r-rmarkdown" ,r-rmarkdown)
531afc8a
RW
12721 ("python-wrapper" ,python-wrapper)
12722 ("python-pyyaml" ,python-pyyaml)
363ee7a3 12723 ("python-magic" ,python-magic)
32b7ccf9 12724 ("python-xlrd" ,python-xlrd)
32b7ccf9 12725 ("trim-galore" ,trim-galore)
531afc8a
RW
12726 ("macs" ,macs)
12727 ("multiqc" ,multiqc)
12728 ("perl" ,perl)
7cd40c8c
RW
12729 ("ghc-pandoc" ,ghc-pandoc)
12730 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
531afc8a
RW
12731 ("fastqc" ,fastqc)
12732 ("bowtie" ,bowtie)
12733 ("idr" ,idr)
c068d007 12734 ("snakemake" ,snakemake)
531afc8a
RW
12735 ("samtools" ,samtools)
12736 ("bedtools" ,bedtools)
12737 ("kentutils" ,kentutils)))
12738 (native-inputs
12739 `(("python-pytest" ,python-pytest)))
12740 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12741 (synopsis "Analysis pipeline for ChIP sequencing experiments")
12742 (description "PiGX ChIPseq is an analysis pipeline for preprocessing, peak
12743calling and reporting for ChIP sequencing experiments. It is easy to use and
12744produces high quality reports. The inputs are reads files from the sequencing
12745experiment, and a configuration file which describes the experiment. In
12746addition to quality control of the experiment, the pipeline enables to set up
12747multiple peak calling analysis and allows the generation of a UCSC track hub
12748in an easily configurable manner.")
12749 (license license:gpl3+)))
fb94174f
RW
12750
12751(define-public pigx-bsseq
12752 (package
12753 (name "pigx-bsseq")
13f5eb34 12754 (version "0.0.10")
fb94174f
RW
12755 (source (origin
12756 (method url-fetch)
12757 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_bsseq/"
12758 "releases/download/v" version
12759 "/pigx_bsseq-" version ".tar.gz"))
12760 (sha256
12761 (base32
13f5eb34 12762 "0l97wvkq4diq8lcarraj33bby1zzf0w804jwi8mlc5qddp8idwhy"))))
fb94174f
RW
12763 (build-system gnu-build-system)
12764 (arguments
12765 `(#:phases
12766 (modify-phases %standard-phases
12767 (add-before 'check 'set-timezone
12768 ;; The readr package is picky about timezones.
12769 (lambda* (#:key inputs #:allow-other-keys)
12770 (setenv "TZ" "UTC+1")
12771 (setenv "TZDIR"
12772 (string-append (assoc-ref inputs "tzdata")
12773 "/share/zoneinfo"))
fb94174f
RW
12774 #t)))))
12775 (native-inputs
12776 `(("tzdata" ,tzdata)))
12777 (inputs
9dbdc830
RW
12778 `(("coreutils" ,coreutils)
12779 ("sed" ,sed)
12780 ("grep" ,grep)
12781 ("r-minimal" ,r-minimal)
fb94174f
RW
12782 ("r-annotationhub" ,r-annotationhub)
12783 ("r-dt" ,r-dt)
12784 ("r-genomation" ,r-genomation)
12785 ("r-methylkit" ,r-methylkit)
12786 ("r-rtracklayer" ,r-rtracklayer)
12787 ("r-rmarkdown" ,r-rmarkdown)
12788 ("r-bookdown" ,r-bookdown)
12789 ("r-ggplot2" ,r-ggplot2)
12790 ("r-ggbio" ,r-ggbio)
c2b4f81e
RW
12791 ("ghc-pandoc" ,ghc-pandoc)
12792 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
fb94174f
RW
12793 ("python-wrapper" ,python-wrapper)
12794 ("python-pyyaml" ,python-pyyaml)
92d9a1e2 12795 ("snakemake" ,snakemake)
fb94174f
RW
12796 ("bismark" ,bismark)
12797 ("fastqc" ,fastqc)
12798 ("bowtie" ,bowtie)
12799 ("trim-galore" ,trim-galore)
12800 ("cutadapt" ,cutadapt)
12801 ("samtools" ,samtools)))
12802 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12803 (synopsis "Bisulfite sequencing pipeline from fastq to methylation reports")
12804 (description "PiGx BSseq is a data processing pipeline for raw fastq read
12805data of bisulfite experiments; it produces reports on aggregate methylation
12806and coverage and can be used to produce information on differential
12807methylation and segmentation.")
12808 (license license:gpl3+)))
32cbbac1 12809
46264c73
RW
12810(define-public pigx-scrnaseq
12811 (package
12812 (name "pigx-scrnaseq")
78933bff 12813 (version "0.0.7")
46264c73
RW
12814 (source (origin
12815 (method url-fetch)
12816 (uri (string-append "https://github.com/BIMSBbioinfo/pigx_scrnaseq/"
12817 "releases/download/v" version
12818 "/pigx_scrnaseq-" version ".tar.gz"))
12819 (sha256
12820 (base32
78933bff 12821 "131zarirv16w8653m0d66jgjnwqfsxqc0hix0rypssz4d83bl51j"))))
46264c73
RW
12822 (build-system gnu-build-system)
12823 (arguments
12824 `(#:configure-flags
12825 (list (string-append "PICARDJAR=" (assoc-ref %build-inputs "java-picard")
12826 "/share/java/picard.jar")
12827 (string-append "DROPSEQJAR=" (assoc-ref %build-inputs "dropseq-tools")
08d1a8b1 12828 "/share/java/dropseq.jar"))))
46264c73 12829 (inputs
51237011
RW
12830 `(("coreutils" ,coreutils)
12831 ("perl" ,perl)
12832 ("dropseq-tools" ,dropseq-tools)
46264c73 12833 ("fastqc" ,fastqc)
9cc66d75 12834 ("java-picard" ,java-picard-2.10.3) ; same as for dropseq
46264c73
RW
12835 ("java" ,icedtea-8)
12836 ("python-wrapper" ,python-wrapper)
12837 ("python-pyyaml" ,python-pyyaml)
12838 ("python-pandas" ,python-pandas)
844cc1c8 12839 ("python-magic" ,python-magic)
46264c73 12840 ("python-numpy" ,python-numpy)
cbe40b8b 12841 ("python-loompy" ,python-loompy-for-pigx-scrnaseq)
00a43cb8
RW
12842 ("ghc-pandoc" ,ghc-pandoc)
12843 ("ghc-pandoc-citeproc" ,ghc-pandoc-citeproc)
78933bff 12844 ("samtools" ,samtools)
d57ec906 12845 ("snakemake" ,snakemake)
46264c73
RW
12846 ("star" ,star)
12847 ("r-minimal" ,r-minimal)
12848 ("r-argparser" ,r-argparser)
12849 ("r-cowplot" ,r-cowplot)
12850 ("r-data-table" ,r-data-table)
12851 ("r-delayedarray" ,r-delayedarray)
12852 ("r-delayedmatrixstats" ,r-delayedmatrixstats)
12853 ("r-dplyr" ,r-dplyr)
12854 ("r-dropbead" ,r-dropbead)
12855 ("r-dt" ,r-dt)
12856 ("r-genomicalignments" ,r-genomicalignments)
12857 ("r-genomicfiles" ,r-genomicfiles)
12858 ("r-genomicranges" ,r-genomicranges)
12859 ("r-ggplot2" ,r-ggplot2)
12860 ("r-hdf5array" ,r-hdf5array)
12861 ("r-pheatmap" ,r-pheatmap)
12862 ("r-rmarkdown" ,r-rmarkdown)
12863 ("r-rsamtools" ,r-rsamtools)
12864 ("r-rtracklayer" ,r-rtracklayer)
12865 ("r-rtsne" ,r-rtsne)
12866 ("r-scater" ,r-scater)
12867 ("r-scran" ,r-scran)
12868 ("r-singlecellexperiment" ,r-singlecellexperiment)
12869 ("r-stringr" ,r-stringr)
12870 ("r-yaml" ,r-yaml)))
12871 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12872 (synopsis "Analysis pipeline for single-cell RNA sequencing experiments")
12873 (description "PiGX scRNAseq is an analysis pipeline for preprocessing and
12874quality control for single cell RNA sequencing experiments. The inputs are
12875read files from the sequencing experiment, and a configuration file which
12876describes the experiment. It produces processed files for downstream analysis
12877and interactive quality reports. The pipeline is designed to work with UMI
12878based methods.")
12879 (license license:gpl3+)))
12880
c1c9cc66
RW
12881(define-public pigx
12882 (package
12883 (name "pigx")
5149aeb7 12884 (version "0.0.3")
c1c9cc66
RW
12885 (source (origin
12886 (method url-fetch)
12887 (uri (string-append "https://github.com/BIMSBbioinfo/pigx/"
12888 "releases/download/v" version
12889 "/pigx-" version ".tar.gz"))
12890 (sha256
12891 (base32
5149aeb7 12892 "1i5njdy1clj5ncw45d16p7mwmqvb1ilikl9n797pxklc3f4s7mq7"))))
c1c9cc66
RW
12893 (build-system gnu-build-system)
12894 (inputs
12895 `(("python" ,python)
12896 ("pigx-bsseq" ,pigx-bsseq)
12897 ("pigx-chipseq" ,pigx-chipseq)
12898 ("pigx-rnaseq" ,pigx-rnaseq)
12899 ("pigx-scrnaseq" ,pigx-scrnaseq)))
12900 (home-page "http://bioinformatics.mdc-berlin.de/pigx/")
12901 (synopsis "Analysis pipelines for genomics")
12902 (description "PiGx is a collection of genomics pipelines. It includes the
12903following pipelines:
12904
12905@itemize
12906@item PiGx BSseq for raw fastq read data of bisulfite experiments
12907@item PiGx RNAseq for RNAseq samples
12908@item PiGx scRNAseq for single cell dropseq analysis
12909@item PiGx ChIPseq for reads from ChIPseq experiments
12910@end itemize
12911
12912All pipelines are easily configured with a simple sample sheet and a
12913descriptive settings file. The result is a set of comprehensive, interactive
12914HTML reports with interesting findings about your samples.")
12915 (license license:gpl3+)))
12916
4fc9b5b1
RW
12917(define-public genrich
12918 (package
12919 (name "genrich")
12920 (version "0.5")
12921 (source (origin
12922 (method git-fetch)
12923 (uri (git-reference
12924 (url "https://github.com/jsh58/Genrich.git")
12925 (commit (string-append "v" version))))
12926 (sha256
12927 (base32
12928 "0x0q6z0208n3cxzqjla4rgjqpyqgwpmz27852lcvzkzaigymq4zp"))))
12929 (build-system gnu-build-system)
12930 (arguments
12931 `(#:tests? #f ; there are none
12932 #:phases
12933 (modify-phases %standard-phases
12934 (delete 'configure)
12935 (replace 'install
12936 (lambda* (#:key outputs #:allow-other-keys)
12937 (install-file "Genrich" (string-append (assoc-ref outputs "out") "/bin"))
12938 #t)))))
12939 (inputs
12940 `(("zlib" ,zlib)))
12941 (home-page "https://github.com/jsh58/Genrich")
12942 (synopsis "Detecting sites of genomic enrichment")
12943 (description "Genrich is a peak-caller for genomic enrichment
12944assays (e.g. ChIP-seq, ATAC-seq). It analyzes alignment files generated
12945following the assay and produces a file detailing peaks of significant
12946enrichment.")
12947 (license license:expat)))
12948
e942813a
RW
12949(define-public mantis
12950 (let ((commit "4ffd171632c2cb0056a86d709dfd2bf21bc69b84")
12951 (revision "1"))
12952 (package
12953 (name "mantis")
12954 (version (git-version "0" revision commit))
12955 (source (origin
12956 (method git-fetch)
12957 (uri (git-reference
12958 (url "https://github.com/splatlab/mantis.git")
12959 (commit commit)))
12960 (file-name (git-file-name name version))
12961 (sha256
12962 (base32
12963 "0iqbr0dhmlc8mzpirmm2s4pkzkwdgrcx50yx6cv3wlr2qi064p55"))))
12964 (build-system cmake-build-system)
12965 (arguments '(#:tests? #f)) ; there are none
12966 (inputs
12967 `(("sdsl-lite" ,sdsl-lite)
12968 ("openssl" ,openssl)
12969 ("zlib" ,zlib)))
12970 (home-page "https://github.com/splatlab/mantis")
12971 (synopsis "Large-scale sequence-search index data structure")
12972 (description "Mantis is a space-efficient data structure that can be
12973used to index thousands of raw-read genomics experiments and facilitate
12974large-scale sequence searches on those experiments. Mantis uses counting
12975quotient filters instead of Bloom filters, enabling rapid index builds and
12976queries, small indexes, and exact results, i.e., no false positives or
12977negatives. Furthermore, Mantis is also a colored de Bruijn graph
12978representation, so it supports fast graph traversal and other topological
12979analyses in addition to large-scale sequence-level searches.")
6fd2ed23
EF
12980 ;; uses __uint128_t and inline assembly
12981 (supported-systems '("x86_64-linux"))
e942813a
RW
12982 (license license:bsd-3))))
12983
32cbbac1
LF
12984(define-public r-diversitree
12985 (package
12986 (name "r-diversitree")
c2b45ac5 12987 (version "0.9-11")
32cbbac1
LF
12988 (source
12989 (origin
12990 (method url-fetch)
12991 (uri (cran-uri "diversitree" version))
12992 (sha256
12993 (base32
c2b45ac5 12994 "1jqfjmmaigq581l4zxysmkhld0xv6izlbr1hihf9zplkix36majc"))))
32cbbac1
LF
12995 (build-system r-build-system)
12996 (native-inputs
12997 `(("gfortran" ,gfortran)))
12998 (inputs `(("fftw" ,fftw) ("gsl" ,gsl)))
12999 (propagated-inputs
13000 `(("r-ape" ,r-ape)
13001 ("r-desolve" ,r-desolve)
13002 ("r-rcpp" ,r-rcpp)
28d0eb25 13003 ("r-subplex" ,r-subplex)))
32cbbac1
LF
13004 (home-page "https://www.zoology.ubc.ca/prog/diversitree")
13005 (synopsis "Comparative 'phylogenetic' analyses of diversification")
13006 (description "This package contains a number of comparative \"phylogenetic\"
13007methods, mostly focusing on analysing diversification and character evolution.
13008Contains implementations of \"BiSSE\" (Binary State Speciation and Extinction)
13009and its unresolved tree extensions, \"MuSSE\" (Multiple State Speciation and
13010Extinction), \"QuaSSE\", \"GeoSSE\", and \"BiSSE-ness\" Other included methods
13011include Markov models of discrete and continuous trait evolution and constant
13012rate speciation and extinction.")
13013 (license license:gpl2+)))
90930159
RW
13014
13015(define-public sjcount
13016 ;; There is no tag for version 3.2, nor is there a release archive.
13017 (let ((commit "292d3917cadb3f6834c81e509c30e61cd7ead6e5")
13018 (revision "1"))
13019 (package
13020 (name "sjcount")
13021 (version (git-version "3.2" revision commit))
13022 (source (origin
13023 (method git-fetch)
13024 (uri (git-reference
13025 (url "https://github.com/pervouchine/sjcount-full.git")
13026 (commit commit)))
13027 (file-name (string-append name "-" version "-checkout"))
13028 (sha256
13029 (base32
13030 "0gdgj35j249f04rqgq8ymcc1xg1vi9kzbajnjqpaq2wpbh8bl234"))))
13031 (build-system gnu-build-system)
13032 (arguments
13033 `(#:tests? #f ; requires a 1.4G test file
13034 #:make-flags
13035 (list (string-append "SAMTOOLS_DIR="
13036 (assoc-ref %build-inputs "samtools")
13037 "/lib/"))
13038 #:phases
13039 (modify-phases %standard-phases
13040 (replace 'configure
13041 (lambda* (#:key inputs #:allow-other-keys)
13042 (substitute* "makefile"
13043 (("-I \\$\\{SAMTOOLS_DIR\\}")
13044 (string-append "-I" (assoc-ref inputs "samtools")
13045 "/include/samtools"))
13046 (("-lz ") "-lz -lpthread "))
13047 #t))
13048 (replace 'install
13049 (lambda* (#:key outputs #:allow-other-keys)
13050 (for-each (lambda (tool)
13051 (install-file tool
13052 (string-append (assoc-ref outputs "out")
13053 "/bin")))
13054 '("j_count" "b_count" "sjcount"))
13055 #t)))))
13056 (inputs
13057 `(("samtools" ,samtools-0.1)
13058 ("zlib" ,zlib)))
13059 (home-page "https://github.com/pervouchine/sjcount-full/")
13060 (synopsis "Annotation-agnostic splice junction counting pipeline")
13061 (description "Sjcount is a utility for fast quantification of splice
13062junctions in RNA-seq data. It is annotation-agnostic and offset-aware. This
13063version does count multisplits.")
13064 (license license:gpl3+))))
53131eab
RW
13065
13066(define-public minimap2
13067 (package
13068 (name "minimap2")
13069 (version "2.10")
13070 (source
13071 (origin
13072 (method url-fetch)
13073 (uri (string-append "https://github.com/lh3/minimap2/"
13074 "releases/download/v" version "/"
13075 "minimap2-" version ".tar.bz2"))
13076 (sha256
13077 (base32
13078 "080w9066irkbhbyr4nmf19pzkdd2s4v31hpzlajgq2y0drr6zcsj"))))
13079 (build-system gnu-build-system)
13080 (arguments
13081 `(#:tests? #f ; there are none
13082 #:make-flags
13083 (list "CC=gcc"
13084 (let ((system ,(or (%current-target-system)
13085 (%current-system))))
13086 (cond
13087 ((string-prefix? "x86_64" system)
13088 "all")
13089 ((or (string-prefix? "armhf" system)
13090 (string-prefix? "aarch64" system))
13091 "arm_neon=1")
13092 (_ "sse2only=1"))))
13093 #:phases
13094 (modify-phases %standard-phases
13095 (delete 'configure)
13096 (replace 'install
13097 (lambda* (#:key outputs #:allow-other-keys)
13098 (let* ((out (assoc-ref outputs "out"))
13099 (bin (string-append out "/bin"))
13100 (man (string-append out "/share/man/man1")))
13101 (install-file "minimap2" bin)
13102 (mkdir-p man)
13103 (install-file "minimap2.1" man))
13104 #t)))))
13105 (inputs
13106 `(("zlib" ,zlib)))
13107 (home-page "https://lh3.github.io/minimap2/")
13108 (synopsis "Pairwise aligner for genomic and spliced nucleotide sequences")
13109 (description "Minimap2 is a versatile sequence alignment program that
13110aligns DNA or mRNA sequences against a large reference database. Typical use
13111cases include:
13112
13113@enumerate
13114@item mapping PacBio or Oxford Nanopore genomic reads to the human genome;
13115@item finding overlaps between long reads with error rate up to ~15%;
13116@item splice-aware alignment of PacBio Iso-Seq or Nanopore cDNA or Direct RNA
13117 reads against a reference genome;
13118@item aligning Illumina single- or paired-end reads;
13119@item assembly-to-assembly alignment;
13120@item full-genome alignment between two closely related species with
13121 divergence below ~15%.
13122@end enumerate\n")
13123 (license license:expat)))
fab43c6b 13124
242519ce
RW
13125(define-public r-circus
13126 (package
13127 (name "r-circus")
13128 (version "0.1.5")
13129 (source
13130 (origin
13131 (method git-fetch)
13132 (uri (git-reference
13133 (url "https://github.com/BIMSBbioinfo/ciRcus.git")
13134 (commit (string-append "v" version))))
13135 (file-name (git-file-name name version))
13136 (sha256
13137 (base32
13138 "0jhjn3ilb057hbf6yzrihj13ifxxs32y7nkby8l3lkm28dg4p97h"))))
13139 (build-system r-build-system)
13140 (propagated-inputs
13141 `(("r-annotationdbi" ,r-annotationdbi)
13142 ("r-annotationhub" ,r-annotationhub)
13143 ("r-biomart" ,r-biomart)
13144 ("r-data-table" ,r-data-table)
13145 ("r-dbi" ,r-dbi)
13146 ("r-genomicfeatures" ,r-genomicfeatures)
13147 ("r-genomicranges" ,r-genomicranges)
13148 ("r-ggplot2" ,r-ggplot2)
13149 ("r-hash" ,r-hash)
13150 ("r-iranges" ,r-iranges)
13151 ("r-rcolorbrewer" ,r-rcolorbrewer)
13152 ("r-rmysql" ,r-rmysql)
13153 ("r-s4vectors" ,r-s4vectors)
13154 ("r-stringr" ,r-stringr)
13155 ("r-summarizedexperiment" ,r-summarizedexperiment)))
13156 (native-inputs
13157 `(("r-knitr" ,r-knitr)))
13158 (home-page "https://github.com/BIMSBbioinfo/ciRcus")
13159 (synopsis "Annotation, analysis and visualization of circRNA data")
13160 (description "Circus is an R package for annotation, analysis and
13161visualization of circRNA data. Users can annotate their circRNA candidates
13162with host genes, gene featrues they are spliced from, and discriminate between
13163known and yet unknown splice junctions. Circular-to-linear ratios of circRNAs
13164can be calculated, and a number of descriptive plots easily generated.")
13165 (license license:artistic2.0)))
13166
fab43c6b
RW
13167(define-public r-loomr
13168 (let ((commit "df0144bd2bbceca6fadef9edc1bbc5ca672d4739")
13169 (revision "1"))
13170 (package
13171 (name "r-loomr")
13172 (version (git-version "0.2.0" revision commit))
13173 (source
13174 (origin
13175 (method git-fetch)
13176 (uri (git-reference
13177 (url "https://github.com/mojaveazure/loomR.git")
13178 (commit commit)))
13179 (file-name (git-file-name name version))
13180 (sha256
13181 (base32
13182 "1b1g4dlmfdyhn56bz1mkh9ymirri43wiz7rjhs7py3y7bdw1s3yr"))))
13183 (build-system r-build-system)
13184 (propagated-inputs
13185 `(("r-r6" ,r-r6)
13186 ("r-hdf5r" ,r-hdf5r)
13187 ("r-iterators" ,r-iterators)
13188 ("r-itertools" ,r-itertools)
13189 ("r-matrix" ,r-matrix)))
13190 (home-page "https://github.com/mojaveazure/loomR")
13191 (synopsis "R interface for loom files")
13192 (description "This package provides an R interface to access, create,
13193and modify loom files. loomR aims to be completely compatible with loompy.")
13194 (license license:gpl3))))
689aacc1
RW
13195
13196(define-public gffread
13197 ;; We cannot use the tagged release because it is not in sync with gclib.
13198 ;; See https://github.com/gpertea/gffread/issues/26
13199 (let ((commit "ba7535fcb3cea55a6e5a491d916e93b454e87fd0")
13200 (revision "1"))
13201 (package
13202 (name "gffread")
13203 (version (git-version "0.9.12" revision commit))
13204 (source
13205 (origin
13206 (method git-fetch)
13207 (uri (git-reference
13208 (url "https://github.com/gpertea/gffread.git")
13209 (commit commit)))
13210 (file-name (git-file-name name version))
13211 (sha256
13212 (base32
13213 "1dl2nbcg96lxpd0drg48ssa8343nf7pw9s9mkrc4mjjmfwsin3ki"))))
13214 (build-system gnu-build-system)
13215 (arguments
13216 `(#:tests? #f ; no check target
13217 #:make-flags
13218 (list "GCLDIR=gclib")
13219 #:phases
13220 (modify-phases %standard-phases
13221 (delete 'configure)
13222 (add-after 'unpack 'copy-gclib-source
13223 (lambda* (#:key inputs #:allow-other-keys)
13224 (mkdir-p "gclib")
13225 (copy-recursively (assoc-ref inputs "gclib-source") "gclib")
13226 #t))
13227 ;; There is no install target
13228 (replace 'install
13229 (lambda* (#:key outputs #:allow-other-keys)
13230 (let* ((out (assoc-ref outputs "out"))
13231 (bin (string-append out "/bin")))
13232 (install-file "gffread" bin))
13233 #t)))))
13234 (native-inputs
13235 `(("gclib-source"
13236 ,(let ((version "0.10.3")
13237 (commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13238 (revision "1"))
13239 (origin
13240 (method git-fetch)
13241 (uri (git-reference
13242 (url "https://github.com/gpertea/gclib.git")
13243 (commit commit)))
13244 (file-name (git-file-name "gclib" version))
13245 (sha256
13246 (base32
13247 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13248 (home-page "https://github.com/gpertea/gffread/")
13249 (synopsis "Parse and convert GFF/GTF files")
13250 (description
13251 "This package provides a GFF/GTF file parsing utility providing format
13252conversions, region filtering, FASTA sequence extraction and more.")
13253 ;; gffread is under Expat, but gclib is under Artistic 2.0
13254 (license (list license:expat
13255 license:artistic2.0)))))
079cdd9c
RW
13256
13257(define-public find-circ
13258 ;; The last release was in 2015. The license was clarified in 2017, so we
13259 ;; take the latest commit.
13260 (let ((commit "8655dca54970fcf7e92e22fbf57e1188724dda7d")
13261 (revision "1"))
13262 (package
13263 (name "find-circ")
13264 (version (git-version "1.2" revision commit))
13265 (source
13266 (origin
13267 (method git-fetch)
13268 (uri (git-reference
13269 (url "https://github.com/marvin-jens/find_circ.git")
13270 (commit commit)))
13271 (file-name (git-file-name name version))
13272 (sha256
13273 (base32
13274 "0p77pbqbclqr4srms34y1b9b4njybfpjiknc11ki84f3p8skb3cg"))))
13275 (build-system gnu-build-system)
13276 (arguments
13277 `(#:tests? #f ; there are none
13278 #:phases
13279 ;; There is no actual build system.
13280 (modify-phases %standard-phases
13281 (delete 'configure)
13282 (delete 'build)
13283 (replace 'install
13284 (lambda* (#:key outputs #:allow-other-keys)
13285 (let* ((out (assoc-ref outputs "out"))
13286 (bin (string-append out "/bin"))
13287 (path (getenv "PYTHONPATH")))
13288 (for-each (lambda (script)
13289 (install-file script bin)
13290 (wrap-program (string-append bin "/" script)
13291 `("PYTHONPATH" ":" prefix (,path))))
13292 '("cmp_bed.py"
13293 "find_circ.py"
13294 "maxlength.py"
13295 "merge_bed.py"
13296 "unmapped2anchors.py")))
13297 #t)))))
13298 (inputs
13299 `(("python2" ,python-2)
13300 ("python2-pysam" ,python2-pysam)
13301 ("python2-numpy" ,python2-numpy)))
13302 (home-page "https://github.com/marvin-jens/find_circ")
13303 (synopsis "circRNA detection from RNA-seq reads")
13304 (description "This package provides tools to detect head-to-tail
13305spliced (back-spliced) sequencing reads, indicative of circular RNA (circRNA)
13306in RNA-seq data.")
13307 (license license:gpl3))))
c7fe888b
RW
13308
13309(define-public python-scanpy
13310 (package
13311 (name "python-scanpy")
28d32817
RW
13312 (version "1.4")
13313 ;; Fetch from git because the pypi tarball does not include tests.
c7fe888b
RW
13314 (source
13315 (origin
28d32817
RW
13316 (method git-fetch)
13317 (uri (git-reference
13318 (url "https://github.com/theislab/scanpy.git")
13319 (commit version)))
13320 (file-name (git-file-name name version))
c7fe888b
RW
13321 (sha256
13322 (base32
28d32817 13323 "0zn6x6c0cnm1a20i6isigwb51g3pr9zpjk8r1minjqnxi5yc9pm4"))))
c7fe888b 13324 (build-system python-build-system)
28d32817
RW
13325 (arguments
13326 `(#:phases
13327 (modify-phases %standard-phases
13328 (replace 'check
13329 (lambda* (#:key inputs #:allow-other-keys)
13330 ;; These tests require Internet access.
13331 (delete-file-recursively "scanpy/tests/notebooks")
13332 (delete-file "scanpy/tests/test_clustering.py")
13333
28d32817
RW
13334 ;; TODO: I can't get the plotting tests to work, even with Xvfb.
13335 (delete-file "scanpy/tests/test_plotting.py")
13336 (delete-file "scanpy/tests/test_preprocessing.py")
13337 (delete-file "scanpy/tests/test_read_10x.py")
13338
13339 (setenv "PYTHONPATH"
13340 (string-append (getcwd) ":"
13341 (getenv "PYTHONPATH")))
13342 (invoke "pytest")
13343 #t)))))
c7fe888b
RW
13344 (propagated-inputs
13345 `(("python-anndata" ,python-anndata)
b4a33870 13346 ("python-h5py" ,python-h5py)
c7fe888b 13347 ("python-igraph" ,python-igraph)
c7fe888b 13348 ("python-joblib" ,python-joblib)
b4a33870
RW
13349 ("python-louvain" ,python-louvain)
13350 ("python-matplotlib" ,python-matplotlib)
c7fe888b
RW
13351 ("python-natsort" ,python-natsort)
13352 ("python-networkx" ,python-networkx)
b4a33870 13353 ("python-numba" ,python-numba)
c7fe888b 13354 ("python-pandas" ,python-pandas)
b4a33870 13355 ("python-scikit-learn" ,python-scikit-learn)
c7fe888b
RW
13356 ("python-scipy" ,python-scipy)
13357 ("python-seaborn" ,python-seaborn)
b4a33870 13358 ("python-statsmodels" ,python-statsmodels)
c7fe888b 13359 ("python-tables" ,python-tables)))
28d32817
RW
13360 (native-inputs
13361 `(("python-pytest" ,python-pytest)))
13362 (home-page "https://github.com/theislab/scanpy")
c7fe888b
RW
13363 (synopsis "Single-Cell Analysis in Python.")
13364 (description "Scanpy is a scalable toolkit for analyzing single-cell gene
13365expression data. It includes preprocessing, visualization, clustering,
13366pseudotime and trajectory inference and differential expression testing. The
13367Python-based implementation efficiently deals with datasets of more than one
13368million cells.")
13369 (license license:bsd-3)))
4f9355c3 13370
e9d4409b
RW
13371(define-public python-bbknn
13372 (package
13373 (name "python-bbknn")
13374 (version "1.3.1")
13375 (source
13376 (origin
13377 (method url-fetch)
13378 (uri (pypi-uri "bbknn" version))
13379 (sha256
13380 (base32
13381 "1qgdganvj3lyxj84v7alm23b9vqhwpn8z0115qndpnpy90qxynwz"))))
13382 (build-system python-build-system)
13383 (propagated-inputs
13384 `(("python-annoy" ,python-annoy)
13385 ("python-cython" ,python-cython)
13386 ("python-faiss" ,python-faiss)
13387 ("python-numpy" ,python-numpy)
13388 ("python-scanpy" ,python-scanpy)))
13389 (home-page "https://github.com/Teichlab/bbknn")
13390 (synopsis "Batch balanced KNN")
13391 (description "BBKNN is a batch effect removal tool that can be directly
13392used in the Scanpy workflow. It serves as an alternative to
13393@code{scanpy.api.pp.neighbors()}, with both functions creating a neighbour
13394graph for subsequent use in clustering, pseudotime and UMAP visualisation. If
13395technical artifacts are present in the data, they will make it challenging to
13396link corresponding cell types across different batches. BBKNN actively
13397combats this effect by splitting your data into batches and finding a smaller
13398number of neighbours for each cell within each of the groups. This helps
13399create connections between analogous cells in different batches without
13400altering the counts or PCA space.")
13401 (license license:expat)))
13402
4f9355c3 13403(define-public gffcompare
13404 (let ((commit "be56ef4349ea3966c12c6397f85e49e047361c41")
13405 (revision "1"))
13406 (package
13407 (name "gffcompare")
13408 (version (git-version "0.10.15" revision commit))
13409 (source
13410 (origin
13411 (method git-fetch)
13412 (uri (git-reference
13413 (url "https://github.com/gpertea/gffcompare/")
13414 (commit commit)))
13415 (file-name (git-file-name name version))
13416 (sha256
13417 (base32 "0cp5qpxdhw4mxpya5dld8wi3jk00zyklm6rcri426wydinrnfmkg"))))
13418 (build-system gnu-build-system)
13419 (arguments
13420 `(#:tests? #f ; no check target
13421 #:phases
13422 (modify-phases %standard-phases
13423 (delete 'configure)
13424 (add-before 'build 'copy-gclib-source
13425 (lambda* (#:key inputs #:allow-other-keys)
13426 (mkdir "../gclib")
13427 (copy-recursively
13428 (assoc-ref inputs "gclib-source") "../gclib")
13429 #t))
13430 (replace 'install
13431 (lambda* (#:key outputs #:allow-other-keys)
13432 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
13433 (install-file "gffcompare" bin)
13434 #t))))))
13435 (native-inputs
13436 `(("gclib-source" ; see 'README.md' of gffcompare
13437 ,(let ((commit "54917d0849c1e83cfb057b5f712e5cb6a35d948f")
13438 (revision "1")
13439 (name "gclib")
13440 (version (git-version "0.10.3" revision commit)))
13441 (origin
13442 (method git-fetch)
13443 (uri (git-reference
13444 (url "https://github.com/gpertea/gclib/")
13445 (commit commit)))
13446 (file-name (git-file-name name version))
13447 (sha256
13448 (base32 "0b51lc0b8syrv7186fd7n8f15rwnf264qgfmm2palrwks1px24mr")))))))
13449 (home-page "https://github.com/gpertea/gffcompare/")
13450 (synopsis "Tool for comparing or classifing transcripts of RNA-Seq")
13451 (description
13452 "@code{gffcompare} is a tool that can:
13453@enumerate
13454@item compare and evaluate the accuracy of RNA-Seq transcript assemblers
13455(Cufflinks, Stringtie);
13456@item collapse (merge) duplicate transcripts from multiple GTF/GFF3 files (e.g.
13457resulted from assembly of different samples);
13458@item classify transcripts from one or multiple GTF/GFF3 files as they relate to
13459reference transcripts provided in a annotation file (also in GTF/GFF3 format).
13460@end enumerate")
13461 (license
13462 (list
13463 license:expat ;license for gffcompare
13464 license:artistic2.0))))) ;license for gclib
a9d496b3
RW
13465
13466(define-public python-intervaltree
13467 (package
13468 (name "python-intervaltree")
13469 (version "2.1.0")
13470 (source
13471 (origin
13472 (method url-fetch)
13473 (uri (pypi-uri "intervaltree" version))
13474 (sha256
13475 (base32
13476 "02w191m9zxkcjqr1kv2slxvhymwhj3jnsyy3a28b837pi15q19dc"))))
13477 (build-system python-build-system)
13478 ;; FIXME: error when collecting tests
13479 (arguments '(#:tests? #f))
13480 (propagated-inputs
13481 `(("python-sortedcontainers" ,python-sortedcontainers)))
13482 (native-inputs
13483 `(("python-pytest" ,python-pytest)))
13484 (home-page "https://github.com/chaimleib/intervaltree")
13485 (synopsis "Editable interval tree data structure")
13486 (description
13487 "This package provides a mutable, self-balancing interval tree
13488implementation for Python. Queries may be by point, by range overlap, or by
13489range envelopment. This library was designed to allow tagging text and time
13490intervals, where the intervals include the lower bound but not the upper
13491bound.")
13492 (license license:asl2.0)))
1f41f01c
RW
13493
13494(define-public python-pypairix
13495 (package
13496 (name "python-pypairix")
13497 (version "0.3.6")
13498 (source
13499 (origin
13500 (method url-fetch)
13501 (uri (pypi-uri "pypairix" version))
13502 (sha256
13503 (base32
13504 "0zs92b74s5v4xy2h16s15f3z6l4nnbw8x8zyif7xx5xpafjn0xss"))))
13505 (build-system python-build-system)
13506 ;; FIXME: the tests fail because test.support cannot be loaded:
13507 ;; ImportError: cannot import name 'support'
13508 (arguments '(#:tests? #f))
13509 (inputs
13510 `(("zlib" ,zlib)))
13511 (home-page "https://github.com/4dn-dcic/pairix")
13512 (synopsis "Support for querying pairix-indexed bgzipped text files")
13513 (description
13514 "Pypairix is a Python module for fast querying on a pairix-indexed
13515bgzipped text file that contains a pair of genomic coordinates per line.")
13516 (license license:expat)))
80f4db91
RW
13517
13518(define-public python-pyfaidx
13519 (package
13520 (name "python-pyfaidx")
13521 (version "0.5.4.2")
13522 (source
13523 (origin
13524 (method url-fetch)
13525 (uri (pypi-uri "pyfaidx" version))
13526 (sha256
13527 (base32
13528 "0y5zyjksj1rdglj601xd2bbni5abhdh622y3ck76chyzxz9z4rx8"))))
13529 (build-system python-build-system)
13530 (propagated-inputs
13531 `(("python-setuptools" ,python-setuptools)
13532 ("python-six" ,python-six)))
13533 (home-page "http://mattshirley.com")
13534 (synopsis "Random access to fasta subsequences")
13535 (description
13536 "This package provides procedures for efficient pythonic random access to
13537fasta subsequences.")
13538 (license license:bsd-3)))
5bb9e0af
RW
13539
13540(define-public python-cooler
13541 (package
13542 (name "python-cooler")
13543 (version "0.7.11")
13544 (source
13545 (origin
13546 (method url-fetch)
13547 (uri (pypi-uri "cooler" version))
13548 (sha256
13549 (base32
13550 "08k5nxnxa6qsbk15z5z0q01n28042k87wi4905hh95rzqib15mhx"))))
13551 (build-system python-build-system)
13552 (propagated-inputs
13553 `(("python-biopython" ,python-biopython)
13554 ("python-click" ,python-click)
13555 ("python-cytoolz" ,python-cytoolz)
13556 ("python-dask" ,python-dask)
13557 ("python-h5py" ,python-h5py)
13558 ("python-multiprocess" ,python-multiprocess)
13559 ("python-pandas" ,python-pandas)
13560 ("python-pyfaidx" ,python-pyfaidx)
13561 ("python-pypairix" ,python-pypairix)
13562 ("python-pysam" ,python-pysam)
13563 ("python-scipy" ,python-scipy)))
13564 (native-inputs
13565 `(("python-mock" ,python-mock)
13566 ("python-nose" ,python-nose)
13567 ("python-numpydoc" ,python-numpydoc)
13568 ("python-sphinx" ,python-sphinx)))
13569 (home-page "https://github.com/mirnylab/cooler")
13570 (synopsis "Sparse binary format for genomic interaction matrices")
13571 (description
13572 "Cooler is a support library for a sparse, compressed, binary persistent
13573storage format, called @code{cool}, used to store genomic interaction data,
13574such as Hi-C contact matrices.")
13575 (license license:bsd-3)))
1189c7f1
RW
13576
13577(define-public python-hicexplorer
13578 (package
13579 (name "python-hicexplorer")
13580 (version "2.1.4")
13581 (source
13582 (origin
13583 ;; The latest version is not available on Pypi.
13584 (method git-fetch)
13585 (uri (git-reference
13586 (url "https://github.com/deeptools/HiCExplorer.git")
13587 (commit version)))
13588 (file-name (git-file-name name version))
13589 (sha256
13590 (base32
13591 "0q5gpbzmrkvygqgw524q36b4nrivcmyi5v194vsx0qw7b3gcmq08"))))
13592 (build-system python-build-system)
13593 (arguments
13594 `(#:phases
13595 (modify-phases %standard-phases
13596 (add-after 'unpack 'loosen-up-requirements
13597 (lambda _
13598 (substitute* "setup.py"
13599 (("==") ">="))
13600 #t)))))
13601 (propagated-inputs
13602 `(("python-biopython" ,python-biopython)
13603 ("python-configparser" ,python-configparser)
13604 ("python-cooler" ,python-cooler)
13605 ("python-future" ,python-future)
13606 ("python-intervaltree" ,python-intervaltree)
13607 ("python-jinja2" ,python-jinja2)
13608 ("python-matplotlib" ,python-matplotlib)
13609 ("python-numpy" ,python-numpy)
13610 ("python-pandas" ,python-pandas)
13611 ("python-pybigwig" ,python-pybigwig)
13612 ("python-pysam" ,python-pysam)
13613 ("python-scipy" ,python-scipy)
13614 ("python-six" ,python-six)
13615 ("python-tables" ,python-tables)
13616 ("python-unidecode" ,python-unidecode)))
13617 (home-page "http://hicexplorer.readthedocs.io")
13618 (synopsis "Process, analyze and visualize Hi-C data")
13619 (description
13620 "HiCExplorer is a powerful and easy to use set of tools to process,
13621normalize and visualize Hi-C data. HiCExplorer facilitates the creation of
13622contact matrices, correction of contacts, TAD detection, A/B compartments,
13623merging, reordering or chromosomes, conversion from different formats
13624including cooler and detection of long-range contacts. Moreover, it allows
13625the visualization of multiple contact matrices along with other types of data
13626like genes, compartments, ChIP-seq coverage tracks (and in general any type of
13627genomic scores), long range contacts and the visualization of viewpoints.")
13628 (license license:gpl3)))
5bfa7510
RW
13629
13630(define-public python-pygenometracks
13631 (package
13632 (name "python-pygenometracks")
13633 (version "2.0")
13634 (source
13635 (origin
13636 (method url-fetch)
13637 (uri (pypi-uri "pyGenomeTracks" version))
13638 (sha256
13639 (base32
13640 "1fws6bqsyy9kj3qiabhkqx4wd4i775gsxnhszqd3zg7w67sc1ic5"))))
13641 (build-system python-build-system)
13642 (propagated-inputs
13643 `(("python-configparser" ,python-configparser)
13644 ("python-future" ,python-future)
13645 ("python-hicexplorer" ,python-hicexplorer)
13646 ("python-intervaltree" ,python-intervaltree)
13647 ("python-matplotlib" ,python-matplotlib)
13648 ("python-numpy" ,python-numpy)
13649 ("python-pybigwig" ,python-pybigwig)))
13650 (native-inputs
13651 `(("python-pytest" ,python-pytest)))
13652 (home-page "https://pygenometracks.readthedocs.io")
13653 (synopsis "Program and library to plot beautiful genome browser tracks")
13654 (description
13655 "This package aims to produce high-quality genome browser tracks that
13656are highly customizable. Currently, it is possible to plot: bigwig, bed (many
13657options), bedgraph, links (represented as arcs), and Hi-C matrices.
13658pyGenomeTracks can make plots with or without Hi-C data.")
13659 (license license:gpl3+)))
1dd153b3
RW
13660
13661(define-public python-hic2cool
13662 (package
13663 (name "python-hic2cool")
13664 (version "0.4.2")
13665 (source
13666 (origin
13667 (method url-fetch)
13668 (uri (pypi-uri "hic2cool" version))
13669 (sha256
13670 (base32
13671 "0xy6mhfns2lzib1kcr6419jjp6pmh0qx8z8na55lmiwn0ds8q9cl"))))
13672 (build-system python-build-system)
13673 (arguments '(#:tests? #f)) ; no tests included
13674 (propagated-inputs
13675 `(("python-cooler" ,python-cooler)))
13676 (home-page "https://github.com/4dn-dcic/hic2cool")
13677 (synopsis "Converter for .hic and .cool files")
13678 (description
13679 "This package provides a converter between @code{.hic} files (from
13680juicer) and single-resolution or multi-resolution @code{.cool} files (for
13681cooler). Both @code{hic} and @code{cool} files describe Hi-C contact
13682matrices.")
13683 (license license:expat)))
7e27393f 13684
13685(define-public r-pore
13686 (package
13687 (name "r-pore")
13688 (version "0.24")
13689 (source
13690 (origin
13691 (method url-fetch)
13692 (uri
13693 (string-append "mirror://sourceforge/rpore/" version
13694 "/poRe_" version ".tar.gz"))
13695 (sha256
13696 (base32 "0pih9nljbv8g4x8rkk29i7aqq681b782r5s5ynp4nw9yzqnmmksv"))))
13697 (properties `((upstream-name . "poRe")))
13698 (build-system r-build-system)
13699 (propagated-inputs
13700 `(("r-bit64" ,r-bit64)
13701 ("r-data-table" ,r-data-table)
13702 ("r-rhdf5" ,r-rhdf5)
13703 ("r-shiny" ,r-shiny)
13704 ("r-svdialogs" ,r-svdialogs)))
13705 (home-page "https://sourceforge.net/projects/rpore/")
13706 (synopsis "Visualize Nanopore sequencing data")
13707 (description
13708 "This package provides graphical user interfaces to organize and visualize Nanopore
13709sequencing data.")
13710 ;; This is free software but the license variant is unclear:
13711 ;; <https://github.com/mw55309/poRe_docs/issues/10>.
13712 (license license:bsd-3)))
a434730f
RW
13713
13714(define-public r-xbioc
13715 (let ((revision "1")
13716 (commit "f798c187e376fd1ba27abd559f47bbae7e3e466b"))
13717 (package
13718 (name "r-xbioc")
13719 (version (git-version "0.1.15" revision commit))
13720 (source (origin
13721 (method git-fetch)
13722 (uri (git-reference
13723 (url "https://github.com/renozao/xbioc.git")
13724 (commit commit)))
13725 (file-name (git-file-name name version))
13726 (sha256
13727 (base32
13728 "03hffh2f6z71y6l6dqpa5cql3hdaw7zigdi8sm2dzgx379k9rgrr"))))
13729 (build-system r-build-system)
13730 (propagated-inputs
13731 `(("r-annotationdbi" ,r-annotationdbi)
13732 ("r-assertthat" ,r-assertthat)
13733 ("r-biobase" ,r-biobase)
13734 ("r-biocinstaller" ,r-biocinstaller)
13735 ("r-digest" ,r-digest)
13736 ("r-pkgmaker" ,r-pkgmaker)
13737 ("r-plyr" ,r-plyr)
13738 ("r-reshape2" ,r-reshape2)
13739 ("r-stringr" ,r-stringr)))
13740 (home-page "https://github.com/renozao/xbioc/")
13741 (synopsis "Extra base functions for Bioconductor")
13742 (description "This package provides extra utility functions to perform
13743common tasks in the analysis of omics data, leveraging and enhancing features
13744provided by Bioconductor packages.")
13745 (license license:gpl3+))))
28829c04
RW
13746
13747(define-public r-cssam
13748 (let ((revision "1")
13749 (commit "9ec58c982fa551af0d80b1a266890d92954833f2"))
13750 (package
13751 (name "r-cssam")
13752 (version (git-version "1.4" revision commit))
13753 (source (origin
13754 (method git-fetch)
13755 (uri (git-reference
13756 (url "https://github.com/shenorrLab/csSAM.git")
13757 (commit commit)))
13758 (file-name (git-file-name name version))
13759 (sha256
13760 (base32
13761 "128syf9v39gk0z3ip000qpsjbg6l1siyq6c8b0hz41dzg5achyb3"))))
13762 (build-system r-build-system)
13763 (propagated-inputs
13764 `(("r-formula" ,r-formula)
13765 ("r-ggplot2" ,r-ggplot2)
13766 ("r-pkgmaker" ,r-pkgmaker)
13767 ("r-plyr" ,r-plyr)
13768 ("r-rngtools" ,r-rngtools)
13769 ("r-scales" ,r-scales)))
13770 (home-page "https://github.com/shenorrLab/csSAM/")
13771 (synopsis "Cell type-specific statistical analysis of microarray")
13772 (description "This package implements the method csSAM that computes
13773cell-specific differential expression from measured cell proportions using
13774SAM.")
13775 ;; Any version
13776 (license license:lgpl2.1+))))
e7270247
RW
13777
13778(define-public r-bseqsc
13779 (let ((revision "1")
13780 (commit "fef3f3e38dcf3df37103348b5780937982b43b98"))
13781 (package
13782 (name "r-bseqsc")
13783 (version (git-version "1.0" revision commit))
13784 (source (origin
13785 (method git-fetch)
13786 (uri (git-reference
13787 (url "https://github.com/shenorrLab/bseqsc.git")
13788 (commit commit)))
13789 (file-name (git-file-name name version))
13790 (sha256
13791 (base32
13792 "1prw13wa20f7wlc3gkkls66n1kxz8d28qrb8icfqdwdnnv8w5qg8"))))
13793 (build-system r-build-system)
13794 (propagated-inputs
13795 `(("r-abind" ,r-abind)
13796 ("r-annotationdbi" ,r-annotationdbi)
13797 ("r-biobase" ,r-biobase)
13798 ("r-cssam" ,r-cssam)
13799 ("r-dplyr" ,r-dplyr)
13800 ("r-e1071" ,r-e1071)
13801 ("r-edger" ,r-edger)
13802 ("r-ggplot2" ,r-ggplot2)
13803 ("r-nmf" ,r-nmf)
13804 ("r-openxlsx" ,r-openxlsx)
13805 ("r-pkgmaker" ,r-pkgmaker)
13806 ("r-plyr" ,r-plyr)
13807 ("r-preprocesscore" ,r-preprocesscore)
13808 ("r-rngtools" ,r-rngtools)
13809 ("r-scales" ,r-scales)
13810 ("r-stringr" ,r-stringr)
13811 ("r-xbioc" ,r-xbioc)))
13812 (home-page "https://github.com/shenorrLab/bseqsc")
13813 (synopsis "Deconvolution of bulk sequencing experiments using single cell data")
13814 (description "BSeq-sc is a bioinformatics analysis pipeline that
13815leverages single-cell sequencing data to estimate cell type proportion and
13816cell type-specific gene expression differences from RNA-seq data from bulk
13817tissue samples. This is a companion package to the publication \"A
13818single-cell transcriptomic map of the human and mouse pancreas reveals inter-
13819and intra-cell population structure.\" Baron et al. Cell Systems (2016)
13820@url{https://www.ncbi.nlm.nih.gov/pubmed/27667365}.")
13821 (license license:gpl2+))))
f2bc53af 13822
13823(define-public porechop
13824 ;; The recommended way to install is to clone the git repository
13825 ;; https://github.com/rrwick/Porechop#installation
13826 (let ((commit "289d5dca4a5fc327f97b3f8cecb68ecaf1014861")
13827 (revision "1"))
13828 (package
13829 (name "porechop")
13830 (version (git-version "0.2.3" revision commit))
13831 (source
13832 (origin
13833 (method git-fetch)
13834 (uri (git-reference
13835 (url "https://github.com/rrwick/Porechop.git")
13836 (commit commit)))
13837 (file-name (git-file-name name version))
13838 (sha256
13839 (base32 "05ps43gig0d3ia9x5lj84lb00hbsl6ba9n7y7jz927npxbr2ym23"))))
13840 (build-system python-build-system)
13841 (home-page "https://github.com/rrwick/porechop")
13842 (synopsis "Finding, trimming or splitting adapters, in Oxford Nanopore reads")
13843 (description
13844 "The porechop package is a tool for finding and removing adapters from Oxford
13845Nanopore reads. Adapters on the ends of reads are trimmed off, and when a read
13846has an adapter in its middle, it is treated as chimeric and chopped into
13847separate reads. Porechop performs thorough alignments to effectively find
13848adapters, even at low sequence identity. Porechop also supports demultiplexing
13849of Nanopore reads that were barcoded with the Native Barcoding Kit, PCR
13850Barcoding Kit or Rapid Barcoding Kit.")
13851 (license license:gpl3+))))
3f0f49d7 13852
13853(define-public poretools
13854 ;; The latest release was in 2016 and the latest commit is from 2017
13855 ;; the recommended way to install is to clone the git repository
13856 ;; https://poretools.readthedocs.io/en/latest/content/installation.html
13857 (let ((commit "e426b1f09e86ac259a00c261c79df91510777407")
13858 (revision "1"))
13859 (package
13860 (name "poretools")
13861 (version (git-version "0.6.0" revision commit))
13862 (source
13863 (origin
13864 (method git-fetch)
13865 (uri (git-reference
13866 (url "https://github.com/arq5x/poretools.git")
13867 (commit commit)))
13868 (file-name (git-file-name name version))
13869 (sha256
13870 (base32 "0bglj833wxpp3cq430p1d3xp085ls221js2y90w7ir2x5ay8l7am"))))
13871 (build-system python-build-system)
13872 ;; requires python >=2.7, <3.0, and the same for python dependencies
13873 (arguments `(#:python ,python-2))
13874 (inputs
13875 `(("hdf5" ,hdf5)))
13876 (propagated-inputs
13877 `(("python-dateutil" ,python2-dateutil)
13878 ("python-h5py" ,python2-h5py)
13879 ("python-matplotlib" ,python2-matplotlib)
13880 ("python-pandas" ,python2-pandas)
13881 ("python-seaborn" ,python2-seaborn)))
13882 (home-page "https://poretools.readthedocs.io")
13883 (synopsis "Toolkit for working with nanopore sequencing data")
13884 (description
13885 "The MinION from Oxford Nanopore Technologies is a nanopore sequencer.
13886This @code{poretools} package is a flexible toolkit for exploring datasets
13887generated by nanopore sequencing devices for the purposes of quality control and
13888downstream analysis. Poretools operates directly on the native FAST5, a variant
13889of the Hierarchical Data Format (HDF5) standard.")
13890 (license license:expat))))
0f162222 13891
13892(define-public r-absfiltergsea
13893 (package
13894 (name "r-absfiltergsea")
13895 (version "1.5.1")
13896 (source
13897 (origin
13898 (method url-fetch)
13899 (uri (cran-uri "AbsFilterGSEA" version))
13900 (sha256
13901 (base32 "15srxkxsvn38kd5frdrwfdf0ad8gskrd0h01wmdf9hglq8fjrp7w"))))
13902 (properties `((upstream-name . "AbsFilterGSEA")))
13903 (build-system r-build-system)
13904 (propagated-inputs
13905 `(("r-biobase" ,r-biobase)
13906 ("r-deseq" ,r-deseq)
13907 ("r-limma" ,r-limma)
13908 ("r-rcpp" ,r-rcpp)
13909 ("r-rcpparmadillo" ,r-rcpparmadillo)))
13910 (home-page "https://cran.r-project.org/web/packages/AbsFilterGSEA/")
13911 (synopsis "Improved false positive control of gene-permuting with absolute filtering")
13912 (description
13913 "This package provides a function that performs gene-permuting of a gene-set
13914enrichment analysis (GSEA) calculation with or without the absolute filtering.
13915 Without filtering, users can perform (original) two-tailed or one-tailed
13916absolute GSEA.")
13917 (license license:gpl2)))
d71078bc 13918
ee66a135
RW
13919(define-public jamm
13920 (package
13921 (name "jamm")
13922 (version "1.0.7.5")
13923 (source
13924 (origin
13925 (method git-fetch)
13926 (uri (git-reference
13927 (url "https://github.com/mahmoudibrahim/JAMM.git")
13928 (commit (string-append "JAMMv" version))))
13929 (file-name (git-file-name name version))
13930 (sha256
13931 (base32
13932 "0ls889jcma1ch9h21jjhnkadgszgqj41842hhcjh6cg88f85qf3i"))))
13933 (build-system gnu-build-system)
13934 (arguments
13935 `(#:tests? #f ; there are none
13936 #:phases
13937 (modify-phases %standard-phases
13938 (delete 'configure)
e7c6bc45 13939 (delete 'build)
ee66a135
RW
13940 (replace 'install
13941 (lambda* (#:key inputs outputs #:allow-other-keys)
13942 (let* ((out (assoc-ref outputs "out"))
13943 (libexec (string-append out "/libexec/jamm"))
13944 (bin (string-append out "/bin")))
13945 (substitute* '("JAMM.sh"
13946 "SignalGenerator.sh")
13947 (("^sPath=.*")
13948 (string-append "sPath=\"" libexec "\"\n")))
13949 (for-each (lambda (file)
13950 (install-file file libexec))
13951 (list "bincalculator.r"
13952 "peakfinder.r"
13953 "peakhelper.r"
13954 "signalmaker.r"
13955 "xcorr.r"
13956 "xcorrhelper.r"
13957 ;; Perl scripts
13958 "peakfilter.pl"
13959 "readshifter.pl"))
13960
13961 (for-each
13962 (lambda (script)
13963 (chmod script #o555)
13964 (install-file script bin)
13965 (wrap-program (string-append bin "/" script)
13966 `("PATH" ":" prefix
13967 (,(string-append (assoc-ref inputs "coreutils") "/bin")
13968 ,(string-append (assoc-ref inputs "gawk") "/bin")
13969 ,(string-append (assoc-ref inputs "perl") "/bin")
13970 ,(string-append (assoc-ref inputs "r-minimal") "/bin")))
13971 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))
13972 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
13973 (list "JAMM.sh" "SignalGenerator.sh")))
13974 #t)))))
13975 (inputs
13976 `(("bash" ,bash)
13977 ("coreutils" ,coreutils)
13978 ("gawk" ,gawk)
13979 ("perl" ,perl)
13980 ("r-minimal" ,r-minimal)
13981 ;;("r-parallel" ,r-parallel)
13982 ("r-signal" ,r-signal)
13983 ("r-mclust" ,r-mclust)))
13984 (home-page "https://github.com/mahmoudibrahim/JAMM")
13985 (synopsis "Peak finder for NGS datasets")
13986 (description
13987 "JAMM is a peak finder for next generation sequencing datasets (ChIP-Seq,
13988ATAC-Seq, DNase-Seq, etc.) that can integrate replicates and assign peak
13989boundaries accurately. JAMM is applicable to both broad and narrow
13990datasets.")
13991 (license license:gpl3+)))
13992
d71078bc
RW
13993(define-public ngless
13994 (package
13995 (name "ngless")
13996 (version "0.9.1")
13997 (source
13998 (origin
13999 (method git-fetch)
14000 (uri (git-reference
14001 (url "https://gitlab.com/ngless/ngless.git")
14002 (commit (string-append "v" version))))
14003 (file-name (git-file-name name version))
14004 (sha256
14005 (base32
14006 "0mc2gi7h4lx74zylvyp76mvc0w6706j858ii9vlgzqsw6acpr117"))))
14007 (build-system haskell-build-system)
14008 (arguments
14009 `(#:haddock? #f ; The haddock phase fails with: NGLess/CmdArgs.hs:20:1:
14010 ; error: parse error on input import
14011 ; import Options.Applicative
14012 #:phases
14013 (modify-phases %standard-phases
14014 (add-after 'unpack 'create-cabal-file
21335fdb
RW
14015 (lambda _ (invoke "hpack") #t))
14016 ;; These tools are expected to be installed alongside ngless.
14017 (add-after 'install 'link-tools
14018 (lambda* (#:key inputs outputs #:allow-other-keys)
14019 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
14020 (symlink (string-append (assoc-ref inputs "prodigal")
14021 "/bin/prodigal")
14022 (string-append bin "ngless-" ,version "-prodigal"))
14023 (symlink (string-append (assoc-ref inputs "minimap2")
14024 "/bin/minimap2")
14025 (string-append bin "ngless-" ,version "-minimap2"))
14026 (symlink (string-append (assoc-ref inputs "samtools")
14027 "/bin/samtools")
14028 (string-append bin "ngless-" ,version "-samtools"))
14029 (symlink (string-append (assoc-ref inputs "bwa")
14030 "/bin/bwa")
14031 (string-append bin "ngless-" ,version "-bwa"))
14032 #t))))))
d71078bc 14033 (inputs
21335fdb
RW
14034 `(("prodigal" ,prodigal)
14035 ("bwa" ,bwa)
14036 ("samtools" ,samtools)
14037 ("minimap2" ,minimap2)
14038 ("ghc-aeson" ,ghc-aeson)
d71078bc
RW
14039 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
14040 ("ghc-async" ,ghc-async)
14041 ("ghc-atomic-write" ,ghc-atomic-write)
14042 ("ghc-bytestring-lexing" ,ghc-bytestring-lexing)
14043 ("ghc-chart" ,ghc-chart)
14044 ("ghc-chart-cairo" ,ghc-chart-cairo)
14045 ("ghc-conduit" ,ghc-conduit)
14046 ("ghc-conduit-algorithms" ,ghc-conduit-algorithms)
14047 ("ghc-conduit-combinators" ,ghc-conduit-combinators)
14048 ("ghc-conduit-extra" ,ghc-conduit-extra)
14049 ("ghc-configurator" ,ghc-configurator)
14050 ("ghc-convertible" ,ghc-convertible)
14051 ("ghc-data-default" ,ghc-data-default)
14052 ("ghc-double-conversion" ,ghc-double-conversion)
14053 ("ghc-edit-distance" ,ghc-edit-distance)
14054 ("ghc-either" ,ghc-either)
14055 ("ghc-errors" ,ghc-errors)
14056 ("ghc-extra" ,ghc-extra)
14057 ("ghc-filemanip" ,ghc-filemanip)
14058 ("ghc-file-embed" ,ghc-file-embed)
14059 ("ghc-gitrev" ,ghc-gitrev)
14060 ("ghc-hashtables" ,ghc-hashtables)
14061 ("ghc-http-conduit" ,ghc-http-conduit)
14062 ("ghc-inline-c" ,ghc-inline-c)
14063 ("ghc-inline-c-cpp" ,ghc-inline-c-cpp)
14064 ("ghc-intervalmap" ,ghc-intervalmap)
14065 ("ghc-missingh" ,ghc-missingh)
14066 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
14067 ("ghc-parsec" ,ghc-parsec)
14068 ("ghc-regex" ,ghc-regex)
14069 ("ghc-safe" ,ghc-safe)
14070 ("ghc-safeio" ,ghc-safeio)
14071 ("ghc-strict" ,ghc-strict)
14072 ("ghc-tar" ,ghc-tar)
14073 ("ghc-text" ,ghc-text)
14074 ("ghc-unliftio" ,ghc-unliftio)
14075 ("ghc-unliftio-core" ,ghc-unliftio-core)
14076 ("ghc-vector" ,ghc-vector)
14077 ("ghc-yaml" ,ghc-yaml)
14078 ("ghc-zlib" ,ghc-zlib)))
14079 (propagated-inputs
14080 `(("r-r6" ,r-r6)
14081 ("r-hdf5r" ,r-hdf5r)
14082 ("r-iterators" ,r-iterators)
14083 ("r-itertools" ,r-itertools)
14084 ("r-matrix" ,r-matrix)))
14085 (native-inputs
14086 `(("ghc-hpack" ,ghc-hpack)
14087 ("ghc-quickcheck" ,ghc-quickcheck)
14088 ("ghc-test-framework" ,ghc-test-framework)
14089 ("ghc-test-framework-hunit",ghc-test-framework-hunit)
14090 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
14091 ("ghc-test-framework-th" ,ghc-test-framework-th)))
14092 (home-page "https://gitlab.com/ngless/ngless")
14093 (synopsis "DSL for processing next-generation sequencing data")
14094 (description "Ngless is a domain-specific language for
14095@dfn{next-generation sequencing} (NGS) data processing.")
14096 (license license:expat)))
b6bd8b10 14097
14098(define-public filtlong
14099 ;; The recommended way to install is to clone the git repository
14100 ;; https://github.com/rrwick/Filtlong#installation
14101 ;; and the lastest release is more than nine months old
14102 (let ((commit "d1bb46dfe8bc7efe6257b5ce222c04bfe8aedaab")
14103 (revision "1"))
14104 (package
14105 (name "filtlong")
14106 (version (git-version "0.2.0" revision commit))
14107 (source
14108 (origin
14109 (method git-fetch)
14110 (uri (git-reference
14111 (url "https://github.com/rrwick/Filtlong.git")
14112 (commit commit)))
14113 (file-name (git-file-name name version))
14114 (sha256
14115 (base32 "1xr92r820x8qlkcr3b57iw223yq8vjgyi42jr79w2xgw47qzr575"))))
14116 (build-system gnu-build-system)
14117 (arguments
14118 `(#:tests? #f ; no check target
14119 #:phases
14120 (modify-phases %standard-phases
14121 (delete 'configure)
14122 (replace 'install
14123 (lambda* (#:key outputs #:allow-other-keys)
14124 (let* ((out (assoc-ref outputs "out"))
14125 (bin (string-append out "/bin"))
14126 (scripts (string-append out "/share/filtlong/scripts")))
14127 (install-file "bin/filtlong" bin)
14128 (install-file "scripts/histogram.py" scripts)
14129 (install-file "scripts/read_info_histograms.sh" scripts))
14130 #t))
14131 (add-after 'install 'wrap-program
14132 (lambda* (#:key inputs outputs #:allow-other-keys)
14133 (let* ((out (assoc-ref outputs "out"))
14134 (path (getenv "PYTHONPATH")))
14135 (wrap-program (string-append out
14136 "/share/filtlong/scripts/histogram.py")
14137 `("PYTHONPATH" ":" prefix (,path))))
14138 #t))
14139 (add-before 'check 'patch-tests
14140 (lambda _
14141 (substitute* "scripts/read_info_histograms.sh"
14142 (("awk") (which "gawk")))
14143 #t)))))
14144 (inputs
14145 `(("gawk" ,gawk) ;for read_info_histograms.sh
14146 ("python" ,python-2) ;required for histogram.py
14147 ("zlib" ,zlib)))
14148 (home-page "https://github.com/rrwick/Filtlong/")
14149 (synopsis "Tool for quality filtering of Nanopore and PacBio data")
14150 (description
14151 "The Filtlong package is a tool for filtering long reads by quality.
14152It can take a set of long reads and produce a smaller, better subset. It uses
14153both read length (longer is better) and read identity (higher is better) when
14154choosing which reads pass the filter.")
14155 (license (list license:gpl3 ;filtlong
14156 license:asl2.0))))) ;histogram.py
30f0d21b 14157
14158(define-public nanopolish
14159 ;; The recommended way to install is to clone the git repository
14160 ;; <https://github.com/jts/nanopolish#installing-a-particular-release>.
14161 ;; Also, the differences between release and current version seem to be
14162 ;; significant.
14163 (let ((commit "50e8b5cc62f9b46f5445f5c5e8c5ab7263ea6d9d")
14164 (revision "1"))
14165 (package
14166 (name "nanopolish")
14167 (version (git-version "0.10.2" revision commit))
14168 (source
14169 (origin
14170 (method git-fetch)
14171 (uri (git-reference
14172 (url "https://github.com/jts/nanopolish.git")
14173 (commit commit)
14174 (recursive? #t)))
14175 (file-name (git-file-name name version))
14176 (sha256
7c1685e9
RW
14177 (base32 "09j5gz57yr9i34a27vbl72i4g8syv2zzgmsfyjq02yshmnrvkjs6"))
14178 (modules '((guix build utils)))
14179 (snippet
14180 '(begin
14181 (delete-file-recursively "htslib")
14182 #t))))
30f0d21b 14183 (build-system gnu-build-system)
14184 (arguments
14185 `(#:make-flags
14186 `("HDF5=noinstall" "EIGEN=noinstall" "HTS=noinstall" "CC=gcc")
14187 #:tests? #f ; no check target
14188 #:phases
14189 (modify-phases %standard-phases
14190 (add-after 'unpack 'find-eigen
14191 (lambda* (#:key inputs #:allow-other-keys)
14192 (setenv "CPATH"
14193 (string-append (assoc-ref inputs "eigen")
14194 "/include/eigen3"))
14195 #t))
14196 (delete 'configure)
14197 (replace 'install
14198 (lambda* (#:key outputs #:allow-other-keys)
14199 (let* ((out (assoc-ref outputs "out"))
14200 (bin (string-append out "/bin"))
14201 (scripts (string-append out "/share/nanopolish/scripts")))
14202
14203 (install-file "nanopolish" bin)
14204 (for-each (lambda (file) (install-file file scripts))
14205 (find-files "scripts" ".*"))
14206 #t)))
14207 (add-after 'install 'wrap-programs
14208 (lambda* (#:key outputs #:allow-other-keys)
14209 (for-each (lambda (file)
14210 (wrap-program file `("PYTHONPATH" ":" prefix (,path))))
14211 (find-files "/share/nanopolish/scripts" "\\.py"))
14212 (for-each (lambda (file)
14213 (wrap-program file `("PERL5LIB" ":" prefix (,path))))
14214 (find-files "/share/nanopolish/scripts" "\\.pl"))
14215 #t)))))
14216 (inputs
14217 `(("eigen" ,eigen)
14218 ("hdf5" ,hdf5)
14219 ("htslib" ,htslib)
14220 ("perl" ,perl)
c5542196 14221 ("python" ,python-wrapper)
30f0d21b 14222 ("python-biopython" ,python-biopython)
14223 ("python-numpy" ,python-numpy)
14224 ("python-pysam" ,python-pysam)
14225 ("python-scikit-learn" , python-scikit-learn)
14226 ("python-scipy" ,python-scipy)
14227 ("zlib" ,zlib)))
14228 (home-page "https://github.com/jts/nanopolish")
14229 (synopsis "Signal-level analysis of Oxford Nanopore sequencing data")
14230 (description
14231 "This package analyses the Oxford Nanopore sequencing data at signal-level.
14232Nanopolish can calculate an improved consensus sequence for a draft genome
14233assembly, detect base modifications, call SNPs (Single nucleotide
14234polymorphisms) and indels with respect to a reference genome and more.")
14235 (license license:expat))))
385d7546
RW
14236
14237(define-public cnvkit
14238 (package
14239 (name "cnvkit")
14240 (version "0.9.5")
14241 (source
14242 (origin
14243 (method git-fetch)
14244 (uri (git-reference
14245 (url "https://github.com/etal/cnvkit.git")
14246 (commit (string-append "v" version))))
14247 (file-name (git-file-name name version))
14248 (sha256
14249 (base32 "0g2f78k68yglmj4fsfmgs8idqv3di9aj53fg0ld0hqljg8chhh82"))))
14250 (build-system python-build-system)
14251 (propagated-inputs
14252 `(("python-biopython" ,python-biopython)
14253 ("python-future" ,python-future)
14254 ("python-matplotlib" ,python-matplotlib)
14255 ("python-numpy" ,python-numpy)
14256 ("python-reportlab" ,python-reportlab)
14257 ("python-pandas" ,python-pandas)
14258 ("python-pysam" ,python-pysam)
14259 ("python-pyfaidx" ,python-pyfaidx)
14260 ("python-scipy" ,python-scipy)
14261 ;; R packages
14262 ("r-dnacopy" ,r-dnacopy)))
14263 (home-page "https://cnvkit.readthedocs.org/")
14264 (synopsis "Copy number variant detection from targeted DNA sequencing")
14265 (description
14266 "CNVkit is a Python library and command-line software toolkit to infer
14267and visualize copy number from high-throughput DNA sequencing data. It is
14268designed for use with hybrid capture, including both whole-exome and custom
14269target panels, and short-read sequencing platforms such as Illumina and Ion
14270Torrent.")
14271 (license license:asl2.0)))
9846ec0b
RW
14272
14273(define-public python-pyfit-sne
14274 (package
14275 (name "python-pyfit-sne")
14276 (version "1.0.1")
14277 (source
14278 (origin
14279 (method git-fetch)
14280 (uri (git-reference
14281 (url "https://github.com/KlugerLab/pyFIt-SNE.git")
14282 (commit version)))
14283 (file-name (git-file-name name version))
14284 (sha256
14285 (base32 "13wh3qkzs56azmmgnxib6xfr29g7xh09sxylzjpni5j0pp0rc5qw"))))
14286 (build-system python-build-system)
14287 (propagated-inputs
14288 `(("python-numpy" ,python-numpy)))
14289 (inputs
14290 `(("fftw" ,fftw)))
14291 (native-inputs
14292 `(("python-cython" ,python-cython)))
14293 (home-page "https://github.com/KlugerLab/pyFIt-SNE")
14294 (synopsis "FFT-accelerated Interpolation-based t-SNE")
14295 (description
14296 "t-Stochastic Neighborhood Embedding (t-SNE) is a highly successful
14297method for dimensionality reduction and visualization of high dimensional
14298datasets. A popular implementation of t-SNE uses the Barnes-Hut algorithm to
14299approximate the gradient at each iteration of gradient descent. This package
14300is a Cython wrapper for FIt-SNE.")
14301 (license license:bsd-4)))
a27ca96f 14302
6e42cef0
RW
14303(define-public bbmap
14304 (package
14305 (name "bbmap")
14306 (version "35.82")
14307 (source (origin
14308 (method url-fetch)
14309 (uri (string-append
14310 "mirror://sourceforge/bbmap/BBMap_" version ".tar.gz"))
14311 (sha256
14312 (base32
14313 "1q4rfhxcb6z3gm8zg2davjz98w22lkf4hm9ikxz9kdl93pil3wkd"))))
14314 (build-system ant-build-system)
14315 (arguments
14316 `(#:build-target "dist"
14317 #:tests? #f ; there are none
14318 #:make-flags
14319 (list (string-append "-Dmpijar="
14320 (assoc-ref %build-inputs "java-openmpi")
14321 "/lib/mpi.jar"))
14322 #:modules ((guix build ant-build-system)
14323 (guix build utils)
14324 (guix build java-utils))
14325 #:phases
14326 (modify-phases %standard-phases
14327 (add-after 'build 'build-jni-library
14328 (lambda _
14329 (with-directory-excursion "jni"
14330 (invoke "make" "-f" "makefile.linux"))))
14331 ;; There is no install target
14332 (replace 'install (install-jars "dist"))
14333 (add-after 'install 'install-scripts-and-documentation
14334 (lambda* (#:key outputs #:allow-other-keys)
14335 (substitute* "calcmem.sh"
14336 (("\\| awk ") (string-append "| " (which "awk") " ")))
14337 (let* ((scripts (find-files "." "\\.sh$"))
14338 (out (assoc-ref outputs "out"))
14339 (bin (string-append out "/bin"))
14340 (doc (string-append out "/share/doc/bbmap"))
14341 (jni (string-append out "/lib/jni")))
14342 (substitute* scripts
14343 (("\\$DIR\"\"docs") doc)
14344 (("^CP=.*")
14345 (string-append "CP=" out "/share/java/BBTools.jar\n"))
14346 (("^NATIVELIBDIR.*")
14347 (string-append "NATIVELIBDIR=" jni "\n"))
14348 (("CMD=\"java")
14349 (string-append "CMD=\"" (which "java"))))
14350 (for-each (lambda (script) (install-file script bin)) scripts)
14351
14352 ;; Install JNI library
14353 (install-file "jni/libbbtoolsjni.so" jni)
14354
14355 ;; Install documentation
14356 (install-file "docs/readme.txt" doc)
14357 (copy-recursively "docs/guides" doc))
14358 #t)))
14359 #:jdk ,openjdk11))
14360 (inputs
14361 `(("gawk" ,gawk)
14362 ("java-eclipse-jdt-core" ,java-eclipse-jdt-core)
14363 ("java-eclipse-jdt-compiler-apt" ,java-eclipse-jdt-compiler-apt)
14364 ("java-openmpi" ,java-openmpi)))
14365 (home-page "http://sourceforge.net/projects/bbmap/")
14366 (synopsis "Aligner and other tools for short sequencing reads")
14367 (description
14368 "This package provides bioinformatic tools to align, deduplicate,
14369reformat, filter and normalize DNA and RNA-seq data. It includes the
14370following tools: BBMap, a short read aligner for DNA and RNA-seq data; BBNorm,
14371a kmer-based error-correction and normalization tool; Dedupe, a tool to
14372simplify assemblies by removing duplicate or contained subsequences that share
14373a target percent identity; Reformat, to convert reads between
14374fasta/fastq/scarf/fasta+qual/sam, interleaved/paired, and ASCII-33/64, at over
14375500 MB/s; and BBDuk, a tool to filter, trim, or mask reads with kmer matches
14376to an artifact/contaminant file.")
14377 (license license:bsd-3)))
14378
a27ca96f
RW
14379(define-public velvet
14380 (package
14381 (name "velvet")
14382 (version "1.2.10")
14383 (source (origin
14384 (method url-fetch)
14385 (uri (string-append "https://www.ebi.ac.uk/~zerbino/velvet/"
14386 "velvet_" version ".tgz"))
14387 (sha256
14388 (base32
14389 "0h3njwy66p6bx14r3ar1byb0ccaxmxka4c65rn4iybyiqa4d8kc8"))
14390 ;; Delete bundled libraries
14391 (modules '((guix build utils)))
14392 (snippet
14393 '(begin
14394 (delete-file "Manual.pdf")
14395 (delete-file-recursively "third-party")
14396 #t))))
14397 (build-system gnu-build-system)
14398 (arguments
14399 `(#:make-flags '("OPENMP=t")
14400 #:test-target "test"
14401 #:phases
14402 (modify-phases %standard-phases
14403 (delete 'configure)
14404 (add-after 'unpack 'fix-zlib-include
14405 (lambda _
14406 (substitute* "src/binarySequences.c"
14407 (("../third-party/zlib-1.2.3/zlib.h") "zlib.h"))
14408 #t))
14409 (replace 'install
14410 (lambda* (#:key outputs #:allow-other-keys)
14411 (let* ((out (assoc-ref outputs "out"))
14412 (bin (string-append out "/bin"))
14413 (doc (string-append out "/share/doc/velvet")))
14414 (mkdir-p bin)
14415 (mkdir-p doc)
14416 (install-file "velveth" bin)
14417 (install-file "velvetg" bin)
14418 (install-file "Manual.pdf" doc)
14419 (install-file "Columbus_manual.pdf" doc)
14420 #t))))))
14421 (inputs
14422 `(("openmpi" ,openmpi)
14423 ("zlib" ,zlib)))
14424 (native-inputs
14425 `(("texlive" ,(texlive-union (list texlive-latex-graphics
14426 texlive-latex-hyperref)))))
14427 (home-page "https://www.ebi.ac.uk/~zerbino/velvet/")
14428 (synopsis "Nucleic acid sequence assembler for very short reads")
14429 (description
14430 "Velvet is a de novo genomic assembler specially designed for short read
14431sequencing technologies, such as Solexa or 454. Velvet currently takes in
14432short read sequences, removes errors then produces high quality unique
14433contigs. It then uses paired read information, if available, to retrieve the
14434repeated areas between contigs.")
14435 (license license:gpl2+)))
fd4c7a09
RW
14436
14437(define-public python-velocyto
14438 (package
14439 (name "python-velocyto")
14440 (version "0.17.17")
14441 (source
14442 (origin
14443 (method url-fetch)
14444 (uri (pypi-uri "velocyto" version))
14445 (sha256
14446 (base32
14447 "0fgygyzqgrq32dv6a00biq1p1cwi6kbl5iqblxq1kklj6b2mzmhs"))))
14448 (build-system python-build-system)
14449 (propagated-inputs
14450 `(("python-click" ,python-click)
14451 ("python-cython" ,python-cython)
14452 ("python-h5py" ,python-h5py)
14453 ("python-loompy" ,python-loompy)
14454 ("python-matplotlib" ,python-matplotlib)
14455 ("python-numba" ,python-numba)
14456 ("python-numpy" ,python-numpy)
14457 ("python-pandas" ,python-pandas)
14458 ("python-pysam" ,python-pysam)
14459 ("python-scikit-learn" ,python-scikit-learn)
14460 ("python-scipy" ,python-scipy)))
14461 (home-page "https://github.com/velocyto-team/velocyto.py")
14462 (synopsis "RNA velocity analysis for single cell RNA-seq data")
14463 (description
14464 "Velocyto is a library for the analysis of RNA velocity. Velocyto
14465includes a command line tool and an analysis pipeline.")
14466 (license license:bsd-2)))
19bd7f2e
RW
14467
14468(define-public arriba
14469 (package
14470 (name "arriba")
14471 (version "1.0.1")
14472 (source
14473 (origin
14474 (method url-fetch)
14475 (uri (string-append "https://github.com/suhrig/arriba/releases/"
14476 "download/v" version "/arriba_v" version ".tar.gz"))
14477 (sha256
14478 (base32
14479 "0jx9656ry766vb8z08m1c3im87b0c82qpnjby9wz4kcz8vn87dx2"))))
14480 (build-system gnu-build-system)
14481 (arguments
14482 `(#:tests? #f ; there are none
14483 #:phases
14484 (modify-phases %standard-phases
14485 (replace 'configure
14486 (lambda* (#:key inputs #:allow-other-keys)
14487 (let ((htslib (assoc-ref inputs "htslib")))
14488 (substitute* "Makefile"
14489 (("-I\\$\\(HTSLIB\\)/htslib")
14490 (string-append "-I" htslib "/include/htslib"))
14491 ((" \\$\\(HTSLIB\\)/libhts.a")
14492 (string-append " " htslib "/lib/libhts.so"))))
14493 (substitute* "run_arriba.sh"
14494 (("^STAR ") (string-append (which "STAR") " "))
14495 (("samtools --version-only")
14496 (string-append (which "samtools") " --version-only"))
14497 (("samtools index")
14498 (string-append (which "samtools") " index"))
14499 (("samtools sort")
14500 (string-append (which "samtools") " sort")))
14501 #t))
14502 (replace 'install
14503 (lambda* (#:key outputs #:allow-other-keys)
14504 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
14505 (install-file "arriba" bin)
14506 (install-file "run_arriba.sh" bin)
14507 (install-file "draw_fusions.R" bin)
14508 (wrap-program (string-append bin "/draw_fusions.R")
14509 `("R_LIBS_SITE" ":" prefix (,(getenv "R_LIBS_SITE")))))
14510 #t)))))
14511 (inputs
14512 `(("htslib" ,htslib)
14513 ("r-minimal" ,r-minimal)
14514 ("r-circlize" ,r-circlize)
14515 ("r-genomicalignments" ,r-genomicalignments)
14516 ("r-genomicranges" ,r-genomicranges)
14517 ("samtools" ,samtools)
14518 ("star" ,star)
14519 ("zlib" ,zlib)))
14520 (home-page "https://github.com/suhrig/arriba")
14521 (synopsis "Gene fusion detection from RNA-Seq data ")
14522 (description
14523 "Arriba is a command-line tool for the detection of gene fusions from
14524RNA-Seq data. It was developed for the use in a clinical research setting.
14525Therefore, short runtimes and high sensitivity were important design criteria.
14526It is based on the fast STAR aligner and the post-alignment runtime is
14527typically just around two minutes. In contrast to many other fusion detection
14528tools which build on STAR, Arriba does not require to reduce the
14529@code{alignIntronMax} parameter of STAR to detect small deletions.")
14530 ;; All code is under the Expat license with the exception of
14531 ;; "draw_fusions.R", which is under GPLv3.
14532 (license (list license:expat license:gpl3))))
35f9c662
RW
14533
14534(define-public adapterremoval
14535 (package
14536 (name "adapterremoval")
14537 (version "2.3.0")
14538 (source
14539 (origin
14540 (method git-fetch)
14541 (uri (git-reference
14542 (url "https://github.com/MikkelSchubert/adapterremoval.git")
14543 (commit (string-append "v" version))))
14544 (file-name (git-file-name name version))
14545 (sha256
14546 (base32
14547 "1nf3ki5pfzalhrx2fr1y6pfqfi133yj2m7q4fj9irf5fb94bapwr"))))
14548 (build-system gnu-build-system)
14549 (arguments
14550 `(#:make-flags (list "COLOR_BUILD=no"
14551 (string-append "PREFIX="
14552 (assoc-ref %outputs "out")))
14553 #:test-target "test"
14554 #:phases
14555 (modify-phases %standard-phases
14556 (delete 'configure))))
14557 (inputs
14558 `(("zlib" ,zlib)))
14559 (home-page "https://adapterremoval.readthedocs.io/")
14560 (synopsis "Rapid sequence adapter trimming, identification, and read merging")
14561 (description
14562 "This program searches for and removes remnant adapter sequences from
14563@dfn{High-Throughput Sequencing} (HTS) data and (optionally) trims low quality
14564bases from the 3' end of reads following adapter removal. AdapterRemoval can
14565analyze both single end and paired end data, and can be used to merge
14566overlapping paired-ended reads into (longer) consensus sequences.
14567Additionally, the AdapterRemoval may be used to recover a consensus adapter
14568sequence for paired-ended data, for which this information is not available.")
14569 (license license:gpl3+)))
36f4f1e2
RW
14570
14571(define-public pplacer
14572 (let ((commit "807f6f3"))
14573 (package
14574 (name "pplacer")
14575 ;; The commit should be updated with each version change.
14576 (version "1.1.alpha19")
14577 (source
14578 (origin
14579 (method git-fetch)
14580 (uri (git-reference
14581 (url "https://github.com/matsen/pplacer.git")
14582 (commit (string-append "v" version))))
14583 (file-name (git-file-name name version))
14584 (sha256
14585 (base32 "11ppbbbx20p2g9wj3ff64dhnarb12q79v7qh4rk0gj6lkbz4n7cn"))))
14586 (build-system ocaml-build-system)
14587 (arguments
14588 `(#:modules ((guix build ocaml-build-system)
14589 (guix build utils)
14590 (ice-9 ftw))
14591 #:phases
14592 (modify-phases %standard-phases
14593 (delete 'configure)
14594 (add-after 'unpack 'fix-build-with-latest-ocaml
14595 (lambda _
14596 (substitute* "myocamlbuild.ml"
14597 (("dep \\[\"c_pam\"\\]" m)
14598 (string-append "flag [\"ocaml\"; \"compile\"] (A \"-unsafe-string\");\n"
14599 m))
14600 (("let run_and_read" m)
14601 (string-append "
14602let split s ch =
14603 let x = ref [] in
14604 let rec go s =
14605 let pos = String.index s ch in
14606 x := (String.before s pos)::!x;
14607 go (String.after s (pos + 1))
14608 in
14609 try go s
14610 with Not_found -> !x
14611let split_nl s = split s '\\n'
14612let before_space s =
14613 try String.before s (String.index s ' ')
14614 with Not_found -> s
14615
14616" m))
14617 (("run_and_read \"ocamlfind list \\| cut -d' ' -f1\"" m)
14618 (string-append "List.map before_space (split_nl & " m ")"))
14619 ((" blank_sep_strings &") "")
14620 ((" Lexing.from_string &") ""))
14621 #t))
14622 (add-after 'unpack 'replace-bundled-cddlib
14623 (lambda* (#:key inputs #:allow-other-keys)
14624 (let* ((cddlib-src (assoc-ref inputs "cddlib-src"))
14625 (local-dir "cddlib_guix"))
14626 (mkdir local-dir)
14627 (with-directory-excursion local-dir
14628 (invoke "tar" "xvf" cddlib-src))
14629 (let ((cddlib-src-folder
14630 (string-append local-dir "/"
14631 (list-ref (scandir local-dir) 2)
14632 "/lib-src")))
14633 (for-each make-file-writable (find-files "cdd_src" ".*"))
14634 (for-each
14635 (lambda (file)
14636 (copy-file file
14637 (string-append "cdd_src/" (basename file))))
14638 (find-files cddlib-src-folder ".*[ch]$")))
14639 #t)))
14640 (add-after 'unpack 'fix-makefile
14641 (lambda _
14642 ;; Remove system calls to 'git'.
14643 (substitute* "Makefile"
14644 (("^DESCRIPT:=pplacer-.*")
14645 (string-append
14646 "DESCRIPT:=pplacer-$(shell uname)-v" ,version "\n")))
14647 (substitute* "myocamlbuild.ml"
14648 (("git describe --tags --long .*\\\" with")
14649 (string-append
14650 "echo -n v" ,version "-" ,commit "\" with")))
14651 #t))
14652 (replace 'install
14653 (lambda* (#:key outputs #:allow-other-keys)
14654 (let* ((out (assoc-ref outputs "out"))
14655 (bin (string-append out "/bin")))
14656 (copy-recursively "bin" bin))
14657 #t)))))
14658 (inputs
14659 `(("zlib" ,zlib "static")
14660 ("gsl" ,gsl)
14661 ("ocaml-ounit" ,ocaml-ounit)
14662 ("ocaml-batteries" ,ocaml-batteries)
14663 ("ocaml-camlzip" ,camlzip)
14664 ("ocaml-csv" ,ocaml-csv)
14665 ("ocaml-sqlite3" ,ocaml-sqlite3)
14666 ("ocaml-xmlm" ,ocaml-xmlm)
14667 ("ocaml-mcl" ,ocaml-mcl)
14668 ("ocaml-gsl" ,ocaml-gsl-1)))
14669 (native-inputs
14670 `(("cddlib-src" ,(package-source cddlib))
14671 ("ocamlbuild" ,ocamlbuild)
14672 ("pkg-config" ,pkg-config)))
14673 (propagated-inputs
14674 `(("pplacer-scripts" ,pplacer-scripts)))
14675 (synopsis "Phylogenetic placement of biological sequences")
14676 (description
14677 "Pplacer places query sequences on a fixed reference phylogenetic tree
14678to maximize phylogenetic likelihood or posterior probability according to a
14679reference alignment. Pplacer is designed to be fast, to give useful
14680information about uncertainty, and to offer advanced visualization and
14681downstream analysis.")
14682 (home-page "http://matsen.fhcrc.org/pplacer")
14683 (license license:gpl3))))
14684
14685;; This package is installed alongside 'pplacer'. It is a separate package so
14686;; that it can use the python-build-system for the scripts that are
14687;; distributed alongside the main OCaml binaries.
14688(define pplacer-scripts
14689 (package
14690 (inherit pplacer)
14691 (name "pplacer-scripts")
14692 (build-system python-build-system)
14693 (arguments
14694 `(#:python ,python-2
14695 #:phases
14696 (modify-phases %standard-phases
14697 (add-after 'unpack 'enter-scripts-dir
14698 (lambda _ (chdir "scripts") #t))
14699 (replace 'check
14700 (lambda _ (invoke "python" "-m" "unittest" "discover" "-v") #t))
14701 (add-after 'install 'wrap-executables
14702 (lambda* (#:key inputs outputs #:allow-other-keys)
14703 (let* ((out (assoc-ref outputs "out"))
14704 (bin (string-append out "/bin")))
14705 (let ((path (string-append
14706 (assoc-ref inputs "hmmer") "/bin:"
14707 (assoc-ref inputs "infernal") "/bin")))
14708 (display path)
14709 (wrap-program (string-append bin "/refpkg_align.py")
14710 `("PATH" ":" prefix (,path))))
14711 (let ((path (string-append
14712 (assoc-ref inputs "hmmer") "/bin")))
14713 (wrap-program (string-append bin "/hrefpkg_query.py")
14714 `("PATH" ":" prefix (,path)))))
14715 #t)))))
14716 (inputs
14717 `(("infernal" ,infernal)
14718 ("hmmer" ,hmmer)))
14719 (propagated-inputs
14720 `(("python-biopython" ,python2-biopython)
14721 ("taxtastic" ,taxtastic)))
14722 (synopsis "Pplacer Python scripts")))
c2f6f4e5
RW
14723
14724(define-public python2-checkm-genome
14725 (package
14726 (name "python2-checkm-genome")
14727 (version "1.0.13")
14728 (source
14729 (origin
14730 (method url-fetch)
14731 (uri (pypi-uri "checkm-genome" version))
14732 (sha256
14733 (base32
14734 "0bm8gpxjmzxsxxl8lzwqhgx8g1dlnmp6znz7wv3hgb0gdjbf9dzz"))))
14735 (build-system python-build-system)
14736 (arguments
14737 `(#:python ,python-2
14738 #:tests? #f)) ; some tests are interactive
14739 (propagated-inputs
14740 `(("python-dendropy" ,python2-dendropy)
14741 ("python-matplotlib" ,python2-matplotlib)
14742 ("python-numpy" ,python2-numpy)
14743 ("python-pysam" ,python2-pysam)
14744 ("python-scipy" ,python2-scipy)))
14745 (home-page "http://pypi.python.org/pypi/checkm/")
14746 (synopsis "Assess the quality of putative genome bins")
14747 (description
14748 "CheckM provides a set of tools for assessing the quality of genomes
14749recovered from isolates, single cells, or metagenomes. It provides robust
14750estimates of genome completeness and contamination by using collocated sets of
14751genes that are ubiquitous and single-copy within a phylogenetic lineage.
14752Assessment of genome quality can also be examined using plots depicting key
14753genomic characteristics (e.g., GC, coding density) which highlight sequences
14754outside the expected distributions of a typical genome. CheckM also provides
14755tools for identifying genome bins that are likely candidates for merging based
14756on marker set compatibility, similarity in genomic characteristics, and
14757proximity within a reference genome.")
14758 (license license:gpl3+)))
7f559045
RW
14759
14760(define-public umi-tools
14761 (package
14762 (name "umi-tools")
14763 (version "1.0.0")
14764 (source
14765 (origin
14766 (method url-fetch)
14767 (uri (pypi-uri "umi_tools" version))
14768 (sha256
14769 (base32
14770 "08y3vz1vcx09whmbsn722lcs6jl9wyrh9i4p3k8j4cb1i32bij4a"))))
14771 (build-system python-build-system)
14772 (inputs
14773 `(("python-setuptools" ,python-setuptools)
14774 ("python-pandas" ,python-pandas)
14775 ("python-future" ,python-future)
14776 ("python-scipy" ,python-scipy)
14777 ("python-matplotlib" ,python-matplotlib)
14778 ("python-regex" ,python-regex)
14779 ("python-pysam" ,python-pysam)))
14780 (native-inputs
14781 `(("python-setuptools" ,python-setuptools)
14782 ("python-cython" ,python-cython)))
14783 (home-page "https://github.com/CGATOxford/UMI-tools")
14784 (synopsis "Tools for analyzing unique modular identifiers")
14785 (description "This package provides tools for dealing with @dfn{Unique
14786Molecular Identifiers} (UMIs) and @dfn{Random Molecular Tags} (RMTs) in
14787genetic sequences. There are six tools: the @code{extract} and
14788@code{whitelist} commands are used to prepare a fastq containg UMIs @code{+/-}
14789cell barcodes for alignment. The remaining commands, @code{group},
14790@code{dedup}, and @{count}/@code{count_tab}, are used to identify PCR
14791duplicates using the UMIs and perform different levels of analysis depending
14792on the needs of the user.")
14793 (license license:expat)))