gnu: packages: Use 'search-patches' everywhere.
[jackhill/guix/guix.git] / gnu / packages / bioinformatics.scm
CommitLineData
4e10a221 1;;; GNU Guix --- Functional package management for GNU
0047d26a 2;;; Copyright © 2014, 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
9b9b7ffd 3;;; Copyright © 2015, 2016 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>
ddb83129 7;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
4e10a221
RW
8;;;
9;;; This file is part of GNU Guix.
10;;;
11;;; GNU Guix is free software; you can redistribute it and/or modify it
12;;; under the terms of the GNU General Public License as published by
13;;; the Free Software Foundation; either version 3 of the License, or (at
14;;; your option) any later version.
15;;;
16;;; GNU Guix is distributed in the hope that it will be useful, but
17;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;;; GNU General Public License for more details.
20;;;
21;;; You should have received a copy of the GNU General Public License
22;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23
24(define-module (gnu packages bioinformatics)
25 #:use-module ((guix licenses) #:prefix license:)
26 #:use-module (guix packages)
8e913213 27 #:use-module (guix utils)
4e10a221 28 #:use-module (guix download)
2c16316e 29 #:use-module (guix git-download)
10b4a969 30 #:use-module (guix build-system ant)
4e10a221 31 #:use-module (guix build-system gnu)
d7678942 32 #:use-module (guix build-system cmake)
365c8153 33 #:use-module (guix build-system perl)
8622a072 34 #:use-module (guix build-system python)
a5002ae7 35 #:use-module (guix build-system r)
9c38b540 36 #:use-module (guix build-system ruby)
d3517eda 37 #:use-module (guix build-system trivial)
4e10a221 38 #:use-module (gnu packages)
a2950fa4 39 #:use-module (gnu packages autotools)
684bf7c7 40 #:use-module (gnu packages algebra)
d3517eda 41 #:use-module (gnu packages base)
a0a71439 42 #:use-module (gnu packages bison)
e4e5a4d8 43 #:use-module (gnu packages boost)
4e10a221 44 #:use-module (gnu packages compression)
82c370de 45 #:use-module (gnu packages cpio)
1baee943 46 #:use-module (gnu packages curl)
736f9ffc 47 #:use-module (gnu packages doxygen)
d29150b5 48 #:use-module (gnu packages datastructures)
75dd2424 49 #:use-module (gnu packages file)
02f35bb5 50 #:use-module (gnu packages gawk)
2409f37f 51 #:use-module (gnu packages gcc)
15a3c3d4 52 #:use-module (gnu packages java)
51c64999 53 #:use-module (gnu packages linux)
36742f43 54 #:use-module (gnu packages machine-learning)
c833ab55 55 #:use-module (gnu packages maths)
6c2b26e2 56 #:use-module (gnu packages mpi)
4e10a221 57 #:use-module (gnu packages ncurses)
81f3e0c1 58 #:use-module (gnu packages pcre)
4e10a221
RW
59 #:use-module (gnu packages perl)
60 #:use-module (gnu packages pkg-config)
bfe3c685 61 #:use-module (gnu packages popt)
e4e5a4d8 62 #:use-module (gnu packages protobuf)
346a829a 63 #:use-module (gnu packages python)
9c38b540 64 #:use-module (gnu packages ruby)
c833ab55 65 #:use-module (gnu packages statistics)
d7678942 66 #:use-module (gnu packages tbb)
2127cedb 67 #:use-module (gnu packages textutils)
43c565d2 68 #:use-module (gnu packages time)
a2950fa4 69 #:use-module (gnu packages tls)
ce7155d5 70 #:use-module (gnu packages vim)
365c8153 71 #:use-module (gnu packages web)
c833ab55 72 #:use-module (gnu packages xml)
f7283db3
RW
73 #:use-module (gnu packages zip)
74 #:use-module (srfi srfi-1))
4e10a221 75
8dc797fa
BW
76(define-public aragorn
77 (package
78 (name "aragorn")
79 (version "1.2.36")
80 (source (origin
81 (method url-fetch)
82 (uri (string-append
83 "http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn"
84 version ".tgz"))
85 (sha256
86 (base32
87 "1dg7jlz1qpqy88igjxd6ncs11ccsirb36qv1z01a0np4i4jh61mb"))))
88 (build-system gnu-build-system)
89 (arguments
90 `(#:tests? #f ; there are no tests
91 #:phases
92 (modify-phases %standard-phases
93 (delete 'configure)
94 (replace 'build
95 (lambda _
96 (zero? (system* "gcc"
97 "-O3"
98 "-ffast-math"
99 "-finline-functions"
100 "-o"
101 "aragorn"
102 (string-append "aragorn" ,version ".c")))))
103 (replace 'install
104 (lambda* (#:key outputs #:allow-other-keys)
105 (let* ((out (assoc-ref outputs "out"))
106 (bin (string-append out "/bin"))
107 (man (string-append out "/share/man/man1")))
108 (mkdir-p bin)
109 (copy-file "aragorn"
110 (string-append bin "/aragorn"))
111 (mkdir-p man)
112 (copy-file "aragorn.1"
113 (string-append man "/aragorn.1")))
114 #t)))))
115 (home-page "http://mbio-serv2.mbioekol.lu.se/ARAGORN")
116 (synopsis "Detect tRNA, mtRNA and tmRNA genes in nucleotide sequences")
117 (description
118 "Aragorn identifies transfer RNA, mitochondrial RNA and
119transfer-messenger RNA from nucleotide sequences, based on homology to known
120tRNA consensus sequences and RNA structure. It also outputs the secondary
121structure of the predicted RNA.")
122 (license license:gpl2)))
123
9794180d
RW
124(define-public bamtools
125 (package
126 (name "bamtools")
127 (version "2.3.0")
128 (source (origin
129 (method url-fetch)
130 (uri (string-append
131 "https://github.com/pezmaster31/bamtools/archive/v"
132 version ".tar.gz"))
133 (file-name (string-append name "-" version ".tar.gz"))
134 (sha256
135 (base32
136 "1brry29bw2xr2l9pqn240rkqwayg85b8qq78zk2zs6nlspk4d018"))))
137 (build-system cmake-build-system)
4702cec2
RW
138 (arguments
139 `(#:tests? #f ;no "check" target
140 #:phases
141 (modify-phases %standard-phases
142 (add-before
143 'configure 'set-ldflags
144 (lambda* (#:key outputs #:allow-other-keys)
145 (setenv "LDFLAGS"
146 (string-append
147 "-Wl,-rpath="
148 (assoc-ref outputs "out") "/lib/bamtools")))))))
9794180d
RW
149 (inputs `(("zlib" ,zlib)))
150 (home-page "https://github.com/pezmaster31/bamtools")
151 (synopsis "C++ API and command-line toolkit for working with BAM data")
152 (description
153 "BamTools provides both a C++ API and a command-line toolkit for handling
154BAM files.")
155 (license license:expat)))
156
8dd4ff11
RW
157(define-public bedops
158 (package
159 (name "bedops")
1bbc3b1d 160 (version "2.4.14")
8dd4ff11
RW
161 (source (origin
162 (method url-fetch)
163 (uri (string-append "https://github.com/bedops/bedops/archive/v"
164 version ".tar.gz"))
f586c877 165 (file-name (string-append name "-" version ".tar.gz"))
8dd4ff11
RW
166 (sha256
167 (base32
1bbc3b1d 168 "1kqbac547wyqma81cyky9n7mkgikjpsfd3nnmcm6hpqwanqgh10v"))))
8dd4ff11
RW
169 (build-system gnu-build-system)
170 (arguments
171 '(#:tests? #f
172 #:make-flags (list (string-append "BINDIR=" %output "/bin"))
173 #:phases
174 (alist-cons-after
175 'unpack 'unpack-tarballs
176 (lambda _
177 ;; FIXME: Bedops includes tarballs of minimally patched upstream
178 ;; libraries jansson, zlib, and bzip2. We cannot just use stock
179 ;; libraries because at least one of the libraries (zlib) is
180 ;; patched to add a C++ function definition (deflateInit2cpp).
181 ;; Until the Bedops developers offer a way to link against system
182 ;; libraries we have to build the in-tree copies of these three
183 ;; libraries.
184
185 ;; See upstream discussion:
186 ;; https://github.com/bedops/bedops/issues/124
187
188 ;; Unpack the tarballs to benefit from shebang patching.
189 (with-directory-excursion "third-party"
190 (and (zero? (system* "tar" "xvf" "jansson-2.6.tar.bz2"))
191 (zero? (system* "tar" "xvf" "zlib-1.2.7.tar.bz2"))
192 (zero? (system* "tar" "xvf" "bzip2-1.0.6.tar.bz2"))))
193 ;; Disable unpacking of tarballs in Makefile.
194 (substitute* "system.mk/Makefile.linux"
195 (("^\tbzcat .*") "\t@echo \"not unpacking\"\n")
196 (("\\./configure") "CONFIG_SHELL=bash ./configure"))
197 (substitute* "third-party/zlib-1.2.7/Makefile.in"
198 (("^SHELL=.*$") "SHELL=bash\n")))
199 (alist-delete 'configure %standard-phases))))
200 (home-page "https://github.com/bedops/bedops")
201 (synopsis "Tools for high-performance genomic feature operations")
202 (description
203 "BEDOPS is a suite of tools to address common questions raised in genomic
204studies---mostly with regard to overlap and proximity relationships between
205data sets. It aims to be scalable and flexible, facilitating the efficient
206and accurate analysis and management of large-scale genomic data.
207
208BEDOPS provides tools that perform highly efficient and scalable Boolean and
209other set operations, statistical calculations, archiving, conversion and
210other management of genomic data of arbitrary scale. Tasks can be easily
211split by chromosome for distributing whole-genome analyses across a
212computational cluster.")
213 (license license:gpl2+)))
214
81de5647
RW
215(define-public bedtools
216 (package
217 (name "bedtools")
9b9b7ffd 218 (version "2.25.0")
81de5647
RW
219 (source (origin
220 (method url-fetch)
221 (uri (string-append "https://github.com/arq5x/bedtools2/archive/v"
222 version ".tar.gz"))
f586c877 223 (file-name (string-append name "-" version ".tar.gz"))
81de5647
RW
224 (sha256
225 (base32
9b9b7ffd 226 "1ywcy3yfwzhl905b51l0ffjia55h75vv3mw5xkvib04pp6pj548m"))))
81de5647
RW
227 (build-system gnu-build-system)
228 (native-inputs `(("python" ,python-2)))
229 (inputs `(("samtools" ,samtools)
230 ("zlib" ,zlib)))
231 (arguments
232 '(#:test-target "test"
233 #:phases
6573ac82 234 (modify-phases %standard-phases
6573ac82
BW
235 (delete 'configure)
236 (replace 'install
237 (lambda* (#:key outputs #:allow-other-keys)
238 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
239 (for-each (lambda (file)
240 (install-file file bin))
241 (find-files "bin" ".*")))
242 #t)))))
81de5647
RW
243 (home-page "https://github.com/arq5x/bedtools2")
244 (synopsis "Tools for genome analysis and arithmetic")
245 (description
246 "Collectively, the bedtools utilities are a swiss-army knife of tools for
247a wide-range of genomics analysis tasks. The most widely-used tools enable
248genome arithmetic: that is, set theory on the genome. For example, bedtools
249allows one to intersect, merge, count, complement, and shuffle genomic
250intervals from multiple files in widely-used genomic file formats such as BAM,
251BED, GFF/GTF, VCF.")
252 (license license:gpl2)))
253
a0a71439
RJ
254(define-public bioawk
255 (package
256 (name "bioawk")
257 (version "1.0")
258 (source (origin
259 (method url-fetch)
260 (uri (string-append "https://github.com/lh3/bioawk/archive/v"
261 version ".tar.gz"))
262 (file-name (string-append name "-" version ".tar.gz"))
263 (sha256
264 (base32 "1daizxsk17ahi9n58fj8vpgwyhzrzh54bzqhanjanp88kgrz7gjw"))))
265 (build-system gnu-build-system)
266 (inputs
267 `(("zlib" ,zlib)))
268 (native-inputs
269 `(("bison" ,bison)))
270 (arguments
271 `(#:tests? #f ; There are no tests to run.
272 ;; Bison must generate files, before other targets can build.
273 #:parallel-build? #f
274 #:phases
275 (modify-phases %standard-phases
276 (delete 'configure) ; There is no configure phase.
277 (replace 'install
278 (lambda* (#:key outputs #:allow-other-keys)
279 (let* ((out (assoc-ref outputs "out"))
280 (bin (string-append out "/bin"))
281 (man (string-append out "/share/man/man1")))
282 (mkdir-p man)
283 (copy-file "awk.1" (string-append man "/bioawk.1"))
284 (install-file "bioawk" bin)))))))
285 (home-page "https://github.com/lh3/bioawk")
286 (synopsis "AWK with bioinformatics extensions")
287 (description "Bioawk is an extension to Brian Kernighan's awk, adding the
288support of several common biological data formats, including optionally gzip'ed
289BED, GFF, SAM, VCF, FASTA/Q and TAB-delimited formats with column names. It
290also adds a few built-in functions and a command line option to use TAB as the
291input/output delimiter. When the new functionality is not used, bioawk is
292intended to behave exactly the same as the original BWK awk.")
293 (license license:x11)))
294
a2fb1492
RW
295(define-public python2-pybedtools
296 (package
297 (name "python2-pybedtools")
298 (version "0.6.9")
299 (source (origin
300 (method url-fetch)
301 (uri (string-append
302 "https://pypi.python.org/packages/source/p/pybedtools/pybedtools-"
303 version ".tar.gz"))
304 (sha256
305 (base32
306 "1ldzdxw1p4y3g2ignmggsdypvqkcwqwzhdha4rbgpih048z5p4an"))))
307 (build-system python-build-system)
308 (arguments `(#:python ,python-2)) ; no Python 3 support
309 (inputs
310 `(("python-cython" ,python2-cython)
311 ("python-matplotlib" ,python2-matplotlib)))
312 (propagated-inputs
313 `(("bedtools" ,bedtools)
314 ("samtools" ,samtools)))
315 (native-inputs
316 `(("python-pyyaml" ,python2-pyyaml)
317 ("python-nose" ,python2-nose)
318 ("python-setuptools" ,python2-setuptools)))
319 (home-page "https://pythonhosted.org/pybedtools/")
320 (synopsis "Python wrapper for BEDtools programs")
321 (description
322 "pybedtools is a Python wrapper for Aaron Quinlan's BEDtools programs,
323which are widely used for genomic interval manipulation or \"genome algebra\".
324pybedtools extends BEDTools by offering feature-level manipulations from with
325Python.")
326 (license license:gpl2+)))
327
f7283db3
RW
328(define-public bioperl-minimal
329 (let* ((inputs `(("perl-module-build" ,perl-module-build)
330 ("perl-data-stag" ,perl-data-stag)
331 ("perl-libwww" ,perl-libwww)
332 ("perl-uri" ,perl-uri)))
333 (transitive-inputs
334 (map (compose package-name cadr)
335 (delete-duplicates
336 (concatenate
337 (map (compose package-transitive-target-inputs cadr) inputs))))))
338 (package
339 (name "bioperl-minimal")
340 (version "1.6.924")
341 (source
342 (origin
343 (method url-fetch)
344 (uri (string-append "mirror://cpan/authors/id/C/CJ/CJFIELDS/BioPerl-"
345 version ".tar.gz"))
346 (sha256
347 (base32
348 "1l3npcvvvwjlhkna9dndpfv1hklhrgva013kw96m0n1wpd37ask1"))))
349 (build-system perl-build-system)
350 (arguments
351 `(#:phases
352 (modify-phases %standard-phases
353 (add-after
354 'install 'wrap-programs
355 (lambda* (#:key outputs #:allow-other-keys)
356 ;; Make sure all executables in "bin" find the required Perl
357 ;; modules at runtime. As the PERL5LIB variable contains also
358 ;; the paths of native inputs, we pick the transitive target
359 ;; inputs from %build-inputs.
360 (let* ((out (assoc-ref outputs "out"))
361 (bin (string-append out "/bin/"))
362 (path (string-join
363 (cons (string-append out "/lib/perl5/site_perl")
364 (map (lambda (name)
365 (assoc-ref %build-inputs name))
366 ',transitive-inputs))
367 ":")))
368 (for-each (lambda (file)
369 (wrap-program file
370 `("PERL5LIB" ":" prefix (,path))))
371 (find-files bin "\\.pl$"))
372 #t))))))
373 (inputs inputs)
374 (native-inputs
375 `(("perl-test-most" ,perl-test-most)))
376 (home-page "http://search.cpan.org/dist/BioPerl")
377 (synopsis "Bioinformatics toolkit")
378 (description
379 "BioPerl is the product of a community effort to produce Perl code which
380is useful in biology. Examples include Sequence objects, Alignment objects
381and database searching objects. These objects not only do what they are
382advertised to do in the documentation, but they also interact - Alignment
383objects are made from the Sequence objects, Sequence objects have access to
384Annotation and SeqFeature objects and databases, Blast objects can be
385converted to Alignment objects, and so on. This means that the objects
386provide a coordinated and extensible framework to do computational biology.")
387 (license (package-license perl)))))
388
85c37e29
RW
389(define-public python-biopython
390 (package
391 (name "python-biopython")
e815c094 392 (version "1.66")
85c37e29
RW
393 (source (origin
394 (method url-fetch)
e815c094
BW
395 ;; use PyPi rather than biopython.org to ease updating
396 (uri (pypi-uri "biopython" version))
85c37e29
RW
397 (sha256
398 (base32
e815c094 399 "1gdv92593klimg22icf5j9by7xiq86jnwzkpz4abaa05ylkdf6hp"))))
85c37e29
RW
400 (build-system python-build-system)
401 (inputs
402 `(("python-numpy" ,python-numpy)))
403 (native-inputs
404 `(("python-setuptools" ,python2-setuptools)))
405 (home-page "http://biopython.org/")
406 (synopsis "Tools for biological computation in Python")
407 (description
408 "Biopython is a set of tools for biological computation including parsers
409for bioinformatics files into Python data structures; interfaces to common
410bioinformatics programs; a standard sequence class and tools for performing
411common operations on them; code to perform data classification; code for
412dealing with alignments; code making it easy to split up parallelizable tasks
413into separate processes; and more.")
414 (license (license:non-copyleft "http://www.biopython.org/DIST/LICENSE"))))
415
416(define-public python2-biopython
417 (package (inherit (package-with-python2 python-biopython))
418 (inputs
419 `(("python2-numpy" ,python2-numpy)))))
420
82c370de
RW
421(define-public blast+
422 (package
423 (name "blast+")
424 (version "2.2.31")
425 (source (origin
426 (method url-fetch)
427 (uri (string-append
428 "ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/"
429 version "/ncbi-blast-" version "+-src.tar.gz"))
430 (sha256
431 (base32
432 "19gq6as4k1jrgsd26158ads6h7v4jca3h4r5dzg1y0m6ya50x5ph"))
433 (modules '((guix build utils)))
434 (snippet
435 '(begin
436 ;; Remove bundled bzip2 and zlib
437 (delete-file-recursively "c++/src/util/compress/bzip2")
438 (delete-file-recursively "c++/src/util/compress/zlib")
439 (substitute* "c++/src/util/compress/Makefile.in"
440 (("bzip2 zlib api") "api"))
441 ;; Remove useless msbuild directory
442 (delete-file-recursively
443 "c++/src/build-system/project_tree_builder/msbuild")
444 #t))))
445 (build-system gnu-build-system)
446 (arguments
447 `(;; There are three(!) tests for this massive library, and all fail with
448 ;; "unparsable timing stats".
449 ;; ERR [127] -- [util/regexp] test_pcre.sh (unparsable timing stats)
450 ;; ERR [127] -- [serial/datatool] datatool.sh (unparsable timing stats)
451 ;; ERR [127] -- [serial/datatool] datatool_xml.sh (unparsable timing stats)
452 #:tests? #f
453 #:out-of-source? #t
454 #:parallel-build? #f ; not supported
455 #:phases
456 (modify-phases %standard-phases
457 (add-before
458 'configure 'set-HOME
459 ;; $HOME needs to be set at some point during the configure phase
460 (lambda _ (setenv "HOME" "/tmp") #t))
461 (add-after
462 'unpack 'enter-dir
463 (lambda _ (chdir "c++") #t))
464 (add-after
465 'enter-dir 'fix-build-system
466 (lambda _
467 (define (which* cmd)
468 (cond ((string=? cmd "date")
469 ;; make call to "date" deterministic
470 "date -d @0")
471 ((which cmd)
472 => identity)
473 (else
474 (format (current-error-port)
475 "WARNING: Unable to find absolute path for ~s~%"
476 cmd)
477 #f)))
478
479 ;; Rewrite hardcoded paths to various tools
480 (substitute* (append '("src/build-system/configure.ac"
481 "src/build-system/configure"
482 "scripts/common/impl/if_diff.sh"
483 "scripts/common/impl/run_with_lock.sh"
484 "src/build-system/Makefile.configurables.real"
485 "src/build-system/Makefile.in.top"
486 "src/build-system/Makefile.meta.gmake=no"
487 "src/build-system/Makefile.meta.in"
488 "src/build-system/Makefile.meta_l"
489 "src/build-system/Makefile.meta_p"
490 "src/build-system/Makefile.meta_r"
491 "src/build-system/Makefile.mk.in"
492 "src/build-system/Makefile.requirements"
493 "src/build-system/Makefile.rules_with_autodep.in")
494 (find-files "scripts/common/check" "\\.sh$"))
495 (("(/usr/bin/|/bin/)([a-z][-_.a-z]*)" all dir cmd)
496 (or (which* cmd) all)))
497
498 (substitute* (find-files "src/build-system" "^config.*")
499 (("LN_S=/bin/\\$LN_S") (string-append "LN_S=" (which "ln")))
500 (("^PATH=.*") ""))
501
502 ;; rewrite "/var/tmp" in check script
503 (substitute* "scripts/common/check/check_make_unix.sh"
504 (("/var/tmp") "/tmp"))
505
506 ;; do not reset PATH
507 (substitute* (find-files "scripts/common/impl/" "\\.sh$")
508 (("^ *PATH=.*") "")
509 (("action=/bin/") "action=")
510 (("export PATH") ":"))
511 #t))
512 (replace
513 'configure
514 (lambda* (#:key inputs outputs #:allow-other-keys)
515 (let ((out (assoc-ref outputs "out"))
516 (lib (string-append (assoc-ref outputs "lib") "/lib"))
517 (include (string-append (assoc-ref outputs "include")
518 "/include/ncbi-tools++")))
519 ;; The 'configure' script doesn't recognize things like
520 ;; '--enable-fast-install'.
521 (zero? (system* "./configure.orig"
522 (string-append "--with-build-root=" (getcwd) "/build")
523 (string-append "--prefix=" out)
524 (string-append "--libdir=" lib)
525 (string-append "--includedir=" include)
526 (string-append "--with-bz2="
527 (assoc-ref inputs "bzip2"))
528 (string-append "--with-z="
529 (assoc-ref inputs "zlib"))
530 ;; Each library is built twice by default, once
531 ;; with "-static" in its name, and again
532 ;; without.
533 "--without-static"
534 "--with-dll"))))))))
535 (outputs '("out" ; 19 MB
536 "lib" ; 203 MB
537 "include")) ; 32 MB
538 (inputs
539 `(("bzip2" ,bzip2)
540 ("zlib" ,zlib)))
541 (native-inputs
542 `(("cpio" ,cpio)))
543 (home-page "http://blast.ncbi.nlm.nih.gov")
544 (synopsis "Basic local alignment search tool")
545 (description
546 "BLAST is a popular method of performing a DNA or protein sequence
547similarity search, using heuristics to produce results quickly. It also
548calculates an “expect value” that estimates how many matches would have
549occurred at a given score by chance, which can aid a user in judging how much
550confidence to have in an alignment.")
551 ;; Most of the sources are in the public domain, with the following
552 ;; exceptions:
553 ;; * Expat:
554 ;; * ./c++/include/util/bitset/
555 ;; * ./c++/src/html/ncbi_menu*.js
556 ;; * Boost license:
557 ;; * ./c++/include/util/impl/floating_point_comparison.hpp
558 ;; * LGPL 2+:
559 ;; * ./c++/include/dbapi/driver/odbc/unix_odbc/
560 ;; * ASL 2.0:
561 ;; * ./c++/src/corelib/teamcity_*
562 (license (list license:public-domain
563 license:expat
564 license:boost1.0
565 license:lgpl2.0+
566 license:asl2.0))))
567
6c2b26e2
RW
568(define-public bless
569 (package
570 (name "bless")
571 (version "1p02")
572 (source (origin
573 (method url-fetch)
574 (uri (string-append "mirror://sourceforge/bless-ec/bless.v"
575 version ".tgz"))
576 (sha256
577 (base32
4d75e03a
RW
578 "0rm0gw2s18dqwzzpl3c2x1z05ni2v0xz5dmfk3d33j6g4cgrlrdd"))
579 (modules '((guix build utils)))
6c2b26e2
RW
580 (snippet
581 `(begin
582 ;; Remove bundled boost, pigz, zlib, and .git directory
953c1223
RW
583 ;; FIXME: also remove bundled sources for murmurhash3 and
584 ;; kmc once packaged.
6c2b26e2
RW
585 (delete-file-recursively "boost")
586 (delete-file-recursively "pigz")
953c1223 587 (delete-file-recursively "google-sparsehash")
6c2b26e2
RW
588 (delete-file-recursively "zlib")
589 (delete-file-recursively ".git")
590 #t))))
591 (build-system gnu-build-system)
592 (arguments
593 '(#:tests? #f ;no "check" target
594 #:make-flags
595 (list (string-append "ZLIB="
596 (assoc-ref %build-inputs "zlib")
597 "/lib/libz.a")
598 (string-append "LDFLAGS="
599 (string-join '("-lboost_filesystem"
600 "-lboost_system"
601 "-lboost_iostreams"
602 "-lz"
603 "-fopenmp"
604 "-std=c++11"))))
605 #:phases
606 (modify-phases %standard-phases
607 (add-after 'unpack 'do-not-build-bundled-pigz
608 (lambda* (#:key inputs outputs #:allow-other-keys)
609 (substitute* "Makefile"
610 (("cd pigz/pigz-2.3.3; make") ""))
611 #t))
612 (add-after 'unpack 'patch-paths-to-executables
613 (lambda* (#:key inputs outputs #:allow-other-keys)
614 (substitute* "parse_args.cpp"
615 (("kmc_binary = .*")
616 (string-append "kmc_binary = \""
617 (assoc-ref outputs "out")
618 "/bin/kmc\";"))
619 (("pigz_binary = .*")
620 (string-append "pigz_binary = \""
621 (assoc-ref inputs "pigz")
622 "/bin/pigz\";")))
623 #t))
624 (replace 'install
625 (lambda* (#:key outputs #:allow-other-keys)
626 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
627 (for-each (lambda (file)
628 (install-file file bin))
629 '("bless" "kmc/bin/kmc"))
630 #t)))
631 (delete 'configure))))
632 (native-inputs
633 `(("perl" ,perl)))
634 (inputs
635 `(("openmpi" ,openmpi)
636 ("boost" ,boost)
953c1223 637 ("sparsehash" ,sparsehash)
6c2b26e2
RW
638 ("pigz" ,pigz)
639 ("zlib" ,zlib)))
9641a899 640 (supported-systems '("x86_64-linux"))
4d75e03a 641 (home-page "http://sourceforge.net/p/bless-ec/wiki/Home/")
6c2b26e2
RW
642 (synopsis "Bloom-filter-based error correction tool for NGS reads")
643 (description
644 "@dfn{Bloom-filter-based error correction solution for high-throughput
645sequencing reads} (BLESS) uses a single minimum-sized bloom filter is a
646correction tool for genomic reads produced by @dfn{Next-generation
647sequencing} (NGS). BLESS produces accurate correction results with much less
648memory compared with previous solutions and is also able to tolerate a higher
649false-positive rate. BLESS can extend reads like DNA assemblers to correct
650errors at the end of reads.")
651 (license license:gpl3+)))
652
2c7ee167
RW
653(define-public bowtie
654 (package
655 (name "bowtie")
0047d26a 656 (version "2.2.6")
2c7ee167
RW
657 (source (origin
658 (method url-fetch)
659 (uri (string-append "https://github.com/BenLangmead/bowtie2/archive/v"
660 version ".tar.gz"))
f586c877 661 (file-name (string-append name "-" version ".tar.gz"))
2c7ee167
RW
662 (sha256
663 (base32
0047d26a 664 "1ssfvymxfrap6f9pf86s9bvsbqdgka4abr2r7j3mgr4w1l289m86"))
2c7ee167
RW
665 (modules '((guix build utils)))
666 (snippet
667 '(substitute* "Makefile"
2c7ee167
RW
668 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
669 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
0047d26a 670 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\"")))))
2c7ee167
RW
671 (build-system gnu-build-system)
672 (inputs `(("perl" ,perl)
673 ("perl-clone" ,perl-clone)
674 ("perl-test-deep" ,perl-test-deep)
675 ("perl-test-simple" ,perl-test-simple)
0047d26a
RW
676 ("python" ,python-2)
677 ("tbb" ,tbb)))
2c7ee167 678 (arguments
0047d26a
RW
679 '(#:make-flags
680 (list "allall"
681 "WITH_TBB=1"
682 (string-append "prefix=" (assoc-ref %outputs "out")))
2c7ee167
RW
683 #:phases
684 (alist-delete
685 'configure
686 (alist-replace
0047d26a 687 'check
2c7ee167 688 (lambda* (#:key outputs #:allow-other-keys)
0047d26a
RW
689 (system* "perl"
690 "scripts/test/simple_tests.pl"
691 "--bowtie2=./bowtie2"
692 "--bowtie2-build=./bowtie2-build"))
693 %standard-phases))))
2c7ee167
RW
694 (home-page "http://bowtie-bio.sourceforge.net/bowtie2/index.shtml")
695 (synopsis "Fast and sensitive nucleotide sequence read aligner")
696 (description
697 "Bowtie 2 is a fast and memory-efficient tool for aligning sequencing
698reads to long reference sequences. It is particularly good at aligning reads
699of about 50 up to 100s or 1,000s of characters, and particularly good at
700aligning to relatively long (e.g. mammalian) genomes. Bowtie 2 indexes the
701genome with an FM Index to keep its memory footprint small: for the human
702genome, its memory footprint is typically around 3.2 GB. Bowtie 2 supports
703gapped, local, and paired-end alignment modes.")
241e1221 704 (supported-systems '("x86_64-linux"))
2c7ee167
RW
705 (license license:gpl3+)))
706
94ce537e
RW
707(define-public tophat
708 (package
709 (name "tophat")
710 (version "2.1.0")
711 (source (origin
712 (method url-fetch)
713 (uri (string-append
714 "http://ccb.jhu.edu/software/tophat/downloads/tophat-"
715 version ".tar.gz"))
716 (sha256
717 (base32
718 "168zlzykq622zbgkh90a90f1bdgsxkscq2zxzbj8brq80hbjpyp7"))
fc1adab1 719 (patches (search-patches "tophat-build-with-later-seqan.patch"))
94ce537e
RW
720 (modules '((guix build utils)))
721 (snippet
722 '(begin
723 ;; Remove bundled SeqAn and samtools
724 (delete-file-recursively "src/SeqAn-1.3")
725 (delete-file-recursively "src/samtools-0.1.18")
726 #t))))
727 (build-system gnu-build-system)
728 (arguments
729 '(#:parallel-build? #f ; not supported
730 #:phases
731 (modify-phases %standard-phases
732 (add-after 'unpack 'use-system-samtools
733 (lambda* (#:key inputs #:allow-other-keys)
734 (substitute* "src/Makefile.in"
735 (("(noinst_LIBRARIES = )\\$\\(SAMLIB\\)" _ prefix) prefix)
736 (("\\$\\(SAMPROG\\): \\$\\(SAMLIB\\)") "")
737 (("SAMPROG = samtools_0\\.1\\.18") "")
738 (("\\$\\(samtools_0_1_18_SOURCES\\)") "")
739 (("am__EXEEXT_1 = samtools_0\\.1\\.18\\$\\(EXEEXT\\)") ""))
740 (substitute* '("src/common.cpp"
741 "src/tophat.py")
742 (("samtools_0.1.18") (which "samtools")))
743 (substitute* '("src/common.h"
744 "src/bam2fastx.cpp")
745 (("#include \"bam.h\"") "#include <samtools/bam.h>")
746 (("#include \"sam.h\"") "#include <samtools/sam.h>"))
747 (substitute* '("src/bwt_map.h"
748 "src/map2gtf.h"
749 "src/align_status.h")
750 (("#include <bam.h>") "#include <samtools/bam.h>")
751 (("#include <sam.h>") "#include <samtools/sam.h>"))
752 #t)))))
753 (inputs
754 `(("boost" ,boost)
755 ("bowtie" ,bowtie)
756 ("samtools" ,samtools-0.1)
757 ("ncurses" ,ncurses)
758 ("python" ,python-2)
759 ("perl" ,perl)
760 ("zlib" ,zlib)
761 ("seqan" ,seqan)))
762 (home-page "http://ccb.jhu.edu/software/tophat/index.shtml")
763 (synopsis "Spliced read mapper for RNA-Seq data")
764 (description
765 "TopHat is a fast splice junction mapper for nucleotide sequence
766reads produced by the RNA-Seq method. It aligns RNA-Seq reads to
767mammalian-sized genomes using the ultra high-throughput short read
768aligner Bowtie, and then analyzes the mapping results to identify
769splice junctions between exons.")
770 ;; TopHat is released under the Boost Software License, Version 1.0
771 ;; See https://github.com/infphilo/tophat/issues/11#issuecomment-121589893
772 (license license:boost1.0)))
773
9a8336d8
RW
774(define-public bwa
775 (package
776 (name "bwa")
777 (version "0.7.12")
778 (source (origin
779 (method url-fetch)
780 (uri (string-append "mirror://sourceforge/bio-bwa/bwa-"
781 version ".tar.bz2"))
782 (sha256
783 (base32
784 "1330dpqncv0px3pbhjzz1gwgg39kkcv2r9qp2xs0sixf8z8wl7bh"))))
785 (build-system gnu-build-system)
786 (arguments
787 '(#:tests? #f ;no "check" target
788 #:phases
789 (alist-replace
790 'install
791 (lambda* (#:key outputs #:allow-other-keys)
792 (let ((bin (string-append
793 (assoc-ref outputs "out") "/bin"))
794 (doc (string-append
795 (assoc-ref outputs "out") "/share/doc/bwa"))
796 (man (string-append
797 (assoc-ref outputs "out") "/share/man/man1")))
798 (mkdir-p bin)
799 (mkdir-p doc)
800 (mkdir-p man)
96c46210
LC
801 (install-file "bwa" bin)
802 (install-file "README.md" doc)
803 (install-file "bwa.1" man)))
9a8336d8
RW
804 ;; no "configure" script
805 (alist-delete 'configure %standard-phases))))
806 (inputs `(("zlib" ,zlib)))
db94f8c7
RW
807 ;; Non-portable SSE instructions are used so building fails on platforms
808 ;; other than x86_64.
809 (supported-systems '("x86_64-linux"))
9a8336d8
RW
810 (home-page "http://bio-bwa.sourceforge.net/")
811 (synopsis "Burrows-Wheeler sequence aligner")
812 (description
813 "BWA is a software package for mapping low-divergent sequences against a
814large reference genome, such as the human genome. It consists of three
815algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is
816designed for Illumina sequence reads up to 100bp, while the rest two for
817longer sequences ranged from 70bp to 1Mbp. BWA-MEM and BWA-SW share similar
818features such as long-read support and split alignment, but BWA-MEM, which is
819the latest, is generally recommended for high-quality queries as it is faster
820and more accurate. BWA-MEM also has better performance than BWA-backtrack for
82170-100bp Illumina reads.")
822 (license license:gpl3+)))
823
d29150b5
RW
824(define-public bwa-pssm
825 (package (inherit bwa)
826 (name "bwa-pssm")
827 (version "0.5.11")
828 (source (origin
829 (method url-fetch)
830 (uri (string-append "https://github.com/pkerpedjiev/bwa-pssm/"
831 "archive/" version ".tar.gz"))
832 (file-name (string-append name "-" version ".tar.gz"))
833 (sha256
834 (base32
835 "02p7mpbs4mlxmn84g2x4ghak638vbj4lqix2ipx5g84pz9bhdavg"))))
836 (build-system gnu-build-system)
837 (inputs
838 `(("gdsl" ,gdsl)
839 ("zlib" ,zlib)
840 ("perl" ,perl)))
841 (home-page "http://bwa-pssm.binf.ku.dk/")
842 (synopsis "Burrows-Wheeler transform-based probabilistic short read mapper")
843 (description
844 "BWA-PSSM is a probabilistic short genomic sequence read aligner based on
845the use of @dfn{position specific scoring matrices} (PSSM). Like many of the
846existing aligners it is fast and sensitive. Unlike most other aligners,
847however, it is also adaptible in the sense that one can direct the alignment
848based on known biases within the data set. It is coded as a modification of
849the original BWA alignment program and shares the genome index structure as
850well as many of the command line options.")
851 (license license:gpl3+)))
852
ad641d53
RW
853(define-public python2-bx-python
854 (package
855 (name "python2-bx-python")
856 (version "0.7.2")
857 (source (origin
858 (method url-fetch)
859 (uri (string-append
860 "https://pypi.python.org/packages/source/b/bx-python/bx-python-"
861 version ".tar.gz"))
862 (sha256
863 (base32
864 "0ld49idhc5zjdvbhvjq1a2qmpjj7h5v58rqr25dzmfq7g34b50xh"))
865 (modules '((guix build utils)))
866 (snippet
867 '(substitute* "setup.py"
868 ;; remove dependency on outdated "distribute" module
869 (("^from distribute_setup import use_setuptools") "")
870 (("^use_setuptools\\(\\)") "")))))
871 (build-system python-build-system)
872 (arguments
873 `(#:tests? #f ;tests fail because test data are not included
874 #:python ,python-2))
875 (inputs
876 `(("python-numpy" ,python2-numpy)
877 ("zlib" ,zlib)))
878 (native-inputs
879 `(("python-nose" ,python2-nose)
880 ("python-setuptools" ,python2-setuptools)))
881 (home-page "http://bitbucket.org/james_taylor/bx-python/")
882 (synopsis "Tools for manipulating biological data")
883 (description
884 "bx-python provides tools for manipulating biological data, particularly
885multiple sequence alignments.")
886 (license license:expat)))
887
55a9a8c2
RW
888(define-public python-pysam
889 (package
890 (name "python-pysam")
d454640c
RW
891 (version "0.8.4")
892 (source (origin
893 (method url-fetch)
894 (uri (pypi-uri "pysam" version))
895 (sha256
896 (base32
897 "1slx5mb94mzm5qzk52q270sab0sar95j67w1g1k452nz3s9j7krh"))))
55a9a8c2
RW
898 (build-system python-build-system)
899 (arguments
900 `(#:tests? #f ; tests are excluded in the manifest
901 #:phases
902 (alist-cons-before
903 'build 'set-flags
904 (lambda _
905 (setenv "LDFLAGS" "-lncurses")
906 (setenv "CFLAGS" "-D_CURSES_LIB=1"))
907 %standard-phases)))
908 (inputs
649e9b3b 909 `(("ncurses" ,ncurses)
55a9a8c2 910 ("zlib" ,zlib)))
649e9b3b
RW
911 (native-inputs
912 `(("python-cython" ,python-cython)
913 ("python-setuptools" ,python-setuptools)))
55a9a8c2
RW
914 (home-page "https://github.com/pysam-developers/pysam")
915 (synopsis "Python bindings to the SAMtools C API")
916 (description
917 "Pysam is a Python module for reading and manipulating files in the
918SAM/BAM format. Pysam is a lightweight wrapper of the SAMtools C API. It
919also includes an interface for tabix.")
920 (license license:expat)))
921
922(define-public python2-pysam
923 (package-with-python2 python-pysam))
924
6c1305f9
RW
925(define-public cd-hit
926 (package
927 (name "cd-hit")
928 (version "4.6.5")
929 (source (origin
930 (method url-fetch)
931 (uri (string-append "https://github.com/weizhongli/cdhit"
932 "/releases/download/V" version
933 "/cd-hit-v" version "-2016-0304.tar.gz"))
934 (sha256
935 (base32
936 "15db0hq38yyifwqx9b6l34z14jcq576dmjavhj8a426c18lvnhp3"))))
937 (build-system gnu-build-system)
938 (arguments
939 `(#:tests? #f ; there are no tests
940 #:make-flags
941 ;; Executables are copied directly to the PREFIX.
942 (list (string-append "PREFIX=" (assoc-ref %outputs "out") "/bin"))
943 #:phases
944 (modify-phases %standard-phases
945 ;; No "configure" script
946 (delete 'configure)
947 ;; Remove sources of non-determinism
948 (add-after 'unpack 'be-timeless
949 (lambda _
950 (substitute* "cdhit-utility.c++"
951 ((" \\(built on \" __DATE__ \"\\)") ""))
952 (substitute* "cdhit-common.c++"
953 (("__DATE__") "\"0\"")
954 (("\", %s, \" __TIME__ \"\\\\n\", date") ""))
955 #t))
956 ;; The "install" target does not create the target directory
957 (add-before 'install 'create-target-dir
958 (lambda* (#:key outputs #:allow-other-keys)
959 (mkdir-p (string-append (assoc-ref outputs "out") "/bin"))
960 #t)))))
961 (inputs
962 `(("perl" ,perl)))
963 (home-page "http://weizhongli-lab.org/cd-hit/")
964 (synopsis "Cluster and compare protein or nucleotide sequences")
965 (description
966 "CD-HIT is a program for clustering and comparing protein or nucleotide
967sequences. CD-HIT is designed to be fast and handle extremely large
968databases.")
969 ;; The manual says: "It can be copied under the GNU General Public License
970 ;; version 2 (GPLv2)."
971 (license license:gpl2)))
972
810cff85
RW
973(define-public clipper
974 (package
975 (name "clipper")
976 (version "0.3.0")
977 (source (origin
978 (method url-fetch)
979 (uri (string-append
980 "https://github.com/YeoLab/clipper/archive/"
981 version ".tar.gz"))
9ab5ea44 982 (file-name (string-append name "-" version ".tar.gz"))
810cff85
RW
983 (sha256
984 (base32
985 "1q7jpimsqln7ic44i8v2rx2haj5wvik8hc1s2syd31zcn0xk1iyq"))
986 (modules '((guix build utils)))
987 (snippet
988 ;; remove unnecessary setup dependency
989 '(substitute* "setup.py"
990 (("setup_requires = .*") "")))))
991 (build-system python-build-system)
992 (arguments `(#:python ,python-2)) ; only Python 2 is supported
993 (inputs
994 `(("htseq" ,htseq)
995 ("python-pybedtools" ,python2-pybedtools)
996 ("python-cython" ,python2-cython)
997 ("python-scikit-learn" ,python2-scikit-learn)
998 ("python-matplotlib" ,python2-matplotlib)
999 ("python-pysam" ,python2-pysam)
1000 ("python-numpy" ,python2-numpy)
1001 ("python-scipy" ,python2-scipy)))
1002 (native-inputs
1003 `(("python-mock" ,python2-mock) ; for tests
1004 ("python-pytz" ,python2-pytz) ; for tests
1005 ("python-setuptools" ,python2-setuptools)))
1006 (home-page "https://github.com/YeoLab/clipper")
1007 (synopsis "CLIP peak enrichment recognition")
1008 (description
1009 "CLIPper is a tool to define peaks in CLIP-seq datasets.")
1010 (license license:gpl2)))
1011
6a35566d
RS
1012(define-public codingquarry
1013 (package
1014 (name "codingquarry")
1015 (version "2.0")
1016 (source (origin
1017 (method url-fetch)
1018 (uri (string-append
1019 "mirror://sourceforge/codingquarry/CodingQuarry_v"
1020 version ".tar.gz"))
1021 (sha256
1022 (base32
1023 "0115hkjflsnfzn36xppwf9h9avfxlavr43djqmshkkzbgjzsz60i"))))
1024 (build-system gnu-build-system)
1025 (arguments
1026 '(#:tests? #f ; no "check" target
1027 #:phases
1028 (modify-phases %standard-phases
1029 (delete 'configure)
1030 (replace 'install
1031 (lambda* (#:key outputs #:allow-other-keys)
1032 (let* ((out (assoc-ref outputs "out"))
1033 (bin (string-append out "/bin"))
1034 (doc (string-append out "/share/doc/codingquarry")))
1035 (install-file "INSTRUCTIONS.pdf" doc)
1036 (copy-recursively "QuarryFiles"
1037 (string-append out "/QuarryFiles"))
1038 (install-file "CodingQuarry" bin)
1039 (install-file "CufflinksGTF_to_CodingQuarryGFF3.py" bin)))))))
1040 (inputs `(("openmpi" ,openmpi)))
1041 (native-search-paths
1042 (list (search-path-specification
1043 (variable "QUARRY_PATH")
1044 (files '("QuarryFiles")))))
1045 (native-inputs `(("python" ,python-2))) ; Only Python 2 is supported
1046 (synopsis "Fungal gene predictor")
1047 (description "CodingQuarry is a highly accurate, self-training GHMM fungal
1048gene predictor designed to work with assembled, aligned RNA-seq transcripts.")
1049 (home-page "https://sourceforge.net/projects/codingquarry/")
1050 (license license:gpl3+)))
1051
36742f43
RW
1052(define-public couger
1053 (package
1054 (name "couger")
1055 (version "1.8.2")
1056 (source (origin
1057 (method url-fetch)
1058 (uri (string-append
1059 "http://couger.oit.duke.edu/static/assets/COUGER"
1060 version ".zip"))
1061 (sha256
1062 (base32
1063 "04p2b14nmhzxw5h72mpzdhalv21bx4w9b87z0wpw0xzxpysyncmq"))))
1064 (build-system gnu-build-system)
1065 (arguments
1066 `(#:tests? #f
1067 #:phases
1068 (modify-phases %standard-phases
1069 (delete 'configure)
1070 (delete 'build)
1071 (replace
1072 'install
1073 (lambda* (#:key outputs #:allow-other-keys)
1074 (let ((out (assoc-ref outputs "out")))
1075 (copy-recursively "src" (string-append out "/src"))
1076 (mkdir (string-append out "/bin"))
1077 ;; Add "src" directory to module lookup path.
1078 (substitute* "couger"
1079 (("from argparse")
1080 (string-append "import sys\nsys.path.append(\""
1081 out "\")\nfrom argparse")))
1082 (copy-file "couger" (string-append out "/bin/couger")))
1083 #t))
1084 (add-after
1085 'install 'wrap-program
1086 (lambda* (#:key inputs outputs #:allow-other-keys)
1087 ;; Make sure 'couger' runs with the correct PYTHONPATH.
1088 (let* ((out (assoc-ref outputs "out"))
1089 (path (getenv "PYTHONPATH")))
1090 (wrap-program (string-append out "/bin/couger")
1091 `("PYTHONPATH" ":" prefix (,path))))
1092 #t)))))
1093 (inputs
1094 `(("python" ,python-2)
1095 ("python2-pillow" ,python2-pillow)
1096 ("python2-numpy" ,python2-numpy)
1097 ("python2-scipy" ,python2-scipy)
1098 ("python2-matplotlib" ,python2-matplotlib)))
1099 (propagated-inputs
1100 `(("r" ,r)
1101 ("libsvm" ,libsvm)
1102 ("randomjungle" ,randomjungle)))
1103 (native-inputs
1104 `(("unzip" ,unzip)))
1105 (home-page "http://couger.oit.duke.edu")
1106 (synopsis "Identify co-factors in sets of genomic regions")
1107 (description
1108 "COUGER can be applied to any two sets of genomic regions bound by
1109paralogous TFs (e.g., regions derived from ChIP-seq experiments) to identify
1110putative co-factors that provide specificity to each TF. The framework
1111determines the genomic targets uniquely-bound by each TF, and identifies a
1112small set of co-factors that best explain the in vivo binding differences
1113between the two TFs.
1114
1115COUGER uses classification algorithms (support vector machines and random
1116forests) with features that reflect the DNA binding specificities of putative
1117co-factors. The features are generated either from high-throughput TF-DNA
1118binding data (from protein binding microarray experiments), or from large
1119collections of DNA motifs.")
1120 (license license:gpl3+)))
1121
bfe3c685
RW
1122(define-public clustal-omega
1123 (package
1124 (name "clustal-omega")
1125 (version "1.2.1")
1126 (source (origin
1127 (method url-fetch)
1128 (uri (string-append
1129 "http://www.clustal.org/omega/clustal-omega-"
1130 version ".tar.gz"))
1131 (sha256
1132 (base32
1133 "02ibkx0m0iwz8nscg998bh41gg251y56cgh86bvyrii5m8kjgwqf"))))
1134 (build-system gnu-build-system)
1135 (inputs
1136 `(("argtable" ,argtable)))
1137 (home-page "http://www.clustal.org/omega/")
1138 (synopsis "Multiple sequence aligner for protein and DNA/RNA")
1139 (description
1140 "Clustal-Omega is a general purpose multiple sequence alignment (MSA)
1141program for protein and DNA/RNA. It produces high quality MSAs and is capable
1142of handling data-sets of hundreds of thousands of sequences in reasonable
1143time.")
1144 (license license:gpl2+)))
1145
191c7101
RW
1146(define-public crossmap
1147 (package
1148 (name "crossmap")
61d5fd03 1149 (version "0.2.1")
191c7101
RW
1150 (source (origin
1151 (method url-fetch)
1152 (uri (string-append "mirror://sourceforge/crossmap/CrossMap-"
1153 version ".tar.gz"))
1154 (sha256
1155 (base32
61d5fd03
RW
1156 "07y179f63d7qnzdvkqcziwk9bs3k4zhp81q392fp1hwszjdvy22f"))
1157 ;; This patch has been sent upstream already and is available
1158 ;; for download from Sourceforge, but it has not been merged.
fc1adab1 1159 (patches (search-patches "crossmap-allow-system-pysam.patch"))
191c7101
RW
1160 (modules '((guix build utils)))
1161 ;; remove bundled copy of pysam
1162 (snippet
1163 '(delete-file-recursively "lib/pysam"))))
1164 (build-system python-build-system)
1165 (arguments
1166 `(#:python ,python-2
1167 #:phases
1168 (alist-cons-after
1169 'unpack 'set-env
1170 (lambda _ (setenv "CROSSMAP_USE_SYSTEM_PYSAM" "1"))
1171 %standard-phases)))
1172 (inputs
1173 `(("python-numpy" ,python2-numpy)
1174 ("python-pysam" ,python2-pysam)
1175 ("zlib" ,zlib)))
1176 (native-inputs
1177 `(("python-cython" ,python2-cython)
1178 ("python-nose" ,python2-nose)
1179 ("python-setuptools" ,python2-setuptools)))
1180 (home-page "http://crossmap.sourceforge.net/")
1181 (synopsis "Convert genome coordinates between assemblies")
1182 (description
1183 "CrossMap is a program for conversion of genome coordinates or annotation
1184files between different genome assemblies. It supports most commonly used
1185file formats including SAM/BAM, Wiggle/BigWig, BED, GFF/GTF, VCF.")
1186 (license license:gpl2+)))
1187
3a40a92c
RW
1188(define-public cufflinks
1189 (package
1190 (name "cufflinks")
1191 (version "2.2.1")
1192 (source (origin
1193 (method url-fetch)
1194 (uri (string-append "http://cole-trapnell-lab.github.io/"
1195 "cufflinks/assets/downloads/cufflinks-"
1196 version ".tar.gz"))
1197 (sha256
1198 (base32
1199 "1bnm10p8m7zq4qiipjhjqb24csiqdm1pwc8c795z253r2xk6ncg8"))))
1200 (build-system gnu-build-system)
1201 (arguments
1202 `(#:make-flags
1203 (list
1204 ;; The includes for "eigen" are located in a subdirectory.
1205 (string-append "EIGEN_CPPFLAGS="
1206 "-I" (assoc-ref %build-inputs "eigen")
1207 "/include/eigen3/")
1208 ;; Cufflinks must be linked with various boost libraries.
1209 (string-append "LDFLAGS="
1210 (string-join '("-lboost_system"
1211 "-lboost_serialization"
1212 "-lboost_thread"))))
1213 #:phases
1214 (modify-phases %standard-phases
1215 (add-after 'unpack 'fix-search-for-bam
1216 (lambda _
1217 (substitute* '("ax_bam.m4"
1218 "configure"
1219 "src/hits.h")
1220 (("<bam/sam\\.h>") "<samtools/sam.h>")
1221 (("<bam/bam\\.h>") "<samtools/bam.h>")
1222 (("<bam/version\\.hpp>") "<samtools/version.h>"))
1223 #t)))
1224 #:configure-flags
1225 (list (string-append "--with-bam="
1226 (assoc-ref %build-inputs "samtools")))))
1227 (inputs
1228 `(("eigen" ,eigen)
1229 ("samtools" ,samtools-0.1)
1230 ("htslib" ,htslib)
1231 ("boost" ,boost)
1232 ("python" ,python-2)
1233 ("zlib" ,zlib)))
1234 (home-page "http://cole-trapnell-lab.github.io/cufflinks/")
1235 (synopsis "Transcriptome assembly and RNA-Seq expression analysis")
1236 (description
1237 "Cufflinks assembles RNA transcripts, estimates their abundances,
1238and tests for differential expression and regulation in RNA-Seq
1239samples. It accepts aligned RNA-Seq reads and assembles the
1240alignments into a parsimonious set of transcripts. Cufflinks then
1241estimates the relative abundances of these transcripts based on how
1242many reads support each one, taking into account biases in library
1243preparation protocols.")
1244 (license license:boost1.0)))
1245
8e913213
RW
1246(define-public cutadapt
1247 (package
1248 (name "cutadapt")
1249 (version "1.8")
1250 (source (origin
1251 (method url-fetch)
1252 (uri (string-append
1253 "https://github.com/marcelm/cutadapt/archive/v"
1254 version ".tar.gz"))
1255 (file-name (string-append name "-" version ".tar.gz"))
1256 (sha256
1257 (base32
1258 "161bp87y6gd6r5bmvjpn2b1k942i3fizfpa139f0jn6jv1wcp5h5"))))
1259 (build-system python-build-system)
1260 (arguments
1261 ;; tests must be run after install
1262 `(#:phases (alist-cons-after
1263 'install 'check
1264 (lambda* (#:key inputs outputs #:allow-other-keys)
1265 (setenv "PYTHONPATH"
1266 (string-append
1267 (getenv "PYTHONPATH")
1268 ":" (assoc-ref outputs "out")
1269 "/lib/python"
1270 (string-take (string-take-right
1271 (assoc-ref inputs "python") 5) 3)
1272 "/site-packages"))
1273 (zero? (system* "nosetests" "-P" "tests")))
1274 (alist-delete 'check %standard-phases))))
1275 (native-inputs
1276 `(("python-cython" ,python-cython)
1277 ("python-nose" ,python-nose)
1278 ("python-setuptools" ,python-setuptools)))
1279 (home-page "https://code.google.com/p/cutadapt/")
1280 (synopsis "Remove adapter sequences from nucleotide sequencing reads")
1281 (description
1282 "Cutadapt finds and removes adapter sequences, primers, poly-A tails and
1283other types of unwanted sequence from high-throughput sequencing reads.")
1284 (license license:expat)))
1285
1baee943
RW
1286(define-public libbigwig
1287 (package
1288 (name "libbigwig")
1289 (version "0.1.4")
1290 (source (origin
1291 (method url-fetch)
1292 (uri (string-append "https://github.com/dpryan79/libBigWig/"
1293 "archive/" version ".tar.gz"))
1294 (file-name (string-append name "-" version ".tar.gz"))
1295 (sha256
1296 (base32
1297 "098rjh35pi4a9q83n8wiwvyzykjqj6l8q189p1xgfw4ghywdlvw1"))))
1298 (build-system gnu-build-system)
1299 (arguments
1300 `(#:test-target "test"
1301 #:make-flags
1302 (list "CC=gcc"
1303 (string-append "prefix=" (assoc-ref %outputs "out")))
1304 #:phases
1305 (modify-phases %standard-phases
1306 (delete 'configure)
1307 (add-before 'check 'disable-curl-test
1308 (lambda _
1309 (substitute* "Makefile"
1310 (("./test/testRemote.*") ""))
1311 #t))
1312 ;; This has been fixed with the upstream commit 4ff6959cd8a0, but
1313 ;; there has not yet been a release containing this change.
1314 (add-before 'install 'create-target-dirs
1315 (lambda* (#:key outputs #:allow-other-keys)
1316 (let ((out (assoc-ref outputs "out")))
1317 (mkdir-p (string-append out "/lib"))
1318 (mkdir-p (string-append out "/include"))
1319 #t))))))
1320 (inputs
1321 `(("zlib" ,zlib)
1322 ("curl" ,curl)))
1323 (native-inputs
1324 `(("doxygen" ,doxygen)))
1325 (home-page "https://github.com/dpryan79/libBigWig")
1326 (synopsis "C library for handling bigWig files")
1327 (description
1328 "This package provides a C library for parsing local and remote BigWig
1329files.")
1330 (license license:expat)))
1331
69e0e03c
RW
1332(define-public python-pybigwig
1333 (package
1334 (name "python-pybigwig")
1335 (version "0.2.5")
1336 (source (origin
1337 (method url-fetch)
1338 (uri (pypi-uri "pyBigWig" version))
1339 (sha256
1340 (base32
1341 "0yrpdxg3y0sny25x4w22lv1k47jzccqjmg7j4bp0hywklvp0hg7d"))
1342 (modules '((guix build utils)))
1343 (snippet
1344 '(begin
1345 ;; Delete bundled libBigWig sources
1346 (delete-file-recursively "libBigWig")))))
1347 (build-system python-build-system)
1348 (arguments
1349 `(#:phases
1350 (modify-phases %standard-phases
1351 (add-after 'unpack 'link-with-libBigWig
1352 (lambda* (#:key inputs #:allow-other-keys)
1353 (substitute* "setup.py"
1354 (("libs=\\[") "libs=[\"BigWig\", "))
1355 #t)))))
1356 (inputs
1357 `(("libbigwig" ,libbigwig)
1358 ("zlib" ,zlib)
1359 ("curl" ,curl)))
1360 (home-page "https://github.com/dpryan79/pyBigWig")
1361 (synopsis "Access bigWig files in Python using libBigWig")
1362 (description
1363 "This package provides Python bindings to the libBigWig library for
1364accessing bigWig files.")
1365 (license license:expat)))
1366
1367(define-public python2-pybigwig
1368 (let ((pybigwig (package-with-python2 python-pybigwig)))
1369 (package (inherit pybigwig)
1370 (native-inputs
1371 `(("python-setuptools" ,python2-setuptools))))))
1372
1921b1de
RW
1373(define-public deeptools
1374 (package
1375 (name "deeptools")
3acb8c85 1376 (version "2.1.1")
1921b1de
RW
1377 (source (origin
1378 (method url-fetch)
3acb8c85
RW
1379 (uri (string-append "https://github.com/fidelram/deepTools/"
1380 "archive/" version ".tar.gz"))
1921b1de
RW
1381 (file-name (string-append name "-" version ".tar.gz"))
1382 (sha256
1383 (base32
3acb8c85 1384 "1nmfin0zjdby3vay3r4flvz94dr6qjhj41ax4yz3vx13j6wz8izd"))))
1921b1de
RW
1385 (build-system python-build-system)
1386 (arguments
1387 `(#:python ,python-2))
14bda1ff 1388 (inputs
1921b1de
RW
1389 `(("python-scipy" ,python2-scipy)
1390 ("python-numpy" ,python2-numpy)
3acb8c85 1391 ("python-numpydoc" ,python2-numpydoc)
1921b1de
RW
1392 ("python-matplotlib" ,python2-matplotlib)
1393 ("python-bx-python" ,python2-bx-python)
3acb8c85
RW
1394 ("python-pysam" ,python2-pysam)
1395 ("python-pybigwig" ,python2-pybigwig)))
1921b1de
RW
1396 (native-inputs
1397 `(("python-mock" ,python2-mock) ;for tests
1398 ("python-pytz" ,python2-pytz) ;for tests
1399 ("python-setuptools" ,python2-setuptools)))
1400 (home-page "https://github.com/fidelram/deepTools")
1401 (synopsis "Tools for normalizing and visualizing deep-sequencing data")
1402 (description
1403 "DeepTools addresses the challenge of handling the large amounts of data
1404that are now routinely generated from DNA sequencing centers. To do so,
1405deepTools contains useful modules to process the mapped reads data to create
1406coverage files in standard bedGraph and bigWig file formats. By doing so,
1407deepTools allows the creation of normalized coverage files or the comparison
1408between two files (for example, treatment and control). Finally, using such
1409normalized and standardized files, multiple visualizations can be created to
1410identify enrichments with functional annotations of the genome.")
1411 (license license:gpl3+)))
1412
684bf7c7
BW
1413(define-public diamond
1414 (package
1415 (name "diamond")
1416 (version "0.7.9")
1417 (source (origin
1418 (method url-fetch)
1419 (uri (string-append
1420 "https://github.com/bbuchfink/diamond/archive/v"
1421 version ".tar.gz"))
1422 (file-name (string-append name "-" version ".tar.gz"))
1423 (sha256
1424 (base32
1425 "0hfkcfv9f76h5brbyw9fyvmc0l9cmbsxrcdqk0fa9xv82zj47p15"))
1426 (snippet '(begin
1427 (delete-file "bin/diamond")
1428 #t))))
1429 (build-system gnu-build-system)
1430 (arguments
1431 '(#:tests? #f ;no "check" target
1432 #:phases
1433 (modify-phases %standard-phases
1434 (add-after 'unpack 'enter-source-dir
1435 (lambda _
1436 (chdir "src")
1437 #t))
1438 (delete 'configure)
1439 (replace 'install
1440 (lambda* (#:key outputs #:allow-other-keys)
1441 (let ((bin (string-append (assoc-ref outputs "out")
1442 "/bin")))
1443 (mkdir-p bin)
1444 (copy-file "../bin/diamond"
1445 (string-append bin "/diamond"))
1446 #t))))))
1447 (native-inputs
1448 `(("bc" ,bc)))
1449 (inputs
1450 `(("boost" ,boost)
1451 ("zlib" ,zlib)))
1452 (home-page "https://github.com/bbuchfink/diamond")
1453 (synopsis "Accelerated BLAST compatible local sequence aligner")
1454 (description
1455 "DIAMOND is a BLAST-compatible local aligner for mapping protein and
1456translated DNA query sequences against a protein reference database (BLASTP
1457and BLASTX alignment mode). The speedup over BLAST is up to 20,000 on short
1458reads at a typical sensitivity of 90-99% relative to BLAST depending on the
1459data and settings.")
d9c44e9c
BW
1460 ;; diamond fails to build on other platforms
1461 ;; https://github.com/bbuchfink/diamond/issues/18
1462 (supported-systems '("x86_64-linux"))
684bf7c7
BW
1463 (license (license:non-copyleft "file://src/COPYING"
1464 "See src/COPYING in the distribution."))))
1465
365c8153
RW
1466(define-public edirect
1467 (package
1468 (name "edirect")
5dfd2766 1469 (version "3.50")
365c8153
RW
1470 (source (origin
1471 (method url-fetch)
1472 ;; Note: older versions are not retained.
5dfd2766 1473 (uri "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/edirect.tar.gz")
365c8153
RW
1474 (sha256
1475 (base32
5dfd2766 1476 "1cr3gzcs3flmgnnbj5iz93vh9w0fca1ilzi2q82cl63ln3mwvpz0"))))
365c8153
RW
1477 (build-system perl-build-system)
1478 (arguments
1479 `(#:tests? #f ;no "check" target
1480 #:phases
1481 (modify-phases %standard-phases
1482 (delete 'configure)
1483 (delete 'build)
1484 (replace 'install
1485 (lambda* (#:key outputs #:allow-other-keys)
1486 (let ((target (string-append (assoc-ref outputs "out")
1487 "/bin")))
1488 (mkdir-p target)
1489 (copy-file "edirect.pl"
1490 (string-append target "/edirect.pl"))
1491 #t)))
1492 (add-after
1493 'install 'wrap-program
1494 (lambda* (#:key inputs outputs #:allow-other-keys)
1495 ;; Make sure 'edirect.pl' finds all perl inputs at runtime.
1496 (let* ((out (assoc-ref outputs "out"))
1497 (path (getenv "PERL5LIB")))
1498 (wrap-program (string-append out "/bin/edirect.pl")
1499 `("PERL5LIB" ":" prefix (,path)))))))))
1500 (inputs
1501 `(("perl-html-parser" ,perl-html-parser)
1502 ("perl-encode-locale" ,perl-encode-locale)
1503 ("perl-file-listing" ,perl-file-listing)
1504 ("perl-html-tagset" ,perl-html-tagset)
1505 ("perl-html-tree" ,perl-html-tree)
1506 ("perl-http-cookies" ,perl-http-cookies)
1507 ("perl-http-date" ,perl-http-date)
1508 ("perl-http-message" ,perl-http-message)
1509 ("perl-http-negotiate" ,perl-http-negotiate)
1510 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
1511 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
1512 ("perl-net-http" ,perl-net-http)
1513 ("perl-uri" ,perl-uri)
1514 ("perl-www-robotrules" ,perl-www-robotrules)
1515 ("perl" ,perl)))
3d51ec91 1516 (home-page "http://www.ncbi.nlm.nih.gov/books/NBK179288/")
365c8153
RW
1517 (synopsis "Tools for accessing the NCBI's set of databases")
1518 (description
1519 "Entrez Direct (EDirect) is a method for accessing the National Center
1520for Biotechnology Information's (NCBI) set of interconnected
1521databases (publication, sequence, structure, gene, variation, expression,
1522etc.) from a terminal. Functions take search terms from command-line
1523arguments. Individual operations are combined to build multi-step queries.
1524Record retrieval and formatting normally complete the process.
1525
1526EDirect also provides an argument-driven function that simplifies the
1527extraction of data from document summaries or other results that are returned
1528in structured XML format. This can eliminate the need for writing custom
1529software to answer ad hoc questions.")
1530 (license license:public-domain)))
1531
e4e5a4d8
RW
1532(define-public express
1533 (package
1534 (name "express")
1535 (version "1.5.1")
1536 (source (origin
1537 (method url-fetch)
1538 (uri
1539 (string-append
1540 "http://bio.math.berkeley.edu/eXpress/downloads/express-"
1541 version "/express-" version "-src.tgz"))
1542 (sha256
1543 (base32
1544 "03rczxd0gjp2l1jxcmjfmf5j94j77zqyxa6x063zsc585nj40n0c"))))
1545 (build-system cmake-build-system)
1546 (arguments
1547 `(#:tests? #f ;no "check" target
1548 #:phases
1549 (alist-cons-after
1550 'unpack 'use-shared-boost-libs-and-set-bamtools-paths
1551 (lambda* (#:key inputs #:allow-other-keys)
1552 (substitute* "CMakeLists.txt"
1553 (("set\\(Boost_USE_STATIC_LIBS ON\\)")
1554 "set(Boost_USE_STATIC_LIBS OFF)")
1555 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/bamtools/include")
1556 (string-append (assoc-ref inputs "bamtools") "/include/bamtools")))
1557 (substitute* "src/CMakeLists.txt"
1558 (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/\\.\\./bamtools/lib")
1559 (string-append (assoc-ref inputs "bamtools") "/lib/bamtools")))
1560 #t)
1561 %standard-phases)))
1562 (inputs
1563 `(("boost" ,boost)
1564 ("bamtools" ,bamtools)
1565 ("protobuf" ,protobuf)
1566 ("zlib" ,zlib)))
1567 (home-page "http://bio.math.berkeley.edu/eXpress")
1568 (synopsis "Streaming quantification for high-throughput genomic sequencing")
1569 (description
1570 "eXpress is a streaming tool for quantifying the abundances of a set of
1571target sequences from sampled subsequences. Example applications include
1572transcript-level RNA-Seq quantification, allele-specific/haplotype expression
1573analysis (from RNA-Seq), transcription factor binding quantification in
1574ChIP-Seq, and analysis of metagenomic data.")
1575 (license license:artistic2.0)))
1576
f3674b1c
BW
1577(define-public express-beta-diversity
1578 (package
1579 (name "express-beta-diversity")
1580 (version "1.0.7")
1581 (source (origin
1582 (method url-fetch)
1583 (uri
1584 (string-append
1585 "https://github.com/dparks1134/ExpressBetaDiversity/archive/v"
1586 version ".tar.gz"))
1587 (file-name (string-append name "-" version ".tar.gz"))
1588 (sha256
1589 (base32
1590 "1djvdlmqvjf6h0zq7w36y8cl5cli6rgj86x65znl48agnwmzxfxr"))))
1591 (build-system gnu-build-system)
1592 (arguments
1593 `(#:phases
1594 (modify-phases %standard-phases
1595 (delete 'configure)
1596 (add-before 'build 'enter-source (lambda _ (chdir "source") #t))
1597 (replace 'check
1598 (lambda _ (zero? (system* "../bin/ExpressBetaDiversity"
1599 "-u"))))
1600 (add-after 'check 'exit-source (lambda _ (chdir "..") #t))
1601 (replace 'install
1602 (lambda* (#:key outputs #:allow-other-keys)
1603 (let ((bin (string-append (assoc-ref outputs "out")
1604 "/bin")))
1605 (mkdir-p bin)
1606 (copy-file "scripts/convertToEBD.py"
1607 (string-append bin "/convertToEBD.py"))
1608 (copy-file "bin/ExpressBetaDiversity"
1609 (string-append bin "/ExpressBetaDiversity"))
1610 #t))))))
1611 (inputs
1612 `(("python" ,python-2)))
1613 (home-page "http://kiwi.cs.dal.ca/Software/ExpressBetaDiversity")
1614 (synopsis "Taxon- and phylogenetic-based beta diversity measures")
1615 (description
1616 "Express Beta Diversity (EBD) calculates ecological beta diversity
1617(dissimilarity) measures between biological communities. EBD implements a
1618variety of diversity measures including those that make use of phylogenetic
1619similarity of community members.")
1620 (license license:gpl3+)))
1621
12b04cbe
BW
1622(define-public fasttree
1623 (package
1624 (name "fasttree")
1625 (version "2.1.8")
1626 (source (origin
1627 (method url-fetch)
1628 (uri (string-append
1629 "http://www.microbesonline.org/fasttree/FastTree-"
1630 version ".c"))
1631 (sha256
1632 (base32
1633 "0dzqc9vr9iiiw21y159xfjl2z90vw0y7r4x6456pcaxiy5hd2wmi"))))
1634 (build-system gnu-build-system)
1635 (arguments
1636 `(#:tests? #f ; no "check" target
1637 #:phases
1638 (modify-phases %standard-phases
1639 (delete 'unpack)
1640 (delete 'configure)
1641 (replace 'build
1642 (lambda* (#:key source #:allow-other-keys)
1643 (and (zero? (system* "gcc"
1644 "-O3"
1645 "-finline-functions"
1646 "-funroll-loops"
1647 "-Wall"
1648 "-o"
1649 "FastTree"
1650 source
1651 "-lm"))
1652 (zero? (system* "gcc"
1653 "-DOPENMP"
1654 "-fopenmp"
1655 "-O3"
1656 "-finline-functions"
1657 "-funroll-loops"
1658 "-Wall"
1659 "-o"
1660 "FastTreeMP"
1661 source
1662 "-lm")))))
1663 (replace 'install
1664 (lambda* (#:key outputs #:allow-other-keys)
1665 (let ((bin (string-append (assoc-ref outputs "out")
1666 "/bin")))
1667 (mkdir-p bin)
1668 (copy-file "FastTree"
1669 (string-append bin "/FastTree"))
1670 (copy-file "FastTreeMP"
1671 (string-append bin "/FastTreeMP"))
1672 #t))))))
1673 (home-page "http://www.microbesonline.org/fasttree")
1674 (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
1675 (description
1676 "FastTree can handle alignments with up to a million of sequences in a
1677reasonable amount of time and memory. For large alignments, FastTree is
1678100-1,000 times faster than PhyML 3.0 or RAxML 7.")
1679 (license license:gpl2+)))
1680
2127cedb
RW
1681(define-public fastx-toolkit
1682 (package
1683 (name "fastx-toolkit")
1684 (version "0.0.14")
1685 (source (origin
1686 (method url-fetch)
1687 (uri
1688 (string-append
1689 "https://github.com/agordon/fastx_toolkit/releases/download/"
1690 version "/fastx_toolkit-" version ".tar.bz2"))
1691 (sha256
1692 (base32
1693 "01jqzw386873sr0pjp1wr4rn8fsga2vxs1qfmicvx1pjr72007wy"))))
1694 (build-system gnu-build-system)
1695 (inputs
1696 `(("libgtextutils" ,libgtextutils)))
1697 (native-inputs
1698 `(("pkg-config" ,pkg-config)))
1699 (home-page "http://hannonlab.cshl.edu/fastx_toolkit/")
1700 (synopsis "Tools for FASTA/FASTQ file preprocessing")
1701 (description
1702 "The FASTX-Toolkit is a collection of command line tools for Short-Reads
1703FASTA/FASTQ files preprocessing.
1704
1705Next-Generation sequencing machines usually produce FASTA or FASTQ files,
1706containing multiple short-reads sequences. The main processing of such
1707FASTA/FASTQ files is mapping the sequences to reference genomes. However, it
1708is sometimes more productive to preprocess the files before mapping the
1709sequences to the genome---manipulating the sequences to produce better mapping
1710results. The FASTX-Toolkit tools perform some of these preprocessing tasks.")
1711 (license license:agpl3+)))
1712
d7678942
RW
1713(define-public flexbar
1714 (package
1715 (name "flexbar")
1716 (version "2.5")
1717 (source (origin
1718 (method url-fetch)
1719 (uri
1720 (string-append "mirror://sourceforge/flexbar/"
1721 version "/flexbar_v" version "_src.tgz"))
1722 (sha256
1723 (base32
1724 "13jaykc3y1x8y5nn9j8ljnb79s5y51kyxz46hdmvvjj6qhyympmf"))))
1725 (build-system cmake-build-system)
1726 (arguments
4ca009c0 1727 `(#:configure-flags (list
d7678942
RW
1728 (string-append "-DFLEXBAR_BINARY_DIR="
1729 (assoc-ref %outputs "out")
1730 "/bin/"))
1731 #:phases
4ca009c0
RW
1732 (alist-replace
1733 'check
1734 (lambda* (#:key outputs #:allow-other-keys)
1735 (setenv "PATH" (string-append
1736 (assoc-ref outputs "out") "/bin:"
1737 (getenv "PATH")))
1738 (chdir "../flexbar_v2.5_src/test")
1739 (zero? (system* "bash" "flexbar_validate.sh")))
1740 (alist-delete 'install %standard-phases))))
d7678942
RW
1741 (inputs
1742 `(("tbb" ,tbb)
1743 ("zlib" ,zlib)))
1744 (native-inputs
1745 `(("pkg-config" ,pkg-config)
1746 ("seqan" ,seqan)))
1747 (home-page "http://flexbar.sourceforge.net")
1748 (synopsis "Barcode and adapter removal tool for sequencing platforms")
1749 (description
1750 "Flexbar preprocesses high-throughput nucleotide sequencing data
1751efficiently. It demultiplexes barcoded runs and removes adapter sequences.
1752Moreover, trimming and filtering features are provided. Flexbar increases
1753read mapping rates and improves genome and transcriptome assemblies. It
1754supports next-generation sequencing data in fasta/q and csfasta/q format from
1755Illumina, Roche 454, and the SOLiD platform.")
1756 (license license:gpl3)))
1757
19f4554c
BW
1758(define-public fraggenescan
1759 (package
1760 (name "fraggenescan")
1761 (version "1.20")
1762 (source
1763 (origin
1764 (method url-fetch)
1765 (uri
1766 (string-append "mirror://sourceforge/fraggenescan/"
1767 "FragGeneScan" version ".tar.gz"))
1768 (sha256
1769 (base32 "1zzigqmvqvjyqv4945kv6nc5ah2xxm1nxgrlsnbzav3f5c0n0pyj"))))
1770 (build-system gnu-build-system)
1771 (arguments
1772 `(#:phases
1773 (modify-phases %standard-phases
1774 (delete 'configure)
1775 (add-before 'build 'patch-paths
1776 (lambda* (#:key outputs #:allow-other-keys)
1777 (let* ((out (string-append (assoc-ref outputs "out")))
1778 (share (string-append out "/share/fraggenescan/")))
1779 (substitute* "run_FragGeneScan.pl"
1780 (("system\\(\"rm")
1781 (string-append "system(\"" (which "rm")))
1782 (("system\\(\"mv")
1783 (string-append "system(\"" (which "mv")))
1784 ;; This script and other programs expect the training files
1785 ;; to be in the non-standard location bin/train/XXX. Change
1786 ;; this to be share/fraggenescan/train/XXX instead.
1787 (("^\\$train.file = \\$dir.*")
1788 (string-append "$train_file = \""
1789 share
1790 "train/\".$FGS_train_file;")))
1791 (substitute* "run_hmm.c"
1792 (("^ strcat\\(train_dir, \\\"train/\\\"\\);")
1793 (string-append " strcpy(train_dir, \"" share "/train/\");")))
1794 (substitute* "post_process.pl"
1795 (("^my \\$dir = substr.*")
1796 (string-append "my $dir = \"" share "\";"))))
1797 #t))
1798 (replace 'build
1799 (lambda _ (and (zero? (system* "make" "clean"))
1800 (zero? (system* "make" "fgs")))))
1801 (replace 'install
1802 (lambda* (#:key outputs #:allow-other-keys)
1803 (let* ((out (string-append (assoc-ref outputs "out")))
1804 (bin (string-append out "/bin/"))
1805 (share (string-append out "/share/fraggenescan/train")))
1806 (install-file "run_FragGeneScan.pl" bin)
1807 (install-file "FragGeneScan" bin)
1808 (install-file "FGS_gff.py" bin)
1809 (install-file "post_process.pl" bin)
1810 (copy-recursively "train" share))))
1811 (delete 'check)
1812 (add-after 'install 'post-install-check
1813 ;; In lieu of 'make check', run one of the examples and check the
1814 ;; output files gets created.
1815 (lambda* (#:key outputs #:allow-other-keys)
1816 (let* ((out (string-append (assoc-ref outputs "out")))
1817 (bin (string-append out "/bin/")))
1818 (and (zero? (system* (string-append bin "run_FragGeneScan.pl")
1819 "-genome=./example/NC_000913.fna"
1820 "-out=./test2"
1821 "-complete=1"
1822 "-train=complete"))
1823 (file-exists? "test2.faa")
1824 (file-exists? "test2.ffn")
1825 (file-exists? "test2.gff")
1826 (file-exists? "test2.out"))))))))
1827 (inputs
1828 `(("perl" ,perl)
1829 ("python" ,python-2))) ;not compatible with python 3.
1830 (home-page "https://sourceforge.net/projects/fraggenescan/")
1831 (synopsis "Finds potentially fragmented genes in short reads")
1832 (description
1833 "FragGeneScan is a program for predicting bacterial and archaeal genes in
1834short and error-prone DNA sequencing reads. It can also be applied to predict
1835genes in incomplete assemblies or complete genomes.")
1836 ;; GPL3+ according to private correspondense with the authors.
1837 (license license:gpl3+)))
1838
81f3e0c1
BW
1839(define-public fxtract
1840 (let ((util-commit "776ca85a18a47492af3794745efcb4a905113115"))
1841 (package
1842 (name "fxtract")
1843 (version "2.3")
1844 (source
1845 (origin
1846 (method url-fetch)
1847 (uri (string-append
1848 "https://github.com/ctSkennerton/fxtract/archive/"
1849 version ".tar.gz"))
1850 (file-name (string-append "ctstennerton-util-"
1851 (string-take util-commit 7)
1852 "-checkout"))
1853 (sha256
1854 (base32
1855 "0275cfdhis8517hm01is62062swmi06fxzifq7mr3knbbxjlaiwj"))))
1856 (build-system gnu-build-system)
1857 (arguments
1858 `(#:make-flags (list
1859 (string-append "PREFIX=" (assoc-ref %outputs "out"))
1860 "CC=gcc")
1861 #:test-target "fxtract_test"
1862 #:phases
1863 (modify-phases %standard-phases
1864 (delete 'configure)
1865 (add-before 'build 'copy-util
1866 (lambda* (#:key inputs #:allow-other-keys)
1867 (rmdir "util")
1868 (copy-recursively (assoc-ref inputs "ctskennerton-util") "util")
1869 #t))
1870 ;; Do not use make install as this requires additional dependencies.
1871 (replace 'install
1872 (lambda* (#:key outputs #:allow-other-keys)
1873 (let* ((out (assoc-ref outputs "out"))
1874 (bin (string-append out"/bin")))
1875 (install-file "fxtract" bin)
1876 #t))))))
1877 (inputs
1878 `(("pcre" ,pcre)
1879 ("zlib" ,zlib)))
1880 (native-inputs
1881 ;; ctskennerton-util is licensed under GPL2.
1882 `(("ctskennerton-util"
1883 ,(origin
1884 (method git-fetch)
1885 (uri (git-reference
1886 (url "https://github.com/ctSkennerton/util.git")
1887 (commit util-commit)))
1888 (file-name (string-append
1889 "ctstennerton-util-" util-commit "-checkout"))
1890 (sha256
1891 (base32
1892 "0cls1hd4vgj3f36fpzzg4xc77d6f3hpc60cbpfmn2gdr7ykzzad7"))))))
1893 (home-page "https://github.com/ctSkennerton/fxtract")
1894 (synopsis "Extract sequences from FASTA and FASTQ files")
1895 (description
1896 "Fxtract extracts sequences from a protein or nucleotide fastx (FASTA
1897or FASTQ) file given a subsequence. It uses a simple substring search for
1898basic tasks but can change to using POSIX regular expressions, PCRE, hash
1899lookups or multi-pattern searching as required. By default fxtract looks in
1900the sequence of each record but can also be told to look in the header,
1901comment or quality sections.")
1902 (license license:expat))))
1903
5854f685
RW
1904(define-public grit
1905 (package
1906 (name "grit")
1907 (version "2.0.2")
1908 (source (origin
1909 (method url-fetch)
1910 (uri (string-append
1911 "https://github.com/nboley/grit/archive/"
1912 version ".tar.gz"))
1913 (file-name (string-append name "-" version ".tar.gz"))
1914 (sha256
1915 (base32
1916 "157in84dj70wimbind3x7sy1whs3h57qfgcnj2s6lrd38fbrb7mj"))))
1917 (build-system python-build-system)
1918 (arguments
1919 `(#:python ,python-2
1920 #:phases
1921 (alist-cons-after
1922 'unpack 'generate-from-cython-sources
1923 (lambda* (#:key inputs outputs #:allow-other-keys)
1924 ;; Delete these C files to force fresh generation from pyx sources.
1925 (delete-file "grit/sparsify_support_fns.c")
1926 (delete-file "grit/call_peaks_support_fns.c")
1927 (substitute* "setup.py"
1928 (("Cython.Setup") "Cython.Build")
1929 ;; Add numpy include path to fix compilation
1930 (("pyx\", \\]")
1931 (string-append "pyx\", ], include_dirs = ['"
1932 (assoc-ref inputs "python-numpy")
1933 "/lib/python2.7/site-packages/numpy/core/include/"
1934 "']"))) #t)
1935 %standard-phases)))
1936 (inputs
1937 `(("python-scipy" ,python2-scipy)
1938 ("python-numpy" ,python2-numpy)
1939 ("python-pysam" ,python2-pysam)
1940 ("python-networkx" ,python2-networkx)))
1941 (native-inputs
1942 `(("python-cython" ,python2-cython)
1943 ("python-setuptools" ,python2-setuptools)))
1944 (home-page "http://grit-bio.org")
1945 (synopsis "Tool for integrative analysis of RNA-seq type assays")
1946 (description
1947 "GRIT is designed to use RNA-seq, TES, and TSS data to build and quantify
1948full length transcript models. When none of these data sources are available,
1949GRIT can be run by providing a candidate set of TES or TSS sites. In
1950addition, GRIT can merge in reference junctions and gene boundaries. GRIT can
1951also be run in quantification mode, where it uses a provided GTF file and just
1952estimates transcript expression.")
1953 (license license:gpl3+)))
1954
346a829a
RW
1955(define-public hisat
1956 (package
1957 (name "hisat")
1958 (version "0.1.4")
1959 (source (origin
1960 (method url-fetch)
1961 (uri (string-append
1962 "http://ccb.jhu.edu/software/hisat/downloads/hisat-"
1963 version "-beta-source.zip"))
1964 (sha256
1965 (base32
1966 "1k381ydranqxp09yf2y7w1d0chz5d59vb6jchi89hbb0prq19lk5"))))
1967 (build-system gnu-build-system)
1968 (arguments
e58d01fa
RW
1969 `(#:tests? #f ;no check target
1970 #:make-flags '("allall"
1971 ;; Disable unsupported `popcnt' instructions on
1972 ;; architectures other than x86_64
1973 ,@(if (string-prefix? "x86_64"
1974 (or (%current-target-system)
1975 (%current-system)))
1976 '()
1977 '("POPCNT_CAPABILITY=0")))
346a829a 1978 #:phases
da6dd842
LC
1979 (alist-cons-after
1980 'unpack 'patch-sources
1981 (lambda _
1982 ;; XXX Cannot use snippet because zip files are not supported
1983 (substitute* "Makefile"
1984 (("^CC = .*$") "CC = gcc")
1985 (("^CPP = .*$") "CPP = g++")
1986 ;; replace BUILD_HOST and BUILD_TIME for deterministic build
1987 (("-DBUILD_HOST=.*") "-DBUILD_HOST=\"\\\"guix\\\"\"")
1988 (("-DBUILD_TIME=.*") "-DBUILD_TIME=\"\\\"0\\\"\""))
1989 (substitute* '("hisat-build" "hisat-inspect")
1990 (("/usr/bin/env") (which "env"))))
1991 (alist-replace
1992 'install
1993 (lambda* (#:key outputs #:allow-other-keys)
96c46210
LC
1994 (let ((bin (string-append (assoc-ref outputs "out") "/bi/")))
1995 (for-each (lambda (file)
1996 (install-file file bin))
1997 (find-files
1998 "."
1999 "hisat(-(build|align|inspect)(-(s|l)(-debug)*)*)*$"))))
da6dd842 2000 (alist-delete 'configure %standard-phases)))))
346a829a
RW
2001 (native-inputs
2002 `(("unzip" ,unzip)))
2003 (inputs
2004 `(("perl" ,perl)
2005 ("python" ,python)
2006 ("zlib" ,zlib)))
60af3d82
RW
2007 ;; Non-portable SSE instructions are used so building fails on platforms
2008 ;; other than x86_64.
2009 (supported-systems '("x86_64-linux"))
346a829a
RW
2010 (home-page "http://ccb.jhu.edu/software/hisat/index.shtml")
2011 (synopsis "Hierarchical indexing for spliced alignment of transcripts")
2012 (description
2013 "HISAT is a fast and sensitive spliced alignment program for mapping
2014RNA-seq reads. In addition to one global FM index that represents a whole
2015genome, HISAT uses a large set of small FM indexes that collectively cover the
2016whole genome. These small indexes (called local indexes) combined with
2017several alignment strategies enable effective alignment of RNA-seq reads, in
2018particular, reads spanning multiple exons.")
2019 (license license:gpl3+)))
2020
c684629f
BW
2021(define-public hmmer
2022 (package
2023 (name "hmmer")
2024 (version "3.1b2")
2025 (source (origin
2026 (method url-fetch)
2027 (uri (string-append
2028 "http://selab.janelia.org/software/hmmer"
2029 (version-prefix version 1) "/"
2030 version "/hmmer-" version ".tar.gz"))
2031 (sha256
2032 (base32
2033 "0djmgc0pfli0jilfx8hql1axhwhqxqb8rxg2r5rg07aw73sfs5nx"))))
2034 (build-system gnu-build-system)
b3546174 2035 (native-inputs `(("perl" ,perl)))
c684629f
BW
2036 (home-page "http://hmmer.janelia.org")
2037 (synopsis "Biosequence analysis using profile hidden Markov models")
2038 (description
2039 "HMMER is used for searching sequence databases for homologs of protein
2040sequences, and for making protein sequence alignments. It implements methods
2041using probabilistic models called profile hidden Markov models (profile
2042HMMs).")
2043 (license (list license:gpl3+
2044 ;; The bundled library 'easel' is distributed
2045 ;; under The Janelia Farm Software License.
2046 (license:non-copyleft
2047 "file://easel/LICENSE"
2048 "See easel/LICENSE in the distribution.")))))
2049
85652f59
RW
2050(define-public htseq
2051 (package
2052 (name "htseq")
2053 (version "0.6.1")
2054 (source (origin
2055 (method url-fetch)
2056 (uri (string-append
2057 "https://pypi.python.org/packages/source/H/HTSeq/HTSeq-"
2058 version ".tar.gz"))
2059 (sha256
2060 (base32
2061 "1i85ppf2j2lj12m0x690qq5nn17xxk23pbbx2c83r8ayb5wngzwv"))))
2062 (build-system python-build-system)
2063 (arguments `(#:python ,python-2)) ; only Python 2 is supported
0536727e
RW
2064 ;; Numpy needs to be propagated when htseq is used as a Python library.
2065 (propagated-inputs
2066 `(("python-numpy" ,python2-numpy)))
578b05d9
RW
2067 (inputs
2068 `(("python-pysam" ,python2-pysam)))
0536727e
RW
2069 (native-inputs
2070 `(("python-setuptools" ,python2-setuptools)))
85652f59
RW
2071 (home-page "http://www-huber.embl.de/users/anders/HTSeq/")
2072 (synopsis "Analysing high-throughput sequencing data with Python")
2073 (description
2074 "HTSeq is a Python package that provides infrastructure to process data
2075from high-throughput sequencing assays.")
2076 (license license:gpl3+)))
2077
15a3c3d4
RW
2078(define-public htsjdk
2079 (package
2080 (name "htsjdk")
2081 (version "1.129")
2082 (source (origin
2083 (method url-fetch)
2084 (uri (string-append
2085 "https://github.com/samtools/htsjdk/archive/"
2086 version ".tar.gz"))
2087 (file-name (string-append name "-" version ".tar.gz"))
2088 (sha256
2089 (base32
2090 "0asdk9b8jx2ij7yd6apg9qx03li8q7z3ml0qy2r2qczkra79y6fw"))
2091 (modules '((guix build utils)))
2092 ;; remove build dependency on git
2093 (snippet '(substitute* "build.xml"
2094 (("failifexecutionfails=\"true\"")
2095 "failifexecutionfails=\"false\"")))))
10b4a969 2096 (build-system ant-build-system)
15a3c3d4 2097 (arguments
10b4a969
RW
2098 `(#:tests? #f ; test require Internet access
2099 #:make-flags
2100 (list (string-append "-Ddist=" (assoc-ref %outputs "out")
2101 "/share/java/htsjdk/"))
2102 #:build-target "all"
2103 #:phases
2104 (modify-phases %standard-phases
2105 ;; The build phase also installs the jars
2106 (delete 'install))))
15a3c3d4
RW
2107 (home-page "http://samtools.github.io/htsjdk/")
2108 (synopsis "Java API for high-throughput sequencing data (HTS) formats")
2109 (description
2110 "HTSJDK is an implementation of a unified Java library for accessing
2111common file formats, such as SAM and VCF, used for high-throughput
2112sequencing (HTS) data. There are also an number of useful utilities for
2113manipulating HTS data.")
2114 (license license:expat)))
2115
e7c09730
RW
2116(define-public htslib
2117 (package
2118 (name "htslib")
2119 (version "1.2.1")
2120 (source (origin
2121 (method url-fetch)
2122 (uri (string-append
2123 "https://github.com/samtools/htslib/releases/download/"
2124 version "/htslib-" version ".tar.bz2"))
2125 (sha256
2126 (base32
2127 "1c32ssscbnjwfw3dra140fq7riarp2x990qxybh34nr1p5r17nxx"))))
2128 (build-system gnu-build-system)
2129 (arguments
2130 `(#:phases
2131 (modify-phases %standard-phases
2132 (add-after
2133 'unpack 'patch-tests
2134 (lambda _
2135 (substitute* "test/test.pl"
2136 (("/bin/bash") (which "bash")))
2137 #t)))))
2138 (inputs
2139 `(("zlib" ,zlib)))
2140 (native-inputs
2141 `(("perl" ,perl)))
2142 (home-page "http://www.htslib.org")
2143 (synopsis "C library for reading/writing high-throughput sequencing data")
2144 (description
2145 "HTSlib is a C library for reading/writing high-throughput sequencing
2146data. It also provides the bgzip, htsfile, and tabix utilities.")
2147 ;; Files under cram/ are released under the modified BSD license;
2148 ;; the rest is released under the Expat license
2149 (license (list license:expat license:bsd-3))))
2150
c4325f62
RW
2151(define-public idr
2152 (package
2153 (name "idr")
2154 (version "2.0.0")
2155 (source (origin
2156 (method url-fetch)
2157 (uri (string-append
2158 "https://github.com/nboley/idr/archive/"
2159 version ".tar.gz"))
2160 (file-name (string-append name "-" version ".tar.gz"))
2161 (sha256
2162 (base32
2163 "1k3x44biak00aiv3hpm1yd6nn4hhp7n0qnbs3zh2q9sw7qr1qj5r"))))
2164 (build-system python-build-system)
2165 (arguments
2166 `(#:phases
2167 (modify-phases %standard-phases
2168 (add-after
2169 'install 'wrap-program
2170 (lambda* (#:key inputs outputs #:allow-other-keys)
2171 (let* ((out (assoc-ref outputs "out"))
2172 (python-version (string-take (string-take-right
2173 (assoc-ref inputs "python") 5) 3))
2174 (path (string-join
2175 (map (lambda (name)
2176 (string-append (assoc-ref inputs name)
2177 "/lib/python" python-version
2178 "/site-packages"))
2179 '("python-scipy"
2180 "python-numpy"
2181 "python-matplotlib"))
2182 ":")))
2183 (wrap-program (string-append out "/bin/idr")
2184 `("PYTHONPATH" ":" prefix (,path))))
2185 #t)))))
2186 (inputs
2187 `(("python-scipy" ,python-scipy)
2188 ("python-numpy" ,python-numpy)
2189 ("python-matplotlib" ,python-matplotlib)))
2190 (native-inputs
2191 `(("python-cython" ,python-cython)
2192 ("python-setuptools" ,python-setuptools)))
2193 (home-page "https://github.com/nboley/idr")
2194 (synopsis "Tool to measure the irreproducible discovery rate (IDR)")
2195 (description
2196 "The IDR (Irreproducible Discovery Rate) framework is a unified approach
2197to measure the reproducibility of findings identified from replicate
2198experiments and provide highly stable thresholds based on reproducibility.")
2199 (license license:gpl3+)))
2200
43c565d2
RW
2201(define-public jellyfish
2202 (package
2203 (name "jellyfish")
2204 (version "2.2.4")
2205 (source (origin
2206 (method url-fetch)
2207 (uri (string-append "https://github.com/gmarcais/Jellyfish/"
2208 "releases/download/v" version
2209 "/jellyfish-" version ".tar.gz"))
2210 (sha256
2211 (base32
2212 "0a6xnynqy2ibfbfz86b9g2m2dgm7f1469pmymkpam333gi3p26nk"))))
2213 (build-system gnu-build-system)
2214 (outputs '("out" ;for library
2215 "ruby" ;for Ruby bindings
2216 "python")) ;for Python bindings
2217 (arguments
2218 `(#:configure-flags
2219 (list (string-append "--enable-ruby-binding="
2220 (assoc-ref %outputs "ruby"))
2221 (string-append "--enable-python-binding="
2222 (assoc-ref %outputs "python")))
2223 #:phases
2224 (modify-phases %standard-phases
2225 (add-before 'check 'set-SHELL-variable
2226 (lambda _
2227 ;; generator_manager.hpp either uses /bin/sh or $SHELL
2228 ;; to run tests.
2229 (setenv "SHELL" (which "bash"))
2230 #t)))))
2231 (native-inputs
2232 `(("bc" ,bc)
2233 ("time" ,time)
2234 ("ruby" ,ruby)
2235 ("python" ,python-2)))
2236 (synopsis "Tool for fast counting of k-mers in DNA")
2237 (description
2238 "Jellyfish is a tool for fast, memory-efficient counting of k-mers in
2239DNA. A k-mer is a substring of length k, and counting the occurrences of all
2240such substrings is a central step in many analyses of DNA sequence. Jellyfish
2241is a command-line program that reads FASTA and multi-FASTA files containing
2242DNA sequences. It outputs its k-mer counts in a binary format, which can be
2243translated into a human-readable text format using the @code{jellyfish dump}
2244command, or queried for specific k-mers with @code{jellyfish query}.")
2245 (home-page "http://www.genome.umd.edu/jellyfish.html")
2246 ;; The combined work is published under the GPLv3 or later. Individual
2247 ;; files such as lib/jsoncpp.cpp are released under the Expat license.
2248 (license (list license:gpl3+ license:expat))))
2249
d57e6d0f
RW
2250(define-public macs
2251 (package
2252 (name "macs")
0d0bcaa0 2253 (version "2.1.0.20151222")
d57e6d0f
RW
2254 (source (origin
2255 (method url-fetch)
43ec07f1 2256 (uri (pypi-uri "MACS2" version))
d57e6d0f
RW
2257 (sha256
2258 (base32
0d0bcaa0 2259 "1r2hcz6irhcq7lwbafjks98jbn34hv05avgbdjnp6w6mlfjkf8x5"))))
d57e6d0f
RW
2260 (build-system python-build-system)
2261 (arguments
2262 `(#:python ,python-2 ; only compatible with Python 2.7
2263 #:tests? #f)) ; no test target
2264 (inputs
2265 `(("python-numpy" ,python2-numpy)))
2266 (native-inputs
2267 `(("python-setuptools" ,python2-setuptools)))
2268 (home-page "http://github.com/taoliu/MACS/")
2269 (synopsis "Model based analysis for ChIP-Seq data")
2270 (description
2271 "MACS is an implementation of a ChIP-Seq analysis algorithm for
2272identifying transcript factor binding sites named Model-based Analysis of
2273ChIP-Seq (MACS). MACS captures the influence of genome complexity to evaluate
2274the significance of enriched ChIP regions and it improves the spatial
2275resolution of binding sites through combining the information of both
2276sequencing tag position and orientation.")
2277 (license license:bsd-3)))
2278
41ddebdd
BW
2279(define-public mafft
2280 (package
2281 (name "mafft")
02f35bb5 2282 (version "7.267")
41ddebdd
BW
2283 (source (origin
2284 (method url-fetch)
2285 (uri (string-append
2286 "http://mafft.cbrc.jp/alignment/software/mafft-" version
2287 "-without-extensions-src.tgz"))
2288 (file-name (string-append name "-" version ".tgz"))
2289 (sha256
2290 (base32
02f35bb5 2291 "1xl6xq1rfxkws0svrlhyqxhhwbv6r77jwblsdpcyiwzsscw6wlk0"))))
41ddebdd
BW
2292 (build-system gnu-build-system)
2293 (arguments
2294 `(#:tests? #f ; no automated tests, though there are tests in the read me
2295 #:make-flags (let ((out (assoc-ref %outputs "out")))
2296 (list (string-append "PREFIX=" out)
2297 (string-append "BINDIR="
2298 (string-append out "/bin"))))
2299 #:phases
2300 (modify-phases %standard-phases
2301 (add-after 'unpack 'enter-dir
2302 (lambda _ (chdir "core") #t))
2303 (add-after 'enter-dir 'patch-makefile
2304 (lambda _
2305 ;; on advice from the MAFFT authors, there is no need to
2306 ;; distribute mafft-profile, mafft-distance, or
2307 ;; mafft-homologs.rb as they are too "specialised".
2308 (substitute* "Makefile"
2309 ;; remove mafft-homologs.rb from SCRIPTS
2310 (("^SCRIPTS = mafft mafft-homologs.rb")
2311 "SCRIPTS = mafft")
02f35bb5
BW
2312 ;; remove mafft-homologs from MANPAGES
2313 (("^MANPAGES = mafft.1 mafft-homologs.1")
2314 "MANPAGES = mafft.1")
41ddebdd
BW
2315 ;; remove mafft-distance from PROGS
2316 (("^PROGS = dvtditr dndfast7 dndblast sextet5 mafft-distance")
2317 "PROGS = dvtditr dndfast7 dndblast sextet5")
2318 ;; remove mafft-profile from PROGS
2319 (("splittbfast disttbfast tbfast mafft-profile 2cl mccaskillwrap")
2320 "splittbfast disttbfast tbfast f2cl mccaskillwrap")
2321 (("^rm -f mafft-profile mafft-profile.exe") "#")
2322 (("^rm -f mafft-distance mafft-distance.exe") ")#")
2323 ;; do not install MAN pages in libexec folder
2324 (("^\t\\$\\(INSTALL\\) -m 644 \\$\\(MANPAGES\\) \
2325\\$\\(DESTDIR\\)\\$\\(LIBDIR\\)") "#"))
2326 #t))
02f35bb5
BW
2327 (add-after 'enter-dir 'patch-paths
2328 (lambda* (#:key inputs #:allow-other-keys)
2329 (substitute* '("pairash.c"
2330 "mafft.tmpl")
2331 (("perl") (which "perl"))
2332 (("([\"`| ])awk" _ prefix)
2333 (string-append prefix (which "awk")))
2334 (("grep") (which "grep")))
2335 #t))
41ddebdd
BW
2336 (delete 'configure))))
2337 (inputs
02f35bb5
BW
2338 `(("perl" ,perl)
2339 ("gawk" ,gawk)
2340 ("grep" ,grep)))
2341 (propagated-inputs
2342 `(("coreutils" ,coreutils)))
41ddebdd
BW
2343 (home-page "http://mafft.cbrc.jp/alignment/software/")
2344 (synopsis "Multiple sequence alignment program")
2345 (description
2346 "MAFFT offers a range of multiple alignment methods for nucleotide and
2347protein sequences. For instance, it offers L-INS-i (accurate; for alignment
2348of <~200 sequences) and FFT-NS-2 (fast; for alignment of <~30,000
2349sequences).")
2350 (license (license:non-copyleft
2351 "http://mafft.cbrc.jp/alignment/software/license.txt"
2352 "BSD-3 with different formatting"))))
8fd790eb
BW
2353
2354(define-public metabat
2355 (package
2356 (name "metabat")
2357 (version "0.26.1")
2358 (source (origin
2359 (method url-fetch)
2360 (uri (string-append
2361 "https://bitbucket.org/berkeleylab/metabat/get/"
2362 version ".tar.bz2"))
2363 (file-name (string-append name "-" version ".tar.bz2"))
2364 (sha256
2365 (base32
2366 "0vgrhbaxg4dkxyax2kbigak7w0arhqvw0szwp6gd9wmyilc44kfa"))))
2367 (build-system gnu-build-system)
2368 (arguments
2369 `(#:phases
2370 (modify-phases %standard-phases
2371 (add-after 'unpack 'fix-includes
2372 (lambda _
5ede5f2f
MW
2373 (substitute* "SConstruct"
2374 (("/include/bam/bam.h")
2375 "/include/samtools/bam.h"))
2376 (substitute* "src/BamUtils.h"
2377 (("^#include \"bam/bam\\.h\"")
2378 "#include \"samtools/bam.h\"")
2379 (("^#include \"bam/sam\\.h\"")
2380 "#include \"samtools/sam.h\""))
2381 (substitute* "src/KseqReader.h"
2382 (("^#include \"bam/kseq\\.h\"")
2383 "#include \"samtools/kseq.h\""))
2384 #t))
8fd790eb
BW
2385 (add-after 'unpack 'fix-scons
2386 (lambda _
2387 (substitute* "SConstruct" ; Do not distribute README
2388 (("^env\\.Install\\(idir_prefix, 'README\\.md'\\)")
2389 ""))
2390 #t))
2391 (delete 'configure)
2392 (replace 'build
2393 (lambda* (#:key inputs outputs #:allow-other-keys)
2394 (mkdir (assoc-ref outputs "out"))
2395 (zero? (system* "scons"
2396 (string-append
2397 "PREFIX="
2398 (assoc-ref outputs "out"))
2399 (string-append
2400 "HTSLIB_DIR="
2401 (assoc-ref inputs "htslib"))
2402 (string-append
2403 "SAMTOOLS_DIR="
2404 (assoc-ref inputs "samtools"))
2405 (string-append
2406 "BOOST_ROOT="
2407 (assoc-ref inputs "boost"))
2408 "install"))))
2409 ;; check and install carried out during build phase
2410 (delete 'check)
2411 (delete 'install))))
2412 (inputs
2413 `(("zlib" ,zlib)
2414 ("perl" ,perl)
2415 ("samtools" ,samtools)
2416 ("htslib" ,htslib)
2417 ("boost" ,boost)))
2418 (native-inputs
2419 `(("scons" ,scons)))
2420 (home-page "https://bitbucket.org/berkeleylab/metabat")
2421 (synopsis
2422 "Reconstruction of single genomes from complex microbial communities")
2423 (description
2424 "Grouping large genomic fragments assembled from shotgun metagenomic
2425sequences to deconvolute complex microbial communities, or metagenome binning,
2426enables the study of individual organisms and their interactions. MetaBAT is
2427an automated metagenome binning software, which integrates empirical
2428probabilistic distances of genome abundance and tetranucleotide frequency.")
2429 (license (license:non-copyleft "file://license.txt"
5ede5f2f 2430 "See license.txt in the distribution."))))
8fd790eb 2431
ddd82e0e
RW
2432(define-public miso
2433 (package
2434 (name "miso")
2435 (version "0.5.3")
2436 (source (origin
2437 (method url-fetch)
2438 (uri (string-append
86517de6 2439 "https://pypi.python.org/packages/source/m/misopy/misopy-"
ddd82e0e
RW
2440 version ".tar.gz"))
2441 (sha256
2442 (base32
2443 "0x446867az8ir0z8c1vjqffkp0ma37wm4sylixnkhgawllzx8v5w"))
2444 (modules '((guix build utils)))
ddd82e0e
RW
2445 (snippet
2446 '(substitute* "setup.py"
0ec8b206
RW
2447 ;; Use setuptools, or else the executables are not
2448 ;; installed.
2449 (("distutils.core") "setuptools")
2450 ;; use "gcc" instead of "cc" for compilation
ddd82e0e
RW
2451 (("^defines")
2452 "cc.set_executables(
2453compiler='gcc',
2454compiler_so='gcc',
2455linker_exe='gcc',
2456linker_so='gcc -shared'); defines")))))
2457 (build-system python-build-system)
2458 (arguments
2459 `(#:python ,python-2 ; only Python 2 is supported
2460 #:tests? #f)) ; no "test" target
2461 (inputs
2462 `(("samtools" ,samtools)
2463 ("python-numpy" ,python2-numpy)
2464 ("python-pysam" ,python2-pysam)
2465 ("python-scipy" ,python2-scipy)
2466 ("python-matplotlib" ,python2-matplotlib)))
2467 (native-inputs
0ec8b206
RW
2468 `(("python-mock" ,python2-mock) ;for tests
2469 ("python-pytz" ,python2-pytz) ;for tests
2470 ("python-setuptools" ,python2-setuptools)))
ddd82e0e
RW
2471 (home-page "http://genes.mit.edu/burgelab/miso/index.html")
2472 (synopsis "Mixture of Isoforms model for RNA-Seq isoform quantitation")
2473 (description
2474 "MISO (Mixture-of-Isoforms) is a probabilistic framework that quantitates
2475the expression level of alternatively spliced genes from RNA-Seq data, and
2476identifies differentially regulated isoforms or exons across samples. By
2477modeling the generative process by which reads are produced from isoforms in
2478RNA-Seq, the MISO model uses Bayesian inference to compute the probability
2479that a read originated from a particular isoform.")
2480 (license license:gpl2)))
2481
1e44cf8b
BW
2482(define-public orfm
2483 (package
2484 (name "orfm")
6b6f7d6a 2485 (version "0.5.3")
1e44cf8b
BW
2486 (source (origin
2487 (method url-fetch)
2488 (uri (string-append
2489 "https://github.com/wwood/OrfM/releases/download/v"
2490 version "/orfm-" version ".tar.gz"))
2491 (sha256
2492 (base32
6b6f7d6a 2493 "0vb6d771gl4mix8bwx919x5ayy9pkj44n7ki336nz3rz2rx4c7gk"))))
1e44cf8b
BW
2494 (build-system gnu-build-system)
2495 (inputs `(("zlib" ,zlib)))
6b6f7d6a
BW
2496 (native-inputs
2497 `(("ruby-bio-commandeer" ,ruby-bio-commandeer)
2498 ("ruby-rspec" ,ruby-rspec)
2499 ("ruby" ,ruby)))
1e44cf8b
BW
2500 (synopsis "Simple and not slow open reading frame (ORF) caller")
2501 (description
6b6f7d6a 2502 "An ORF caller finds stretches of DNA that, when translated, are not
1e44cf8b
BW
2503interrupted by stop codons. OrfM finds and prints these ORFs.")
2504 (home-page "https://github.com/wwood/OrfM")
2505 (license license:lgpl3+)))
2506
19ee9201
RW
2507(define-public python2-pbcore
2508 (package
2509 (name "python2-pbcore")
ddb83129 2510 (version "1.2.8")
19ee9201
RW
2511 (source (origin
2512 (method url-fetch)
ddb83129 2513 (uri (pypi-uri "pbcore" version))
19ee9201
RW
2514 (sha256
2515 (base32
ddb83129 2516 "02pfn5raa3zf739672bg0dkx7z3j2c4nx7vmpfjqy5b12jrqpymk"))))
19ee9201
RW
2517 (build-system python-build-system)
2518 (arguments `(#:python ,python-2)) ; pbcore requires Python 2.7
2519 (inputs
2520 `(("python-cython" ,python2-cython)
2521 ("python-numpy" ,python2-numpy)
2522 ("python-pysam" ,python2-pysam)
2523 ("python-h5py" ,python2-h5py)))
2524 (native-inputs
ddb83129
EF
2525 `(("python-docutils" ,python2-docutils)
2526 ("python-nose" ,python2-nose)
2527 ("python-setuptools" ,python2-setuptools)
2528 ("python-sphinx" ,python2-sphinx)))
19ee9201
RW
2529 (home-page "http://pacificbiosciences.github.io/pbcore/")
2530 (synopsis "Library for reading and writing PacBio data files")
2531 (description
2532 "The pbcore package provides Python APIs for interacting with PacBio data
2533files and writing bioinformatics applications.")
2534 (license license:bsd-3)))
2535
c61fe02c
RW
2536(define-public python2-warpedlmm
2537 (package
2538 (name "python2-warpedlmm")
2539 (version "0.21")
2540 (source
2541 (origin
2542 (method url-fetch)
2543 (uri (string-append
2544 "https://pypi.python.org/packages/source/W/WarpedLMM/WarpedLMM-"
2545 version ".zip"))
2546 (sha256
2547 (base32
2548 "1agfz6zqa8nc6cw47yh0s3y14gkpa9wqazwcj7mwwj3ffnw39p3j"))))
2549 (build-system python-build-system)
2550 (arguments
2551 `(#:python ,python-2 ; requires Python 2.7
2552 #:phases
2553 (modify-phases %standard-phases
2554 (add-after
2555 'install 'remove-bin-directory
2556 (lambda* (#:key outputs #:allow-other-keys)
2557 ;; The "bin" directory only contains wrappers for running
2558 ;; the module tests. They are not needed after the
2559 ;; "check" phase.
2560 (delete-file-recursively
2561 (string-append (assoc-ref outputs "out") "/bin"))
2562 #t)))))
2563 (propagated-inputs
2564 `(("python-scipy" ,python2-scipy)
2565 ("python-numpy" ,python2-numpy)
2566 ("python-matplotlib" ,python2-matplotlib)
2567 ("python-fastlmm" ,python2-fastlmm)
2568 ("python-pandas" ,python2-pandas)
2569 ("python-pysnptools" ,python2-pysnptools)))
2570 (native-inputs
2571 `(("python-setuptools" ,python2-setuptools)
2572 ("python-mock" ,python2-mock)
2573 ("python-nose" ,python2-nose)
2574 ("unzip" ,unzip)))
2575 (home-page "https://github.com/PMBio/warpedLMM")
2576 (synopsis "Implementation of warped linear mixed models")
2577 (description
2578 "WarpedLMM is a Python implementation of the warped linear mixed model,
2579which automatically learns an optimal warping function (or transformation) for
2580the phenotype as it models the data.")
2581 (license license:asl2.0)))
2582
2c16316e 2583(define-public pbtranscript-tofu
9a067efd 2584 (let ((commit "8f5467fe6"))
2c16316e
RW
2585 (package
2586 (name "pbtranscript-tofu")
9a067efd 2587 (version (string-append "2.2.3." commit))
2c16316e
RW
2588 (source (origin
2589 (method git-fetch)
2590 (uri (git-reference
2591 (url "https://github.com/PacificBiosciences/cDNA_primer.git")
2592 (commit commit)))
9a067efd 2593 (file-name (string-append name "-" version "-checkout"))
2c16316e
RW
2594 (sha256
2595 (base32
9a067efd
RW
2596 "1lgnpi35ihay42qx0b6yl3kkgra723i413j33kvs0kvs61h82w0f"))
2597 (modules '((guix build utils)))
2598 (snippet
2599 '(begin
2600 ;; remove bundled Cython sources
2601 (delete-file "pbtranscript-tofu/pbtranscript/Cython-0.20.1.tar.gz")
2602 #t))))
2c16316e
RW
2603 (build-system python-build-system)
2604 (arguments
2605 `(#:python ,python-2
2606 ;; With standard flags, the install phase attempts to create a zip'd
2607 ;; egg file, and fails with an error: 'ZIP does not support timestamps
2608 ;; before 1980'
2609 #:configure-flags '("--single-version-externally-managed"
2610 "--record=pbtranscript-tofu.txt")
2611 #:phases
9a067efd
RW
2612 (modify-phases %standard-phases
2613 (add-after 'unpack 'enter-directory
2614 (lambda _
2615 (chdir "pbtranscript-tofu/pbtranscript/")
2616 #t))
2617 ;; With setuptools version 18.0 and later this setup.py hack causes
2618 ;; a build error, so we disable it.
2619 (add-after 'enter-directory 'patch-setuppy
2620 (lambda _
2621 (substitute* "setup.py"
2622 (("if 'setuptools.extension' in sys.modules:")
2623 "if False:"))
2624 #t)))))
2c16316e 2625 (inputs
9a067efd 2626 `(("python-numpy" ,python2-numpy)
2c16316e 2627 ("python-bx-python" ,python2-bx-python)
c5372108
RW
2628 ("python-networkx" ,python2-networkx)
2629 ("python-scipy" ,python2-scipy)
9a067efd
RW
2630 ("python-pbcore" ,python2-pbcore)
2631 ("python-h5py" ,python2-h5py)))
2c16316e 2632 (native-inputs
9a067efd
RW
2633 `(("python-cython" ,python2-cython)
2634 ("python-nose" ,python2-nose)
2c16316e
RW
2635 ("python-setuptools" ,python2-setuptools)))
2636 (home-page "https://github.com/PacificBiosciences/cDNA_primer")
2637 (synopsis "Analyze transcriptome data generated with the Iso-Seq protocol")
2638 (description
2639 "pbtranscript-tofu contains scripts to analyze transcriptome data
2640generated using the PacBio Iso-Seq protocol.")
2641 (license license:bsd-3))))
2642
846e3409
RW
2643(define-public pyicoteo
2644 (package
2645 (name "pyicoteo")
2646 (version "2.0.7")
2647 (source
2648 (origin
2649 (method url-fetch)
2650 (uri (string-append "https://bitbucket.org/regulatorygenomicsupf/"
2651 "pyicoteo/get/v" version ".tar.bz2"))
2652 (file-name (string-append name "-" version ".tar.bz2"))
2653 (sha256
2654 (base32
2655 "0d6087f29xp8wxwlj111c3sylli98n0l8ry58c51ixzq0zfm50wa"))))
2656 (build-system python-build-system)
2657 (arguments
2658 `(#:python ,python-2 ; does not work with Python 3
2659 #:tests? #f)) ; there are no tests
2660 (inputs
2661 `(("python2-matplotlib" ,python2-matplotlib)))
2662 (home-page "https://bitbucket.org/regulatorygenomicsupf/pyicoteo")
2663 (synopsis "Analyze high-throughput genetic sequencing data")
2664 (description
2665 "Pyicoteo is a suite of tools for the analysis of high-throughput genetic
2666sequencing data. It works with genomic coordinates. There are currently six
2667different command-line tools:
2668
2669@enumerate
2670@item pyicoregion: for generating exploratory regions automatically;
2671@item pyicoenrich: for differential enrichment between two conditions;
2672@item pyicoclip: for calling CLIP-Seq peaks without a control;
2673@item pyicos: for genomic coordinates manipulation;
2674@item pyicoller: for peak calling on punctuated ChIP-Seq;
2675@item pyicount: to count how many reads from N experiment files overlap in a
2676 region file;
2677@item pyicotrocol: to combine operations from pyicoteo.
2678@end enumerate\n")
2679 (license license:gpl3+)))
2680
af860475
BW
2681(define-public prodigal
2682 (package
2683 (name "prodigal")
e70f7a23 2684 (version "2.6.3")
af860475
BW
2685 (source (origin
2686 (method url-fetch)
2687 (uri (string-append
2688 "https://github.com/hyattpd/Prodigal/archive/v"
2689 version ".tar.gz"))
2690 (file-name (string-append name "-" version ".tar.gz"))
2691 (sha256
2692 (base32
e70f7a23 2693 "17srxkqd3jc77xk15pfbgg1a9xahqg7337w95mrsia7mpza4l2c9"))))
af860475
BW
2694 (build-system gnu-build-system)
2695 (arguments
2696 `(#:tests? #f ;no check target
2697 #:make-flags (list (string-append "INSTALLDIR="
2698 (assoc-ref %outputs "out")
2699 "/bin"))
2700 #:phases
2701 (modify-phases %standard-phases
2702 (delete 'configure))))
2703 (home-page "http://prodigal.ornl.gov")
2704 (synopsis "Protein-coding gene prediction for Archaea and Bacteria")
2705 (description
2706 "Prodigal runs smoothly on finished genomes, draft genomes, and
2707metagenomes, providing gene predictions in GFF3, Genbank, or Sequin table
2708format. It runs quickly, in an unsupervised fashion, handles gaps, handles
2709partial genes, and identifies translation initiation sites.")
2710 (license license:gpl3+)))
2711
66e3eff1
RW
2712(define-public rsem
2713 (package
2714 (name "rsem")
2715 (version "1.2.20")
2716 (source
2717 (origin
2718 (method url-fetch)
2719 (uri
2720 (string-append "http://deweylab.biostat.wisc.edu/rsem/src/rsem-"
2721 version ".tar.gz"))
2722 (sha256
2723 (base32 "0nzdc0j0hjllhsd5f2xli95dafm3nawskigs140xzvjk67xh0r9q"))
fc1adab1 2724 (patches (search-patches "rsem-makefile.patch"))
66e3eff1
RW
2725 (modules '((guix build utils)))
2726 (snippet
2727 '(begin
2728 ;; remove bundled copy of boost
2729 (delete-file-recursively "boost")
2730 #t))))
2731 (build-system gnu-build-system)
2732 (arguments
2733 `(#:tests? #f ;no "check" target
2734 #:phases
2735 (modify-phases %standard-phases
2736 ;; No "configure" script.
2737 ;; Do not build bundled samtools library.
2738 (replace 'configure
2739 (lambda _
2740 (substitute* "Makefile"
2741 (("^all : sam/libbam.a") "all : "))
2742 #t))
2743 (replace 'install
2744 (lambda* (#:key outputs #:allow-other-keys)
2745 (let* ((out (string-append (assoc-ref outputs "out")))
2746 (bin (string-append out "/bin/"))
2747 (perl (string-append out "/lib/perl5/site_perl")))
2748 (mkdir-p bin)
2749 (mkdir-p perl)
2750 (for-each (lambda (file)
2751 (copy-file file
2752 (string-append bin (basename file))))
2753 (find-files "." "rsem-.*"))
2754 (copy-file "rsem_perl_utils.pm"
2755 (string-append perl "/rsem_perl_utils.pm")))
2756 #t))
2757 (add-after
2758 'install 'wrap-program
2759 (lambda* (#:key outputs #:allow-other-keys)
2760 (let ((out (assoc-ref outputs "out")))
2761 (for-each (lambda (prog)
2762 (wrap-program (string-append out "/bin/" prog)
2763 `("PERL5LIB" ":" prefix
2764 (,(string-append out "/lib/perl5/site_perl")))))
2765 '("rsem-plot-transcript-wiggles"
2766 "rsem-calculate-expression"
2767 "rsem-generate-ngvector"
2768 "rsem-run-ebseq"
2769 "rsem-prepare-reference")))
2770 #t)))))
2771 (inputs
2772 `(("boost" ,boost)
2773 ("ncurses" ,ncurses)
2774 ("r" ,r)
2775 ("perl" ,perl)
2776 ("samtools" ,samtools-0.1)
2777 ("zlib" ,zlib)))
2778 (home-page "http://deweylab.biostat.wisc.edu/rsem/")
2779 (synopsis "Estimate gene expression levels from RNA-Seq data")
2780 (description
2781 "RSEM is a software package for estimating gene and isoform expression
2782levels from RNA-Seq data. The RSEM package provides a user-friendly
2783interface, supports threads for parallel computation of the EM algorithm,
2784single-end and paired-end read data, quality scores, variable-length reads and
2785RSPD estimation. In addition, it provides posterior mean and 95% credibility
2786interval estimates for expression levels. For visualization, it can generate
2787BAM and Wiggle files in both transcript-coordinate and genomic-coordinate.")
2788 (license license:gpl3+)))
2789
8622a072
RW
2790(define-public rseqc
2791 (package
2792 (name "rseqc")
2793 (version "2.6.1")
2794 (source
2795 (origin
2796 (method url-fetch)
2797 (uri
2798 (string-append "mirror://sourceforge/rseqc/"
2799 version "/RSeQC-" version ".tar.gz"))
2800 (sha256
8214b7fb 2801 (base32 "15ly0254yi032qzkdplg00q144qfdsd986gh62829rl5bkxhj330"))
8622a072
RW
2802 (modules '((guix build utils)))
2803 (snippet
2804 '(begin
2805 ;; remove bundled copy of pysam
2806 (delete-file-recursively "lib/pysam")
2807 (substitute* "setup.py"
2808 ;; remove dependency on outdated "distribute" module
2809 (("^from distribute_setup import use_setuptools") "")
2810 (("^use_setuptools\\(\\)") "")
2811 ;; do not use bundled copy of pysam
2812 (("^have_pysam = False") "have_pysam = True"))))))
2813 (build-system python-build-system)
2814 (arguments `(#:python ,python-2))
2815 (inputs
2816 `(("python-cython" ,python2-cython)
2817 ("python-pysam" ,python2-pysam)
2818 ("python-numpy" ,python2-numpy)
2819 ("python-setuptools" ,python2-setuptools)
2820 ("zlib" ,zlib)))
2821 (native-inputs
2822 `(("python-nose" ,python2-nose)))
2823 (home-page "http://rseqc.sourceforge.net/")
2824 (synopsis "RNA-seq quality control package")
2825 (description
2826 "RSeQC provides a number of modules that can comprehensively evaluate
2827high throughput sequence data, especially RNA-seq data. Some basic modules
2828inspect sequence quality, nucleotide composition bias, PCR bias and GC bias,
2829while RNA-seq specific modules evaluate sequencing saturation, mapped reads
2830distribution, coverage uniformity, strand specificity, etc.")
2831 (license license:gpl3+)))
2832
4e10a221
RW
2833(define-public samtools
2834 (package
2835 (name "samtools")
c4473411 2836 (version "1.3")
4e10a221
RW
2837 (source
2838 (origin
2839 (method url-fetch)
2840 (uri
2841 (string-append "mirror://sourceforge/samtools/"
2842 version "/samtools-" version ".tar.bz2"))
2843 (sha256
2844 (base32
c4473411 2845 "03mnf0mhbfwhqlqfslrhfnw68s3g0fs1as354i9a584mqw1l1smy"))))
4e10a221
RW
2846 (build-system gnu-build-system)
2847 (arguments
c4473411 2848 `(#:modules ((ice-9 ftw)
5bdda30b
RW
2849 (ice-9 regex)
2850 (guix build gnu-build-system)
2851 (guix build utils))
c4473411
RW
2852 #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
2853 #:configure-flags (list "--with-ncurses")
4e10a221
RW
2854 #:phases
2855 (alist-cons-after
c4473411
RW
2856 'unpack 'patch-tests
2857 (lambda _
2858 (substitute* "test/test.pl"
2859 ;; The test script calls out to /bin/bash
2860 (("/bin/bash") (which "bash")))
2861 #t)
41dd7126
RW
2862 (alist-cons-after
2863 'install 'install-library
2864 (lambda* (#:key outputs #:allow-other-keys)
2865 (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
96c46210 2866 (install-file "libbam.a" lib)))
5bdda30b
RW
2867 (alist-cons-after
2868 'install 'install-headers
2869 (lambda* (#:key outputs #:allow-other-keys)
2870 (let ((include (string-append (assoc-ref outputs "out")
2871 "/include/samtools/")))
5bdda30b 2872 (for-each (lambda (file)
96c46210 2873 (install-file file include))
5bdda30b
RW
2874 (scandir "." (lambda (name) (string-match "\\.h$" name))))
2875 #t))
c4473411 2876 %standard-phases)))))
4e10a221
RW
2877 (native-inputs `(("pkg-config" ,pkg-config)))
2878 (inputs `(("ncurses" ,ncurses)
2879 ("perl" ,perl)
2880 ("python" ,python)
2881 ("zlib" ,zlib)))
2882 (home-page "http://samtools.sourceforge.net")
2883 (synopsis "Utilities to efficiently manipulate nucleotide sequence alignments")
2884 (description
2885 "Samtools implements various utilities for post-processing nucleotide
2886sequence alignments in the SAM, BAM, and CRAM formats, including indexing,
2887variant calling (in conjunction with bcftools), and a simple alignment
2888viewer.")
2889 (license license:expat)))
d3517eda 2890
0b84a0aa
RW
2891(define-public samtools-0.1
2892 ;; This is the most recent version of the 0.1 line of samtools. The input
2893 ;; and output formats differ greatly from that used and produced by samtools
2894 ;; 1.x and is still used in many bioinformatics pipelines.
2895 (package (inherit samtools)
2896 (version "0.1.19")
2897 (source
2898 (origin
2899 (method url-fetch)
2900 (uri
2901 (string-append "mirror://sourceforge/samtools/"
2902 version "/samtools-" version ".tar.bz2"))
2903 (sha256
2904 (base32 "1m33xsfwz0s8qi45lylagfllqg7fphf4dr0780rsvw75av9wk06h"))))
2905 (arguments
2309ed68
RW
2906 `(#:tests? #f ;no "check" target
2907 ,@(substitute-keyword-arguments (package-arguments samtools)
2908 ((#:make-flags flags)
2909 `(cons "LIBCURSES=-lncurses" ,flags))
2910 ((#:phases phases)
2911 `(modify-phases ,phases
2912 (replace 'install
2913 (lambda* (#:key outputs #:allow-other-keys)
2914 (let ((bin (string-append
2915 (assoc-ref outputs "out") "/bin")))
2916 (mkdir-p bin)
2917 (copy-file "samtools"
2918 (string-append bin "/samtools")))))
2919 (delete 'patch-tests)
2920 (delete 'configure))))))))
0b84a0aa 2921
fe4c37c2
RW
2922(define-public mosaik
2923 (let ((commit "5c25216d"))
2924 (package
2925 (name "mosaik")
2926 (version "2.2.30")
2927 (source (origin
2928 ;; There are no release tarballs nor tags.
2929 (method git-fetch)
2930 (uri (git-reference
2931 (url "https://github.com/wanpinglee/MOSAIK.git")
2932 (commit commit)))
2933 (file-name (string-append name "-" version))
2934 (sha256
2935 (base32
2936 "17gj3s07cm77r41z92awh0bim7w7q7fbn0sf5nkqmcm1vw052qgw"))))
2937 (build-system gnu-build-system)
2938 (arguments
2939 `(#:tests? #f ; no tests
2940 #:make-flags (list "CC=gcc")
2941 #:phases
2942 (modify-phases %standard-phases
2943 (replace 'configure
2944 (lambda _ (chdir "src") #t))
2945 (replace 'install
2946 (lambda* (#:key outputs #:allow-other-keys)
2947 (let ((bin (string-append (assoc-ref outputs "out")
2948 "/bin")))
2949 (mkdir-p bin)
2950 (copy-recursively "../bin" bin)
2951 #t))))))
2952 (inputs
2953 `(("perl" ,perl)
2954 ("zlib" ,zlib)))
029d9f77 2955 (supported-systems '("x86_64-linux"))
fe4c37c2
RW
2956 (home-page "https://code.google.com/p/mosaik-aligner/")
2957 (synopsis "Map nucleotide sequence reads to reference genomes")
2958 (description
2959 "MOSAIK is a program for mapping second and third-generation sequencing
2960reads to a reference genome. MOSAIK can align reads generated by all the
2961major sequencing technologies, including Illumina, Applied Biosystems SOLiD,
2962Roche 454, Ion Torrent and Pacific BioSciences SMRT.")
2963 ;; MOSAIK is released under the GPLv2+ with the exception of third-party
2964 ;; code released into the public domain:
2965 ;; 1. fastlz by Ariya Hidayat - http://www.fastlz.org/
2966 ;; 2. MD5 implementation - RSA Data Security, RFC 1321
2967 (license (list license:gpl2+ license:public-domain)))))
2968
282c5087
RW
2969(define-public ngs-sdk
2970 (package
2971 (name "ngs-sdk")
d3b39bc2 2972 (version "1.2.3")
282c5087
RW
2973 (source
2974 (origin
2975 (method url-fetch)
2976 (uri
2977 (string-append "https://github.com/ncbi/ngs/archive/"
2978 version ".tar.gz"))
2979 (file-name (string-append name "-" version ".tar.gz"))
2980 (sha256
2981 (base32
d3b39bc2 2982 "15074fdi94c6pjy83hhk22r86kfvzpaz2i07h3rqg9yy6x3w0pk2"))))
282c5087
RW
2983 (build-system gnu-build-system)
2984 (arguments
2985 `(#:parallel-build? #f ; not supported
2986 #:tests? #f ; no "check" target
2987 #:phases
2988 (alist-replace
2989 'configure
2990 (lambda* (#:key outputs #:allow-other-keys)
2991 (let ((out (assoc-ref outputs "out")))
282c5087
RW
2992 ;; The 'configure' script doesn't recognize things like
2993 ;; '--enable-fast-install'.
2994 (zero? (system* "./configure"
2995 (string-append "--build-prefix=" (getcwd) "/build")
2996 (string-append "--prefix=" out)))))
2997 (alist-cons-after
2998 'unpack 'enter-dir
2999 (lambda _ (chdir "ngs-sdk") #t)
3000 %standard-phases))))
3001 (native-inputs `(("perl" ,perl)))
a0dadf0c
AE
3002 ;; According to the test
3003 ;; unless ($MARCH =~ /x86_64/i || $MARCH =~ /i?86/i)
3004 ;; in ngs-sdk/setup/konfigure.perl
ab29be81 3005 (supported-systems '("i686-linux" "x86_64-linux"))
282c5087
RW
3006 (home-page "https://github.com/ncbi/ngs")
3007 (synopsis "API for accessing Next Generation Sequencing data")
3008 (description
3009 "NGS is a domain-specific API for accessing reads, alignments and pileups
3010produced from Next Generation Sequencing. The API itself is independent from
3011any particular back-end implementation, and supports use of multiple back-ends
3012simultaneously.")
3013 (license license:public-domain)))
3014
2651a5e6
RW
3015(define-public ngs-java
3016 (package (inherit ngs-sdk)
3017 (name "ngs-java")
3018 (arguments
3019 `(,@(substitute-keyword-arguments
3020 `(#:modules ((guix build gnu-build-system)
3021 (guix build utils)
3022 (srfi srfi-1)
3023 (srfi srfi-26))
3024 ,@(package-arguments ngs-sdk))
3025 ((#:phases phases)
614a8977
RW
3026 `(modify-phases ,phases
3027 (replace 'enter-dir (lambda _ (chdir "ngs-java") #t)))))))
2651a5e6 3028 (inputs
d2540f80 3029 `(("jdk" ,icedtea "jdk")
2651a5e6
RW
3030 ("ngs-sdk" ,ngs-sdk)))
3031 (synopsis "Java bindings for NGS SDK")))
3032
75dd2424
RW
3033(define-public ncbi-vdb
3034 (package
3035 (name "ncbi-vdb")
fe91666b 3036 (version "2.5.7")
75dd2424
RW
3037 (source
3038 (origin
3039 (method url-fetch)
3040 (uri
3041 (string-append "https://github.com/ncbi/ncbi-vdb/archive/"
3042 version ".tar.gz"))
3043 (file-name (string-append name "-" version ".tar.gz"))
3044 (sha256
3045 (base32
fe91666b 3046 "0hay5hy8ynva3mi5wbn4wmq1q23qwxc3aqzbb86hg3x4f1r73270"))))
75dd2424
RW
3047 (build-system gnu-build-system)
3048 (arguments
3049 `(#:parallel-build? #f ; not supported
3050 #:tests? #f ; no "check" target
3051 #:phases
3052 (alist-replace
3053 'configure
3054 (lambda* (#:key inputs outputs #:allow-other-keys)
3055 (let ((out (assoc-ref outputs "out")))
75dd2424
RW
3056 ;; Override include path for libmagic
3057 (substitute* "setup/package.prl"
3058 (("name => 'magic', Include => '/usr/include'")
3059 (string-append "name=> 'magic', Include => '"
3060 (assoc-ref inputs "libmagic")
3061 "/include" "'")))
3062
3063 ;; Install kdf5 library (needed by sra-tools)
3064 (substitute* "build/Makefile.install"
3065 (("LIBRARIES_TO_INSTALL =")
3066 "LIBRARIES_TO_INSTALL = kdf5.$(VERSION_LIBX) kdf5.$(VERSION_SHLX)"))
3067
3068 ;; The 'configure' script doesn't recognize things like
3069 ;; '--enable-fast-install'.
3070 (zero? (system*
3071 "./configure"
3072 (string-append "--build-prefix=" (getcwd) "/build")
3073 (string-append "--prefix=" (assoc-ref outputs "out"))
3074 (string-append "--debug")
3075 (string-append "--with-xml2-prefix="
3076 (assoc-ref inputs "libxml2"))
3077 (string-append "--with-ngs-sdk-prefix="
3078 (assoc-ref inputs "ngs-sdk"))
3079 (string-append "--with-ngs-java-prefix="
3080 (assoc-ref inputs "ngs-java"))
3081 (string-append "--with-hdf5-prefix="
3082 (assoc-ref inputs "hdf5"))))))
3083 (alist-cons-after
3084 'install 'install-interfaces
132b4c8c
RW
3085 (lambda* (#:key outputs #:allow-other-keys)
3086 ;; Install interface libraries. On i686 the interface libraries
3087 ;; are installed to "linux/gcc/i386", so we need to use the Linux
3088 ;; architecture name ("i386") instead of the target system prefix
3089 ;; ("i686").
75dd2424
RW
3090 (mkdir (string-append (assoc-ref outputs "out") "/ilib"))
3091 (copy-recursively (string-append "build/ncbi-vdb/linux/gcc/"
132b4c8c
RW
3092 ,(system->linux-architecture
3093 (or (%current-target-system)
3094 (%current-system)))
75dd2424
RW
3095 "/rel/ilib")
3096 (string-append (assoc-ref outputs "out")
3097 "/ilib"))
3098 ;; Install interface headers
3099 (copy-recursively "interfaces"
3100 (string-append (assoc-ref outputs "out")
3101 "/include")))
3102 %standard-phases))))
3103 (inputs
3104 `(("libxml2" ,libxml2)
3105 ("ngs-sdk" ,ngs-sdk)
3106 ("ngs-java" ,ngs-java)
3107 ("libmagic" ,file)
3108 ("hdf5" ,hdf5)))
3109 (native-inputs `(("perl" ,perl)))
3110 (home-page "https://github.com/ncbi/ncbi-vdb")
3111 (synopsis "Database engine for genetic information")
3112 (description
3113 "The NCBI-VDB library implements a highly compressed columnar data
3114warehousing engine that is most often used to store genetic information.
3115Databases are stored in a portable image within the file system, and can be
3116accessed/downloaded on demand across HTTP.")
3117 (license license:public-domain)))
3118
cc6ed477
RW
3119(define-public plink
3120 (package
3121 (name "plink")
3122 (version "1.07")
3123 (source
3124 (origin
3125 (method url-fetch)
3126 (uri (string-append
3127 "http://pngu.mgh.harvard.edu/~purcell/plink/dist/plink-"
3128 version "-src.zip"))
3129 (sha256
3130 (base32 "0as8gxm4pjyc8dxmm1sl873rrd7wn5qs0l29nqfnl31x8i467xaa"))
fc1adab1 3131 (patches (search-patches "plink-1.07-unclobber-i.patch"))))
cc6ed477
RW
3132 (build-system gnu-build-system)
3133 (arguments
3134 '(#:tests? #f ;no "check" target
3135 #:make-flags (list (string-append "LIB_LAPACK="
3136 (assoc-ref %build-inputs "lapack")
3137 "/lib/liblapack.so")
3138 "WITH_LAPACK=1"
3139 "FORCE_DYNAMIC=1"
3140 ;; disable phoning home
3141 "WITH_WEBCHECK=")
3142 #:phases
3143 (modify-phases %standard-phases
3144 ;; no "configure" script
3145 (delete 'configure)
3146 (replace 'install
3147 (lambda* (#:key outputs #:allow-other-keys)
3148 (let ((bin (string-append (assoc-ref outputs "out")
3149 "/bin/")))
96c46210 3150 (install-file "plink" bin)
cc6ed477
RW
3151 #t))))))
3152 (inputs
3153 `(("zlib" ,zlib)
3154 ("lapack" ,lapack)))
3155 (native-inputs
3156 `(("unzip" ,unzip)))
3157 (home-page "http://pngu.mgh.harvard.edu/~purcell/plink/")
3158 (synopsis "Whole genome association analysis toolset")
3159 (description
3160 "PLINK is a whole genome association analysis toolset, designed to
3161perform a range of basic, large-scale analyses in a computationally efficient
3162manner. The focus of PLINK is purely on analysis of genotype/phenotype data,
3163so there is no support for steps prior to this (e.g. study design and
3164planning, generating genotype or CNV calls from raw data). Through
3165integration with gPLINK and Haploview, there is some support for the
3166subsequent visualization, annotation and storage of results.")
3167 ;; Code is released under GPLv2, except for fisher.h, which is under
3168 ;; LGPLv2.1+
3169 (license (list license:gpl2 license:lgpl2.1+))))
3170
c6a24d6e
RW
3171(define-public smithlab-cpp
3172 (let ((revision "1")
3173 (commit "728a097"))
3174 (package
3175 (name "smithlab-cpp")
3176 (version (string-append "0." revision "." commit))
3177 (source (origin
3178 (method git-fetch)
3179 (uri (git-reference
3180 (url "https://github.com/smithlabcode/smithlab_cpp.git")
3181 (commit commit)))
3182 (file-name (string-append name "-" version "-checkout"))
3183 (sha256
3184 (base32
3185 "0d476lmj312xk77kr9fzrv7z1bv96yfyx0w7y62ycmnfbx32ll74"))))
3186 (build-system gnu-build-system)
3187 (arguments
3188 `(#:modules ((guix build gnu-build-system)
3189 (guix build utils)
3190 (srfi srfi-26))
3191 #:tests? #f ;no "check" target
3192 #:phases
3193 (modify-phases %standard-phases
3194 (add-after 'unpack 'use-samtools-headers
3195 (lambda _
3196 (substitute* '("SAM.cpp"
3197 "SAM.hpp")
3198 (("sam.h") "samtools/sam.h"))
3199 #t))
3200 (replace 'install
3201 (lambda* (#:key outputs #:allow-other-keys)
3202 (let* ((out (assoc-ref outputs "out"))
3203 (lib (string-append out "/lib"))
3204 (include (string-append out "/include/smithlab-cpp")))
3205 (mkdir-p lib)
3206 (mkdir-p include)
3207 (for-each (cut install-file <> lib)
3208 (find-files "." "\\.o$"))
3209 (for-each (cut install-file <> include)
3210 (find-files "." "\\.hpp$")))
3211 #t))
3212 (delete 'configure))))
3213 (inputs
3214 `(("samtools" ,samtools-0.1)
3215 ("zlib" ,zlib)))
3216 (home-page "https://github.com/smithlabcode/smithlab_cpp")
3217 (synopsis "C++ helper library for functions used in Smith lab projects")
3218 (description
3219 "Smithlab CPP is a C++ library that includes functions used in many of
3220the Smith lab bioinformatics projects, such as a wrapper around Samtools data
3221structures, classes for genomic regions, mapped sequencing reads, etc.")
3222 (license license:gpl3+))))
3223
56e373ef
RW
3224(define-public preseq
3225 (package
3226 (name "preseq")
b49c5a58 3227 (version "2.0")
56e373ef
RW
3228 (source (origin
3229 (method url-fetch)
b49c5a58
RW
3230 (uri (string-append "https://github.com/smithlabcode/"
3231 "preseq/archive/v" version ".tar.gz"))
3232 (file-name (string-append name "-" version ".tar.gz"))
56e373ef 3233 (sha256
b49c5a58 3234 (base32 "08r684l50pnxjpvmhzjgqq56yv9rfw90k8vx0nsrnrzk8mf9hsdq"))
56e373ef
RW
3235 (modules '((guix build utils)))
3236 (snippet
3237 ;; Remove bundled samtools.
b49c5a58 3238 '(delete-file-recursively "samtools"))))
56e373ef
RW
3239 (build-system gnu-build-system)
3240 (arguments
3241 `(#:tests? #f ;no "check" target
3242 #:phases
3243 (modify-phases %standard-phases
56e373ef 3244 (delete 'configure))
b49c5a58
RW
3245 #:make-flags
3246 (list (string-append "PREFIX="
3247 (assoc-ref %outputs "out"))
3248 (string-append "LIBBAM="
3249 (assoc-ref %build-inputs "samtools")
3250 "/lib/libbam.a")
3251 (string-append "SMITHLAB_CPP="
3252 (assoc-ref %build-inputs "smithlab-cpp")
3253 "/lib")
3254 "PROGS=preseq"
3255 "INCLUDEDIRS=$(SMITHLAB_CPP)/../include/smithlab-cpp $(SAMTOOLS_DIR)")))
56e373ef
RW
3256 (inputs
3257 `(("gsl" ,gsl)
3258 ("samtools" ,samtools-0.1)
b49c5a58 3259 ("smithlab-cpp" ,smithlab-cpp)
56e373ef
RW
3260 ("zlib" ,zlib)))
3261 (home-page "http://smithlabresearch.org/software/preseq/")
3262 (synopsis "Program for analyzing library complexity")
3263 (description
3264 "The preseq package is aimed at predicting and estimating the complexity
3265of a genomic sequencing library, equivalent to predicting and estimating the
3266number of redundant reads from a given sequencing depth and how many will be
3267expected from additional sequencing using an initial sequencing experiment.
3268The estimates can then be used to examine the utility of further sequencing,
3269optimize the sequencing depth, or to screen multiple libraries to avoid low
3270complexity samples.")
3271 (license license:gpl3+)))
3272
51c64999
RW
3273(define-public sra-tools
3274 (package
3275 (name "sra-tools")
a78d62f4 3276 (version "2.5.7")
51c64999
RW
3277 (source
3278 (origin
3279 (method url-fetch)
3280 (uri
3281 (string-append "https://github.com/ncbi/sra-tools/archive/"
3282 version ".tar.gz"))
3283 (file-name (string-append name "-" version ".tar.gz"))
3284 (sha256
3285 (base32
a78d62f4 3286 "0q93qg744x787d08qmjmdafki1wkbvkdwynayjnjd454gkd26jl5"))))
51c64999
RW
3287 (build-system gnu-build-system)
3288 (arguments
3289 `(#:parallel-build? #f ; not supported
3290 #:tests? #f ; no "check" target
3291 #:phases
3292 (alist-replace
3293 'configure
3294 (lambda* (#:key inputs outputs #:allow-other-keys)
3295 ;; The build system expects a directory containing the sources and
3296 ;; raw build output of ncbi-vdb, including files that are not
3297 ;; installed. Since we are building against an installed version of
3298 ;; ncbi-vdb, the following modifications are needed.
3299 (substitute* "setup/konfigure.perl"
3300 ;; Make the configure script look for the "ilib" directory of
3301 ;; "ncbi-vdb" without first checking for the existence of a
3302 ;; matching library in its "lib" directory.
3303 (("^ my \\$f = File::Spec->catdir\\(\\$libdir, \\$lib\\);")
3304 "my $f = File::Spec->catdir($ilibdir, $ilib);")
3305 ;; Look for interface libraries in ncbi-vdb's "ilib" directory.
3306 (("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
3307 "my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
3308
3309 ;; The 'configure' script doesn't recognize things like
3310 ;; '--enable-fast-install'.
3311 (zero? (system*
3312 "./configure"
3313 (string-append "--build-prefix=" (getcwd) "/build")
3314 (string-append "--prefix=" (assoc-ref outputs "out"))
3315 (string-append "--debug")
3316 (string-append "--with-fuse-prefix="
3317 (assoc-ref inputs "fuse"))
3318 (string-append "--with-magic-prefix="
3319 (assoc-ref inputs "libmagic"))
3320 ;; TODO: building with libxml2 fails with linker errors
3321 ;; (string-append "--with-xml2-prefix="
3322 ;; (assoc-ref inputs "libxml2"))
3323 (string-append "--with-ncbi-vdb-sources="
3324 (assoc-ref inputs "ncbi-vdb"))
3325 (string-append "--with-ncbi-vdb-build="
3326 (assoc-ref inputs "ncbi-vdb"))
3327 (string-append "--with-ngs-sdk-prefix="
3328 (assoc-ref inputs "ngs-sdk"))
3329 (string-append "--with-hdf5-prefix="
3330 (assoc-ref inputs "hdf5")))))
3331 %standard-phases)))
3332 (native-inputs `(("perl" ,perl)))
3333 (inputs
3334 `(("ngs-sdk" ,ngs-sdk)
3335 ("ncbi-vdb" ,ncbi-vdb)
3336 ("libmagic" ,file)
3337 ("fuse" ,fuse)
3338 ("hdf5" ,hdf5)
3339 ("zlib" ,zlib)))
3340 (home-page "http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software")
3341 (synopsis "Tools and libraries for reading and writing sequencing data")
3342 (description
3343 "The SRA Toolkit from NCBI is a collection of tools and libraries for
3344reading of sequencing files from the Sequence Read Archive (SRA) database and
3345writing files into the .sra format.")
3346 (license license:public-domain)))
3347
d3517eda
RW
3348(define-public seqan
3349 (package
3350 (name "seqan")
3351 (version "1.4.2")
3352 (source (origin
3353 (method url-fetch)
3354 (uri (string-append "http://packages.seqan.de/seqan-library/"
3355 "seqan-library-" version ".tar.bz2"))
3356 (sha256
3357 (base32
3358 "05s3wrrwn50f81aklfm65i4a749zag1vr8z03k21xm0pdxy47yvp"))))
3359 ;; The documentation is 7.8MB and the includes are 3.6MB heavy, so it
3360 ;; makes sense to split the outputs.
3361 (outputs '("out" "doc"))
3362 (build-system trivial-build-system)
3363 (arguments
3364 `(#:modules ((guix build utils))
3365 #:builder
3366 (begin
3367 (use-modules (guix build utils))
3368 (let ((tar (assoc-ref %build-inputs "tar"))
3369 (bzip (assoc-ref %build-inputs "bzip2"))
3370 (out (assoc-ref %outputs "out"))
3371 (doc (assoc-ref %outputs "doc")))
3372 (setenv "PATH" (string-append tar "/bin:" bzip "/bin"))
3373 (system* "tar" "xvf" (assoc-ref %build-inputs "source"))
3374 (chdir (string-append "seqan-library-" ,version))
3375 (copy-recursively "include" (string-append out "/include"))
3376 (copy-recursively "share" (string-append doc "/share"))))))
3377 (native-inputs
3378 `(("source" ,source)
3379 ("tar" ,tar)
3380 ("bzip2" ,bzip2)))
3381 (home-page "http://www.seqan.de")
3382 (synopsis "Library for nucleotide sequence analysis")
3383 (description
3384 "SeqAn is a C++ library of efficient algorithms and data structures for
3385the analysis of sequences with the focus on biological data. It contains
3386algorithms and data structures for string representation and their
3387manipulation, online and indexed string search, efficient I/O of
3388bioinformatics file formats, sequence alignment, and more.")
3389 (license license:bsd-3)))
ce7155d5 3390
d708b7a9
BW
3391(define-public seqmagick
3392 (package
3393 (name "seqmagick")
3394 (version "0.6.1")
3395 (source
3396 (origin
3397 (method url-fetch)
3398 (uri (string-append
3399 "https://pypi.python.org/packages/source/s/seqmagick/seqmagick-"
3400 version ".tar.gz"))
3401 (sha256
3402 (base32
3403 "0cgn477n74gsl4qdaakrrhi953kcsd4q3ivk2lr18x74s3g4ma1d"))))
3404 (build-system python-build-system)
3405 (arguments
3406 ;; python2 only, see https://github.com/fhcrc/seqmagick/issues/56
3407 `(#:python ,python-2
3408 #:phases
3409 (modify-phases %standard-phases
3410 ;; Current test in setup.py does not work as of 0.6.1,
3411 ;; so use nose to run tests instead for now. See
3412 ;; https://github.com/fhcrc/seqmagick/issues/55
3413 (replace 'check (lambda _ (zero? (system* "nosetests")))))))
3414 (inputs
3415 `(("python-biopython" ,python2-biopython)))
3416 (native-inputs
3417 `(("python-setuptools" ,python2-setuptools)
3418 ("python-nose" ,python2-nose)))
3419 (home-page "http://github.com/fhcrc/seqmagick")
3420 (synopsis "Tools for converting and modifying sequence files")
3421 (description
3422 "Bioinformaticians often have to convert sequence files between formats
3423and do little manipulations on them, and it's not worth writing scripts for
3424that. Seqmagick is a utility to expose the file format conversion in
3425BioPython in a convenient way. Instead of having a big mess of scripts, there
3426is one that takes arguments.")
3427 (license license:gpl3)))
3428
5f7e17be
BW
3429(define-public snap-aligner
3430 (package
3431 (name "snap-aligner")
3432 (version "1.0beta.18")
3433 (source (origin
3434 (method url-fetch)
3435 (uri (string-append
3436 "https://github.com/amplab/snap/archive/v"
3437 version ".tar.gz"))
3438 (file-name (string-append name "-" version ".tar.gz"))
3439 (sha256
3440 (base32
3441 "1vnsjwv007k1fl1q7d681kbwn6bc66cgw6h16hym6gvyy71qv2ly"))))
3442 (build-system gnu-build-system)
3443 (arguments
3444 '(#:phases
3445 (modify-phases %standard-phases
3446 (delete 'configure)
3447 (replace 'check (lambda _ (zero? (system* "./unit_tests"))))
3448 (replace 'install
3449 (lambda* (#:key outputs #:allow-other-keys)
3450 (let* ((out (assoc-ref outputs "out"))
3451 (bin (string-append out "/bin")))
3452 (mkdir-p bin)
3453 (install-file "snap-aligner" bin)
3454 (install-file "SNAPCommand" bin)
3455 #t))))))
3456 (native-inputs
3457 `(("zlib" ,zlib)))
3458 (home-page "http://snap.cs.berkeley.edu/")
3459 (synopsis "Short read DNA sequence aligner")
3460 (description
3461 "SNAP is a fast and accurate aligner for short DNA reads. It is
3462optimized for modern read lengths of 100 bases or higher, and takes advantage
3463of these reads to align data quickly through a hash-based indexing scheme.")
3464 (license license:asl2.0)))
3465
bcadaf00
BW
3466(define-public sortmerna
3467 (package
3468 (name "sortmerna")
ce294c04 3469 (version "2.1")
bcadaf00
BW
3470 (source
3471 (origin
3472 (method url-fetch)
3473 (uri (string-append
3474 "https://github.com/biocore/sortmerna/archive/"
3475 version ".tar.gz"))
3476 (file-name (string-append name "-" version ".tar.gz"))
3477 (sha256
3478 (base32
ce294c04 3479 "1mc5cf1c7xh0h7xb11vh7gqgzx0qvrfa606cb8ixlfg3f2av58s4"))))
bcadaf00
BW
3480 (build-system gnu-build-system)
3481 (outputs '("out" ;for binaries
3482 "db")) ;for sequence databases
3483 (arguments
3484 `(#:phases
3485 (modify-phases %standard-phases
3486 (replace 'install
3487 (lambda* (#:key outputs #:allow-other-keys)
3488 (let* ((out (assoc-ref outputs "out"))
3489 (bin (string-append out "/bin"))
3490 (db (assoc-ref outputs "db"))
3491 (share
3492 (string-append db "/share/sortmerna/rRNA_databases")))
3493 (install-file "sortmerna" bin)
3494 (install-file "indexdb_rna" bin)
3495 (for-each (lambda (file)
3496 (install-file file share))
3497 (find-files "rRNA_databases" ".*fasta"))
3498 #t))))))
3499 (home-page "http://bioinfo.lifl.fr/RNA/sortmerna")
3500 (synopsis "Biological sequence analysis tool for NGS reads")
3501 (description
3502 "SortMeRNA is a biological sequence analysis tool for filtering, mapping
3503and operational taxonomic unit (OTU) picking of next generation
3504sequencing (NGS) reads. The core algorithm is based on approximate seeds and
3505allows for fast and sensitive analyses of nucleotide sequences. The main
3506application of SortMeRNA is filtering rRNA from metatranscriptomic data.")
3507 (license license:lgpl3)))
3508
ce7155d5
RW
3509(define-public star
3510 (package
3511 (name "star")
3062d750 3512 (version "2.5.1b")
ce7155d5
RW
3513 (source (origin
3514 (method url-fetch)
3062d750
RW
3515 (uri (string-append "https://github.com/alexdobin/STAR/archive/"
3516 version ".tar.gz"))
3517 (file-name (string-append name "-" version ".tar.gz"))
ce7155d5
RW
3518 (sha256
3519 (base32
3062d750 3520 "0wzcfhkg10apnh0y73xlarfa79xxwxdizicbdl11wb48awk44iq4"))
ce7155d5
RW
3521 (modules '((guix build utils)))
3522 (snippet
3062d750
RW
3523 '(begin
3524 (substitute* "source/Makefile"
3525 (("/bin/rm") "rm"))
3526 ;; Remove pre-built binaries and bundled htslib sources.
3527 (delete-file-recursively "bin/MacOSX_x86_64")
3528 (delete-file-recursively "bin/Linux_x86_64")
3529 (delete-file-recursively "source/htslib")
3530 #t))))
ce7155d5
RW
3531 (build-system gnu-build-system)
3532 (arguments
3533 '(#:tests? #f ;no check target
3534 #:make-flags '("STAR")
3535 #:phases
c0266e8d
RW
3536 (modify-phases %standard-phases
3537 (add-after 'unpack 'enter-source-dir
3538 (lambda _ (chdir "source") #t))
3062d750
RW
3539 (add-after 'enter-source-dir 'do-not-use-bundled-htslib
3540 (lambda _
3541 (substitute* "Makefile"
3542 (("(Depend.list: \\$\\(SOURCES\\) parametersDefault\\.xxd) htslib"
3543 _ prefix) prefix))
3544 (substitute* '("BAMfunctions.cpp"
3545 "signalFromBAM.h"
3546 "bam_cat.h"
3547 "bam_cat.c"
3548 "STAR.cpp"
3549 "bamRemoveDuplicates.cpp")
3550 (("#include \"htslib/([^\"]+\\.h)\"" _ header)
3551 (string-append "#include <" header ">")))
3552 (substitute* "IncludeDefine.h"
3553 (("\"htslib/(htslib/[^\"]+.h)\"" _ header)
3554 (string-append "<" header ">")))
3555 #t))
c0266e8d
RW
3556 (replace 'install
3557 (lambda* (#:key outputs #:allow-other-keys)
3558 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
3559 (install-file "STAR" bin))
3560 #t))
3561 (delete 'configure))))
ce7155d5
RW
3562 (native-inputs
3563 `(("vim" ,vim))) ; for xxd
3564 (inputs
3062d750
RW
3565 `(("htslib" ,htslib)
3566 ("zlib" ,zlib)))
ce7155d5
RW
3567 (home-page "https://github.com/alexdobin/STAR")
3568 (synopsis "Universal RNA-seq aligner")
3569 (description
3570 "The Spliced Transcripts Alignment to a Reference (STAR) software is
3571based on a previously undescribed RNA-seq alignment algorithm that uses
3572sequential maximum mappable seed search in uncompressed suffix arrays followed
3573by seed clustering and stitching procedure. In addition to unbiased de novo
3574detection of canonical junctions, STAR can discover non-canonical splices and
3575chimeric (fusion) transcripts, and is also capable of mapping full-length RNA
3576sequences.")
3577 ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
3578 (license license:gpl3+)))
de07c0db 3579
dbf4ed7c
RW
3580(define-public subread
3581 (package
3582 (name "subread")
3583 (version "1.4.6-p2")
3584 (source (origin
3585 (method url-fetch)
3586 (uri (string-append
3587 "mirror://sourceforge/subread/subread-"
3588 version "-source.tar.gz"))
3589 (sha256
3590 (base32
3591 "06sv9mpcsdj6p68y15d6gi70lca3lxmzk0dn61hg0kfsa7rxmsr3"))))
3592 (build-system gnu-build-system)
3593 (arguments
3594 `(#:tests? #f ;no "check" target
104c1986
RW
3595 ;; The CC and CCFLAGS variables are set to contain a lot of x86_64
3596 ;; optimizations by default, so we override these flags such that x86_64
3597 ;; flags are only added when the build target is an x86_64 system.
3598 #:make-flags
3599 (list (let ((system ,(or (%current-target-system)
3600 (%current-system)))
3601 (flags '("-ggdb" "-fomit-frame-pointer"
3602 "-ffast-math" "-funroll-loops"
3603 "-fmessage-length=0"
3604 "-O9" "-Wall" "-DMAKE_FOR_EXON"
3605 "-DMAKE_STANDALONE"
3606 "-DSUBREAD_VERSION=\\\"${SUBREAD_VERSION}\\\""))
3607 (flags64 '("-mmmx" "-msse" "-msse2" "-msse3")))
3608 (if (string-prefix? "x86_64" system)
3609 (string-append "CCFLAGS=" (string-join (append flags flags64)))
3610 (string-append "CCFLAGS=" (string-join flags))))
3611 "-f" "Makefile.Linux"
3612 "CC=gcc ${CCFLAGS}")
dbf4ed7c
RW
3613 #:phases
3614 (alist-cons-after
3615 'unpack 'enter-dir
3616 (lambda _ (chdir "src") #t)
3617 (alist-replace
3618 'install
3619 (lambda* (#:key outputs #:allow-other-keys)
3620 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
3621 (mkdir-p bin)
3622 (copy-recursively "../bin" bin)))
3623 ;; no "configure" script
3624 (alist-delete 'configure %standard-phases)))))
3625 (inputs `(("zlib" ,zlib)))
3626 (home-page "http://bioinf.wehi.edu.au/subread-package/")
3627 (synopsis "Tool kit for processing next-gen sequencing data")
3628 (description
3629 "The subread package contains the following tools: subread aligner, a
3630general-purpose read aligner; subjunc aligner: detecting exon-exon junctions
3631and mapping RNA-seq reads; featureCounts: counting mapped reads for genomic
3632features; exactSNP: a SNP caller that discovers SNPs by testing signals
3633against local background noises.")
3634 (license license:gpl3+)))
3635
d15d981e
RW
3636(define-public stringtie
3637 (package
3638 (name "stringtie")
3639 (version "1.2.1")
3640 (source (origin
3641 (method url-fetch)
3642 (uri (string-append "http://ccb.jhu.edu/software/stringtie/dl/"
3643 "stringtie-" version ".tar.gz"))
3644 (sha256
3645 (base32
3646 "1cqllsc1maq4kh92isi8yadgzbmnf042hlnalpk3y59aph1z3bfz"))
3647 (modules '((guix build utils)))
3648 (snippet
3649 '(begin
3650 (delete-file-recursively "samtools-0.1.18")
3651 #t))))
3652 (build-system gnu-build-system)
3653 (arguments
3654 `(#:tests? #f ;no test suite
3655 #:phases
3656 (modify-phases %standard-phases
3657 ;; no configure script
3658 (delete 'configure)
3659 (add-before 'build 'use-system-samtools
3660 (lambda _
3661 (substitute* "Makefile"
3662 (("stringtie: \\$\\{BAM\\}/libbam\\.a")
3663 "stringtie: "))
3664 (substitute* '("gclib/GBam.h"
3665 "gclib/GBam.cpp")
3666 (("#include \"(bam|sam|kstring).h\"" _ header)
3667 (string-append "#include <samtools/" header ".h>")))
3668 #t))
3669 (replace 'install
3670 (lambda* (#:key outputs #:allow-other-keys)
3671 (let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
3672 (install-file "stringtie" bin)
3673 #t))))))
3674 (inputs
3675 `(("samtools" ,samtools-0.1)
3676 ("zlib" ,zlib)))
3677 (home-page "http://ccb.jhu.edu/software/stringtie/")
3678 (synopsis "Transcript assembly and quantification for RNA-Seq data")
3679 (description
3680 "StringTie is a fast and efficient assembler of RNA-Seq sequence
3681alignments into potential transcripts. It uses a novel network flow algorithm
3682as well as an optional de novo assembly step to assemble and quantitate
3683full-length transcripts representing multiple splice variants for each gene
3684locus. Its input can include not only the alignments of raw reads used by
3685other transcript assemblers, but also alignments of longer sequences that have
3686been assembled from those reads. To identify differentially expressed genes
3687between experiments, StringTie's output can be processed either by the
3688Cuffdiff or Ballgown programs.")
3689 (license license:artistic2.0)))
3690
de07c0db
RW
3691(define-public vcftools
3692 (package
3693 (name "vcftools")
9b36e256 3694 (version "0.1.14")
de07c0db
RW
3695 (source (origin
3696 (method url-fetch)
3697 (uri (string-append
9b36e256
RJ
3698 "https://github.com/vcftools/vcftools/releases/download/v"
3699 version "/vcftools-" version ".tar.gz"))
de07c0db
RW
3700 (sha256
3701 (base32
9b36e256 3702 "10l5c07z9p4i9pr4gl54b2c9h6ndhqlbq1rashg2zcgwkbfrkmvn"))))
de07c0db
RW
3703 (build-system gnu-build-system)
3704 (arguments
3705 `(#:tests? #f ; no "check" target
3706 #:make-flags (list
7c3958e1 3707 "CFLAGS=-O2" ; override "-m64" flag
de07c0db
RW
3708 (string-append "PREFIX=" (assoc-ref %outputs "out"))
3709 (string-append "MANDIR=" (assoc-ref %outputs "out")
9b36e256
RJ
3710 "/share/man/man1"))))
3711 (native-inputs
3712 `(("pkg-config" ,pkg-config)))
de07c0db
RW
3713 (inputs
3714 `(("perl" ,perl)
3715 ("zlib" ,zlib)))
9b36e256 3716 (home-page "https://vcftools.github.io/")
de07c0db
RW
3717 (synopsis "Tools for working with VCF files")
3718 (description
3719 "VCFtools is a program package designed for working with VCF files, such
3720as those generated by the 1000 Genomes Project. The aim of VCFtools is to
3721provide easily accessible methods for working with complex genetic variation
3722data in the form of VCF files.")
3723 ;; The license is declared as LGPLv3 in the README and
9b36e256 3724 ;; at https://vcftools.github.io/license.html
de07c0db 3725 (license license:lgpl3)))
9c38b540 3726
a2950fa4
BW
3727(define-public vsearch
3728 (package
3729 (name "vsearch")
cf6edaba 3730 (version "1.10.0")
a2950fa4
BW
3731 (source
3732 (origin
3733 (method url-fetch)
3734 (uri (string-append
3735 "https://github.com/torognes/vsearch/archive/v"
3736 version ".tar.gz"))
3737 (file-name (string-append name "-" version ".tar.gz"))
3738 (sha256
3739 (base32
cf6edaba 3740 "1i3bad7gnn2y3a1yfixzshd99xdkjc8w5bxzgifpysc6jiljwvb5"))
a2950fa4
BW
3741 (modules '((guix build utils)))
3742 (snippet
3743 '(begin
3744 ;; Remove bundled cityhash and '-mtune=native'.
3745 (substitute* "src/Makefile.am"
3746 (("^AM_CXXFLAGS=-I\\$\\{srcdir\\}/cityhash \
3747-O3 -mtune=native -Wall -Wsign-compare")
3748 (string-append "AM_CXXFLAGS=-lcityhash"
3749 " -O3 -Wall -Wsign-compare"))
cf6edaba 3750 (("^__top_builddir__bin_vsearch_SOURCES = city.h \\\\")
a2950fa4 3751 "__top_builddir__bin_vsearch_SOURCES = \\")
cf6edaba
BW
3752 (("^city.h \\\\") "\\")
3753 (("^citycrc.h \\\\") "\\")
3754 (("^libcityhash_a.*") "")
3755 (("noinst_LIBRARIES = libcpu_sse2.a libcpu_ssse3.a \
3756libcityhash.a")
3757 "noinst_LIBRARIES = libcpu_sse2.a libcpu_ssse3.a")
3758 (("__top_builddir__bin_vsearch_LDADD = libcpu_ssse3.a \
3759libcpu_sse2.a libcityhash.a")
3760 "__top_builddir__bin_vsearch_LDADD = libcpu_ssse3.a \
3761libcpu_sse2.a -lcityhash"))
a2950fa4 3762 (substitute* "src/vsearch.h"
cf6edaba
BW
3763 (("^\\#include \"city.h\"") "#include <city.h>")
3764 (("^\\#include \"citycrc.h\"") "#include <citycrc.h>"))
3765 (delete-file "src/city.h")
3766 (delete-file "src/citycrc.h")
3767 (delete-file "src/city.cc")
a2950fa4
BW
3768 #t))))
3769 (build-system gnu-build-system)
3770 (arguments
3771 `(#:phases
3772 (modify-phases %standard-phases
3773 (add-before 'configure 'autogen
3774 (lambda _ (zero? (system* "autoreconf" "-vif")))))))
3775 (inputs
3776 `(("zlib" ,zlib)
3777 ("bzip2" ,bzip2)
3778 ("cityhash" ,cityhash)))
3779 (native-inputs
3780 `(("autoconf" ,autoconf)
3781 ("automake" ,automake)))
3782 (synopsis "Sequence search tools for metagenomics")
3783 (description
3784 "VSEARCH supports DNA sequence searching, clustering, chimera detection,
3785dereplication, pairwise alignment, shuffling, subsampling, sorting and
3786masking. The tool takes advantage of parallelism in the form of SIMD
3787vectorization as well as multiple threads to perform accurate alignments at
3788high speed. VSEARCH uses an optimal global aligner (full dynamic programming
3789Needleman-Wunsch).")
3790 (home-page "https://github.com/torognes/vsearch")
6f04e515
BW
3791 ;; vsearch uses non-portable SSE intrinsics so building fails on other
3792 ;; platforms.
3793 (supported-systems '("x86_64-linux"))
a2950fa4
BW
3794 ;; Dual licensed; also includes public domain source.
3795 (license (list license:gpl3 license:bsd-2))))
3796
9c38b540
PP
3797(define-public bio-locus
3798 (package
3799 (name "bio-locus")
3800 (version "0.0.7")
3801 (source
3802 (origin
3803 (method url-fetch)
3804 (uri (rubygems-uri "bio-locus" version))
3805 (sha256
3806 (base32
3807 "02vmrxyimkj9sahsp4zhfhnmbvz6dbbqz1y01vglf8cbwvkajfl0"))))
3808 (build-system ruby-build-system)
3809 (native-inputs
3810 `(("ruby-rspec" ,ruby-rspec)))
3811 (synopsis "Tool for fast querying of genome locations")
3812 (description
3813 "Bio-locus is a tabix-like tool for fast querying of genome
3814locations. Many file formats in bioinformatics contain records that
3815start with a chromosome name and a position for a SNP, or a start-end
3816position for indels. Bio-locus allows users to store this chr+pos or
3817chr+pos+alt information in a database.")
3818 (home-page "https://github.com/pjotrp/bio-locus")
3819 (license license:expat)))
edb15985 3820
b2bddb07
PP
3821(define-public bio-blastxmlparser
3822 (package
3823 (name "bio-blastxmlparser")
3824 (version "2.0.4")
3825 (source (origin
3826 (method url-fetch)
3827 (uri (rubygems-uri "bio-blastxmlparser" version))
3828 (sha256
3829 (base32
3830 "1wf4qygcmdjgcqm6flmvsagfr1gs9lf63mj32qv3z1f481zc5692"))))
3831 (build-system ruby-build-system)
3832 (propagated-inputs
3833 `(("ruby-bio-logger" ,ruby-bio-logger)
3834 ("ruby-nokogiri" ,ruby-nokogiri)))
3835 (inputs
3836 `(("ruby-rspec" ,ruby-rspec)))
3837 (synopsis "Fast big data BLAST XML parser and library")
3838 (description
3839 "Very fast parallel big-data BLAST XML file parser which can be used as
3840command line utility. Use blastxmlparser to: Parse BLAST XML; filter output;
3841generate FASTA, JSON, YAML, RDF, JSON-LD, HTML, CSV, tabular output etc.")
3842 (home-page "http://github.com/pjotrp/blastxmlparser")
3843 (license license:expat)))
3844
edb15985
PP
3845(define-public bioruby
3846 (package
3847 (name "bioruby")
3848 (version "1.5.0")
3849 (source
3850 (origin
3851 (method url-fetch)
3852 (uri (rubygems-uri "bio" version))
3853 (sha256
3854 (base32
3855 "01k2fyjl5fpx4zn8g6gqiqvsg2j1fgixrs9p03vzxckynxdq3wmc"))))
3856 (build-system ruby-build-system)
3857 (propagated-inputs
3858 `(("ruby-libxml" ,ruby-libxml)))
3859 (native-inputs
3860 `(("which" ,which))) ; required for test phase
3861 (arguments
3862 `(#:phases
3863 (modify-phases %standard-phases
3864 (add-before 'build 'patch-test-command
3865 (lambda _
3866 (substitute* '("test/functional/bio/test_command.rb")
3867 (("/bin/sh") (which "sh")))
3868 (substitute* '("test/functional/bio/test_command.rb")
3869 (("/bin/ls") (which "ls")))
3870 (substitute* '("test/functional/bio/test_command.rb")
3871 (("which") (which "which")))
3872 (substitute* '("test/functional/bio/test_command.rb",
3873 "test/data/command/echoarg2.sh")
3874 (("/bin/echo") (which "echo")))
3875 #t)))))
3876 (synopsis "Ruby library, shell and utilities for bioinformatics")
3877 (description "BioRuby comes with a comprehensive set of Ruby development
3878tools and libraries for bioinformatics and molecular biology. BioRuby has
3879components for sequence analysis, pathway analysis, protein modelling and
3880phylogenetic analysis; it supports many widely used data formats and provides
3881easy access to databases, external programs and public web services, including
3882BLAST, KEGG, GenBank, MEDLINE and GO.")
3883 (home-page "http://bioruby.org/")
3884 ;; Code is released under Ruby license, except for setup
3885 ;; (LGPLv2.1+) and scripts in samples (which have GPL2 and GPL2+)
3886 (license (list license:ruby license:lgpl2.1+ license:gpl2+ ))))
a5002ae7 3887
9fba89e8
RW
3888(define-public r-acsnminer
3889 (package
3890 (name "r-acsnminer")
3891 (version "0.15.11")
3892 (source (origin
3893 (method url-fetch)
3894 (uri (cran-uri "ACSNMineR" version))
3895 (sha256
3896 (base32
3897 "1dl4drhjyazwm9wxlm8yfppwvvj4h6jxwmz8kfw5bxpb3jdnsqvy"))))
3898 (properties `((upstream-name . "ACSNMineR")))
3899 (build-system r-build-system)
3900 (propagated-inputs
3901 `(("r-ggplot2" ,r-ggplot2)
3902 ("r-gridextra" ,r-gridextra)))
3903 (home-page "http://cran.r-project.org/web/packages/ACSNMineR")
3904 (synopsis "Gene enrichment analysis")
3905 (description
3906 "This package provides tools to compute and represent gene set enrichment
3907or depletion from your data based on pre-saved maps from the @dfn{Atlas of
3908Cancer Signalling Networks} (ACSN) or user imported maps. The gene set
3909enrichment can be run with hypergeometric test or Fisher exact test, and can
3910use multiple corrections. Visualization of data can be done either by
3911barplots or heatmaps.")
3912 (license license:gpl2+)))
3913
d29b25c4
RW
3914(define-public r-biocgenerics
3915 (package
3916 (name "r-biocgenerics")
3917 (version "0.16.1")
3918 (source (origin
3919 (method url-fetch)
3920 (uri (bioconductor-uri "BiocGenerics" version))
3921 (sha256
3922 (base32
3923 "0f16ryy5f012hvksrwlmm33bcl7lw97i2jvhbnwfwl03j4w7nhc1"))))
3924 (properties
1d216b6e 3925 `((upstream-name . "BiocGenerics")))
d29b25c4
RW
3926 (build-system r-build-system)
3927 (home-page "http://bioconductor.org/packages/BiocGenerics")
3928 (synopsis "S4 generic functions for Bioconductor")
3929 (description
3930 "This package provides S4 generic functions needed by many Bioconductor
3931packages.")
3932 (license license:artistic2.0)))
3933
247d498a
RJ
3934(define-public r-dnacopy
3935 (package
3936 (name "r-dnacopy")
3937 (version "1.44.0")
3938 (source (origin
3939 (method url-fetch)
3940 (uri (bioconductor-uri "DNAcopy" version))
3941 (sha256
3942 (base32
3943 "1c1px4rbr36xx929hp59k7ca9k5ab66qmn8k63fk13278ncm6h66"))))
3944 (properties
3945 `((upstream-name . "DNAcopy")))
3946 (build-system r-build-system)
3947 (inputs
3948 `(("gfortran" ,gfortran)))
5697fdc3 3949 (home-page "https://bioconductor.org/packages/DNAcopy")
247d498a
RJ
3950 (synopsis "Implementation of a circular binary segmentation algorithm")
3951 (description "This package implements the circular binary segmentation (CBS)
3952algorithm to segment DNA copy number data and identify genomic regions with
3953abnormal copy number.")
3954 (license license:gpl2+)))
3955
7485129e
RW
3956(define-public r-s4vectors
3957 (package
3958 (name "r-s4vectors")
8921841d 3959 (version "0.8.11")
7485129e
RW
3960 (source (origin
3961 (method url-fetch)
3962 (uri (bioconductor-uri "S4Vectors" version))
3963 (sha256
3964 (base32
8921841d 3965 "12iibcs63m9iy7f45wgjcqsna2dnqwckphk682389grshz0g4x66"))))
7485129e 3966 (properties
1d216b6e 3967 `((upstream-name . "S4Vectors")))
7485129e
RW
3968 (build-system r-build-system)
3969 (propagated-inputs
3970 `(("r-biocgenerics" ,r-biocgenerics)))
3971 (home-page "http://bioconductor.org/packages/S4Vectors")
3972 (synopsis "S4 implementation of vectors and lists")
3973 (description
3974 "The S4Vectors package defines the @code{Vector} and @code{List} virtual
3975classes and a set of generic functions that extend the semantic of ordinary
3976vectors and lists in R. Package developers can easily implement vector-like
3977or list-like objects as concrete subclasses of @code{Vector} or @code{List}.
3978In addition, a few low-level concrete subclasses of general interest (e.g.
3979@code{DataFrame}, @code{Rle}, and @code{Hits}) are implemented in the
3980S4Vectors package itself.")
3981 (license license:artistic2.0)))
3982
78addcb0
RW
3983(define-public r-iranges
3984 (package
3985 (name "r-iranges")
27acfaea 3986 (version "2.4.8")
78addcb0
RW
3987 (source (origin
3988 (method url-fetch)
3989 (uri (bioconductor-uri "IRanges" version))
3990 (sha256
3991 (base32
27acfaea 3992 "0hi5k1j5jm4xrg1l506g279qw1xkvp1gg1zgsjzpbng4vx4k4iyl"))))
78addcb0 3993 (properties
1d216b6e 3994 `((upstream-name . "IRanges")))
78addcb0
RW
3995 (build-system r-build-system)
3996 (propagated-inputs
3997 `(("r-biocgenerics" ,r-biocgenerics)
3998 ("r-s4vectors" ,r-s4vectors)))
3999 (home-page "http://bioconductor.org/packages/IRanges")
4000 (synopsis "Infrastructure for manipulating intervals on sequences")
4001 (description
4002 "This package provides efficient low-level and highly reusable S4 classes
4003for storing ranges of integers, RLE vectors (Run-Length Encoding), and, more
4004generally, data that can be organized sequentially (formally defined as
4005@code{Vector} objects), as well as views on these @code{Vector} objects.
4006Efficient list-like classes are also provided for storing big collections of
4007instances of the basic classes. All classes in the package use consistent
4008naming and share the same rich and consistent \"Vector API\" as much as
4009possible.")
4010 (license license:artistic2.0)))
4011
bf7764b7
RW
4012(define-public r-genomeinfodb
4013 (package
4014 (name "r-genomeinfodb")
9cc22d28 4015 (version "1.6.3")
bf7764b7
RW
4016 (source (origin
4017 (method url-fetch)
4018 (uri (bioconductor-uri "GenomeInfoDb" version))
4019 (sha256
4020 (base32
9cc22d28 4021 "1ggp005n2rlkad00ilzn95y4rd484yr1chdhnd6fwg45rbi94d63"))))
bf7764b7 4022 (properties
1d216b6e 4023 `((upstream-name . "GenomeInfoDb")))
bf7764b7
RW
4024 (build-system r-build-system)
4025 (propagated-inputs
4026 `(("r-biocgenerics" ,r-biocgenerics)
4027 ("r-iranges" ,r-iranges)
4028 ("r-s4vectors" ,r-s4vectors)))
4029 (home-page "http://bioconductor.org/packages/GenomeInfoDb")
4030 (synopsis "Utilities for manipulating chromosome identifiers")
4031 (description
4032 "This package contains data and functions that define and allow
4033translation between different chromosome sequence naming conventions (e.g.,
4034\"chr1\" versus \"1\"), including a function that attempts to place sequence
4035names in their natural, rather than lexicographic, order.")
4036 (license license:artistic2.0)))
4037
b669d9c4
RJ
4038(define-public r-variantannotation
4039 (package
4040 (name "r-variantannotation")
4041 (version "1.16.4")
4042 (source (origin
4043 (method url-fetch)
4044 (uri (bioconductor-uri "VariantAnnotation" version))
4045 (sha256
4046 (base32
4047 "1z42j3p9b8h725inq8n0230llsdbav3gwcxy1nliypzfkxbzahsb"))))
4048 (properties
4049 `((upstream-name . "VariantAnnotation")))
4050 (inputs
4051 `(("zlib" ,zlib)))
4052 (propagated-inputs
4053 `(("r-annotationdbi" ,r-annotationdbi)
4054 ("r-biocgenerics" ,r-biocgenerics)
4055 ("r-bsgenome" ,r-bsgenome)
4056 ("r-dbi" ,r-dbi)
4057 ("r-genomeinfodb" ,r-genomeinfodb)
4058 ("r-genomicfeatures" ,r-genomicfeatures)
4059 ("r-genomicranges" ,r-genomicranges)
4060 ("r-summarizedexperiment" ,r-summarizedexperiment)
4061 ("r-rsamtools" ,r-rsamtools)
4062 ("r-zlibbioc" ,r-zlibbioc)))
4063 (build-system r-build-system)
4064 (home-page "https://bioconductor.org/packages/VariantAnnotation")
4065 (synopsis "Package for annotation of genetic variants")
4066 (description "This R package can annotate variants, compute amino acid
4067coding changes and predict coding outcomes.")
4068 (license license:artistic2.0)))
4069
0e7d5560
RW
4070(define-public r-xvector
4071 (package
4072 (name "r-xvector")
4073 (version "0.10.0")
4074 (source (origin
4075 (method url-fetch)
4076 (uri (bioconductor-uri "XVector" version))
4077 (sha256
4078 (base32
4079 "0havwyr6xqk7w0rmbwfj9jq1djz7wzdz7w39adhklwzwz9l4ih3a"))))
4080 (properties
1d216b6e 4081 `((upstream-name . "XVector")))
0e7d5560
RW
4082 (build-system r-build-system)
4083 (arguments
4084 `(#:phases
4085 (modify-phases %standard-phases
4086 (add-after 'unpack 'use-system-zlib
4087 (lambda _
4088 (substitute* "DESCRIPTION"
4089 (("zlibbioc, ") ""))
4090 (substitute* "NAMESPACE"
4091 (("import\\(zlibbioc\\)") ""))
4092 #t)))))
4093 (inputs
4094 `(("zlib" ,zlib)))
4095 (propagated-inputs
4096 `(("r-biocgenerics" ,r-biocgenerics)
4097 ("r-iranges" ,r-iranges)
4098 ("r-s4vectors" ,r-s4vectors)))
4099 (home-page "http://bioconductor.org/packages/XVector")
4100 (synopsis "Representation and manpulation of external sequences")
4101 (description
4102 "This package provides memory efficient S4 classes for storing sequences
4103\"externally\" (behind an R external pointer, or on disk).")
4104 (license license:artistic2.0)))
4105
e2cd1d0f
RW
4106(define-public r-genomicranges
4107 (package
4108 (name "r-genomicranges")
5fe31154 4109 (version "1.22.4")
e2cd1d0f
RW
4110 (source (origin
4111 (method url-fetch)
4112 (uri (bioconductor-uri "GenomicRanges" version))
4113 (sha256
4114 (base32
5fe31154 4115 "02df5683nrpn9d10ws8jz9b55nr9055hh882xp2i154xdddir0k0"))))
e2cd1d0f 4116 (properties
1d216b6e 4117 `((upstream-name . "GenomicRanges")))
e2cd1d0f
RW
4118 (build-system r-build-system)
4119 (propagated-inputs
4120 `(("r-biocgenerics" ,r-biocgenerics)
4121 ("r-genomeinfodb" ,r-genomeinfodb)
4122 ("r-xvector" ,r-xvector)))
4123 (home-page "http://bioconductor.org/packages/GenomicRanges")
4124 (synopsis "Representation and manipulation of genomic intervals")
4125 (description
4126 "This package provides tools to efficiently represent and manipulate
4127genomic annotations and alignments is playing a central role when it comes to
4128analyzing high-throughput sequencing data (a.k.a. NGS data). The
4129GenomicRanges package defines general purpose containers for storing and
4130manipulating genomic intervals and variables defined along a genome.")
4131 (license license:artistic2.0)))
4132
555e3399
RW
4133(define-public r-biobase
4134 (package
4135 (name "r-biobase")
4136 (version "2.30.0")
4137 (source (origin
4138 (method url-fetch)
4139 (uri (bioconductor-uri "Biobase" version))
4140 (sha256
4141 (base32
4142 "1qasjpq3kw8h7qw8cin3bjvv1256hqr1mm24fq3v0ymxzlb66szi"))))
4143 (properties
4144 `((upstream-name . "Biobase")))
4145 (build-system r-build-system)
4146 (propagated-inputs
4147 `(("r-biocgenerics" ,r-biocgenerics)))
4148 (home-page "http://bioconductor.org/packages/Biobase")
4149 (synopsis "Base functions for Bioconductor")
4150 (description
4151 "This package provides functions that are needed by many other packages
4152on Bioconductor or which replace R functions.")
4153 (license license:artistic2.0)))
4154
8b7bce74
RW
4155(define-public r-annotationdbi
4156 (package
4157 (name "r-annotationdbi")
258c0a36 4158 (version "1.32.3")
8b7bce74
RW
4159 (source (origin
4160 (method url-fetch)
4161 (uri (bioconductor-uri "AnnotationDbi" version))
4162 (sha256
4163 (base32
258c0a36 4164 "1v6x62hgys5827yg2xayjrd9xawbayzm6wy0q4vxh1s6yxc9bklj"))))
8b7bce74
RW
4165 (properties
4166 `((upstream-name . "AnnotationDbi")))
4167 (build-system r-build-system)
4168 (propagated-inputs
4169 `(("r-biobase" ,r-biobase)
4170 ("r-biocgenerics" ,r-biocgenerics)
4171 ("r-dbi" ,r-dbi)
4172 ("r-iranges" ,r-iranges)
4173 ("r-rsqlite" ,r-rsqlite)
4174 ("r-s4vectors" ,r-s4vectors)))
4175 (home-page "http://bioconductor.org/packages/AnnotationDbi")
4176 (synopsis "Annotation database interface")
4177 (description
4178 "This package provides user interface and database connection code for
4179annotation data packages using SQLite data storage.")
4180 (license license:artistic2.0)))
4181
c465fa72
RW
4182(define-public r-biomart
4183 (package
4184 (name "r-biomart")
4185 (version "2.26.1")
4186 (source (origin
4187 (method url-fetch)
4188 (uri (bioconductor-uri "biomaRt" version))
4189 (sha256
4190 (base32
4191 "1s709055abj2gd35g6nnk5d2ai5ii09iir270l2xika6pi62gj3f"))))
4192 (properties
4193 `((upstream-name . "biomaRt")))
4194 (build-system r-build-system)
4195 (propagated-inputs
4196 `(("r-annotationdbi" ,r-annotationdbi)
4197 ("r-rcurl" ,r-rcurl)
4198 ("r-xml" ,r-xml)))
4199 (home-page "http://bioconductor.org/packages/biomaRt")
4200 (synopsis "Interface to BioMart databases")
4201 (description
4202 "biomaRt provides an interface to a growing collection of databases
4203implementing the @url{BioMart software suite, http://www.biomart.org}. The
4204package enables retrieval of large amounts of data in a uniform way without
4205the need to know the underlying database schemas or write complex SQL queries.
4206Examples of BioMart databases are Ensembl, COSMIC, Uniprot, HGNC, Gramene,
4207Wormbase and dbSNP mapped to Ensembl. These major databases give biomaRt
4208users direct access to a diverse set of data and enable a wide range of
4209powerful online queries from gene annotation to database mining.")
4210 (license license:artistic2.0)))
4211
e91d362e
RW
4212(define-public r-biocparallel
4213 (package
4214 (name "r-biocparallel")
4215 (version "1.4.3")
4216 (source (origin
4217 (method url-fetch)
4218 (uri (bioconductor-uri "BiocParallel" version))
4219 (sha256
4220 (base32
4221 "1f5mndx66vampcsq0n66afg6x851crl0h3nyv2nyp9bsgzj9cdzq"))))
4222 (properties
4223 `((upstream-name . "BiocParallel")))
4224 (build-system r-build-system)
4225 (propagated-inputs
4226 `(("r-futile-logger" ,r-futile-logger)
4227 ("r-snow" ,r-snow)))
4228 (home-page "http://bioconductor.org/packages/BiocParallel")
4229 (synopsis "Bioconductor facilities for parallel evaluation")
4230 (description
4231 "This package provides modified versions and novel implementation of
4232functions for parallel evaluation, tailored to use with Bioconductor
4233objects.")
4234 (license (list license:gpl2+ license:gpl3+))))
4235
bf159353
RW
4236(define-public r-biostrings
4237 (package
4238 (name "r-biostrings")
53fd0f5e 4239 (version "2.38.4")
bf159353
RW
4240 (source (origin
4241 (method url-fetch)
4242 (uri (bioconductor-uri "Biostrings" version))
4243 (sha256
4244 (base32
53fd0f5e 4245 "0cjd7i4bdwabzb02gm753aji5xaihkj5ak8nb0d32cclxbj0hp33"))))
bf159353
RW
4246 (properties
4247 `((upstream-name . "Biostrings")))
4248 (build-system r-build-system)
4249 (propagated-inputs
4250 `(("r-biocgenerics" ,r-biocgenerics)
4251 ("r-iranges" ,r-iranges)
4252 ("r-s4vectors" ,r-s4vectors)
4253 ("r-xvector" ,r-xvector)))
4254 (home-page "http://bioconductor.org/packages/Biostrings")
4255 (synopsis "String objects and algorithms for biological sequences")
4256 (description
4257 "This package provides memory efficient string containers, string
4258matching algorithms, and other utilities, for fast manipulation of large
4259biological sequences or sets of sequences.")
4260 (license license:artistic2.0)))
4261
f8d74f70
RW
4262(define-public r-rsamtools
4263 (package
4264 (name "r-rsamtools")
4265 (version "1.22.0")
4266 (source (origin
4267 (method url-fetch)
4268 (uri (bioconductor-uri "Rsamtools" version))
4269 (sha256
4270 (base32
4271 "1yc3nzzms3igjwr4l9yd3wdac95glcs08b4cfp7disyly0wcskjd"))))
4272 (properties
4273 `((upstream-name . "Rsamtools")))
4274 (build-system r-build-system)
4275 (arguments
4276 `(#:phases
4277 (modify-phases %standard-phases
4278 (add-after 'unpack 'use-system-zlib
4279 (lambda _
4280 (substitute* "DESCRIPTION"
4281 (("zlibbioc, ") ""))
4282 (substitute* "NAMESPACE"
4283 (("import\\(zlibbioc\\)") ""))
4284 #t)))))
4285 (inputs
4286 `(("zlib" ,zlib)))
4287 (propagated-inputs
4288 `(("r-biocgenerics" ,r-biocgenerics)
4289 ("r-biocparallel" ,r-biocparallel)
4290 ("r-biostrings" ,r-biostrings)
4291 ("r-bitops" ,r-bitops)
4292 ("r-genomeinfodb" ,r-genomeinfodb)
4293 ("r-genomicranges" ,r-genomicranges)
4294 ("r-iranges" ,r-iranges)
4295 ("r-s4vectors" ,r-s4vectors)
4296 ("r-xvector" ,r-xvector)))
4297 (home-page "http://bioconductor.org/packages/release/bioc/html/Rsamtools.html")
4298 (synopsis "Interface to samtools, bcftools, and tabix")
4299 (description
4300 "This package provides an interface to the 'samtools', 'bcftools', and
4301'tabix' utilities for manipulating SAM (Sequence Alignment / Map), FASTA,
4302binary variant call (BCF) and compressed indexed tab-delimited (tabix)
4303files.")
4304 (license license:expat)))
4305
6e76dda2
RW
4306(define-public r-summarizedexperiment
4307 (package
4308 (name "r-summarizedexperiment")
7eade1c5 4309 (version "1.0.2")
6e76dda2
RW
4310 (source (origin
4311 (method url-fetch)
4312 (uri (bioconductor-uri "SummarizedExperiment" version))
4313 (sha256
4314 (base32
7eade1c5 4315 "1gpmh1mi70m5k5qnyjs1h0qn8ajrzalzic7k3762xchxsmmdvxn4"))))
6e76dda2
RW
4316 (properties
4317 `((upstream-name . "SummarizedExperiment")))
4318 (build-system r-build-system)
4319 (propagated-inputs
4320 `(("r-biobase" ,r-biobase)
4321 ("r-biocgenerics" ,r-biocgenerics)
4322 ("r-genomeinfodb" ,r-genomeinfodb)
4323 ("r-genomicranges" ,r-genomicranges)
4324 ("r-iranges" ,r-iranges)
4325 ("r-s4vectors" ,r-s4vectors)))
4326 (home-page "http://bioconductor.org/packages/SummarizedExperiment")
4327 (synopsis "Container for representing genomic ranges by sample")
4328 (description
4329 "The SummarizedExperiment container contains one or more assays, each
4330represented by a matrix-like object of numeric or other mode. The rows
4331typically represent genomic ranges of interest and the columns represent
4332samples.")
4333 (license license:artistic2.0)))
4334
d8a828af
RW
4335(define-public r-genomicalignments
4336 (package
4337 (name "r-genomicalignments")
ac2d8b0f 4338 (version "1.6.3")
d8a828af
RW
4339 (source (origin
4340 (method url-fetch)
4341 (uri (bioconductor-uri "GenomicAlignments" version))
4342 (sha256
4343 (base32
ac2d8b0f 4344 "02b9j1pfd39bkvb623k5k0ziq9rpw093hifqw65vb954dwj29jhd"))))
d8a828af
RW
4345 (properties
4346 `((upstream-name . "GenomicAlignments")))
4347 (build-system r-build-system)
4348 (propagated-inputs
4349 `(("r-biocgenerics" ,r-biocgenerics)
4350 ("r-biocparallel" ,r-biocparallel)
4351 ("r-biostrings" ,r-biostrings)
4352 ("r-genomeinfodb" ,r-genomeinfodb)
4353 ("r-genomicranges" ,r-genomicranges)
4354 ("r-iranges" ,r-iranges)
4355 ("r-rsamtools" ,r-rsamtools)
4356 ("r-s4vectors" ,r-s4vectors)
4357 ("r-summarizedexperiment" ,r-summarizedexperiment)))
4358 (home-page "http://bioconductor.org/packages/GenomicAlignments")
4359 (synopsis "Representation and manipulation of short genomic alignments")
4360 (description
4361 "This package provides efficient containers for storing and manipulating
4362short genomic alignments (typically obtained by aligning short reads to a
4363reference genome). This includes read counting, computing the coverage,
4364junction detection, and working with the nucleotide content of the
4365alignments.")
4366 (license license:artistic2.0)))
4367
317755ff
RW
4368(define-public r-rtracklayer
4369 (package
4370 (name "r-rtracklayer")
ffaf72ad 4371 (version "1.30.4")
317755ff
RW
4372 (source (origin
4373 (method url-fetch)
4374 (uri (bioconductor-uri "rtracklayer" version))
4375 (sha256
4376 (base32
ffaf72ad 4377 "0knjnwywh9k726mq28s3sy013zhw6d6nfa8hfw670720nq18i2p0"))))
317755ff
RW
4378 (build-system r-build-system)
4379 (arguments
4380 `(#:phases
4381 (modify-phases %standard-phases
4382 (add-after 'unpack 'use-system-zlib
4383 (lambda _
4384 (substitute* "DESCRIPTION"
4385 (("zlibbioc, ") ""))
4386 (substitute* "NAMESPACE"
4387 (("import\\(zlibbioc\\)") ""))
4388 #t)))))
4389 (inputs
4390 `(("zlib" ,zlib)))
4391 (propagated-inputs
4392 `(("r-biocgenerics" ,r-biocgenerics)
4393 ("r-biostrings" ,r-biostrings)
4394 ("r-genomeinfodb" ,r-genomeinfodb)
4395 ("r-genomicalignments" ,r-genomicalignments)
4396 ("r-genomicranges" ,r-genomicranges)
4397 ("r-iranges" ,r-iranges)
4398 ("r-rcurl" ,r-rcurl)
4399 ("r-rsamtools" ,r-rsamtools)
4400 ("r-s4vectors" ,r-s4vectors)
4401 ("r-xml" ,r-xml)
4402 ("r-xvector" ,r-xvector)))
4403 (home-page "http://bioconductor.org/packages/rtracklayer")
4404 (synopsis "R interface to genome browsers and their annotation tracks")
4405 (description
4406 "rtracklayer is an extensible framework for interacting with multiple
4407genome browsers (currently UCSC built-in) and manipulating annotation tracks
4408in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig and 2bit
4409built-in). The user may export/import tracks to/from the supported browsers,
4410as well as query and modify the browser state, such as the current viewport.")
4411 (license license:artistic2.0)))
4412
2fd7c049
RW
4413(define-public r-genomicfeatures
4414 (package
4415 (name "r-genomicfeatures")
571f0b63 4416 (version "1.22.13")
2fd7c049
RW
4417 (source (origin
4418 (method url-fetch)
4419 (uri (bioconductor-uri "GenomicFeatures" version))
4420 (sha256
4421 (base32
571f0b63 4422 "0n3rkj66la6wizgcsf2rmwcsyfxz9kv5zak337lmk1raqfnancz4"))))
2fd7c049
RW
4423 (properties
4424 `((upstream-name . "GenomicFeatures")))
4425 (build-system r-build-system)
4426 (propagated-inputs
4427 `(("r-annotationdbi" ,r-annotationdbi)
4428 ("r-biobase" ,r-biobase)
4429 ("r-biocgenerics" ,r-biocgenerics)
4430 ("r-biomart" ,r-biomart)
4431 ("r-biostrings" ,r-biostrings)
4432 ("r-dbi" ,r-dbi)
4433 ("r-genomeinfodb" ,r-genomeinfodb)
4434 ("r-genomicranges" ,r-genomicranges)
4435 ("r-iranges" ,r-iranges)
4436 ("r-rcurl" ,r-rcurl)
4437 ("r-rsqlite" ,r-rsqlite)
4438 ("r-rtracklayer" ,r-rtracklayer)
4439 ("r-s4vectors" ,r-s4vectors)
4440 ("r-xvector" ,r-xvector)))
4441 (home-page "http://bioconductor.org/packages/GenomicFeatures")
4442 (synopsis "Tools for working with transcript centric annotations")
4443 (description
4444 "This package provides a set of tools and methods for making and
4445manipulating transcript centric annotations. With these tools the user can
4446easily download the genomic locations of the transcripts, exons and cds of a
4447given organism, from either the UCSC Genome Browser or a BioMart
4448database (more sources will be supported in the future). This information is
4449then stored in a local database that keeps track of the relationship between
4450transcripts, exons, cds and genes. Flexible methods are provided for
4451extracting the desired features in a convenient format.")
4452 (license license:artistic2.0)))
4453
fb25d880
RW
4454(define-public r-go-db
4455 (package
4456 (name "r-go-db")
4457 (version "3.2.2")
4458 (source (origin
4459 (method url-fetch)
f82c8c3c
PP
4460 (uri (string-append "http://www.bioconductor.org/packages/"
4461 "release/data/annotation/src/contrib/GO.db_"
4462 version ".tar.gz"))
fb25d880
RW
4463 (sha256
4464 (base32
4465 "00gariag9ampz82dh0xllrc26r85d7vdcwc0vca5zdy147rwxr7f"))))
4466 (properties
4467 `((upstream-name . "GO.db")))
4468 (build-system r-build-system)
3141b83d
RW
4469 (propagated-inputs
4470 `(("r-annotationdbi" ,r-annotationdbi)))
fb25d880
RW
4471 (home-page "http://bioconductor.org/packages/GO.db")
4472 (synopsis "Annotation maps describing the entire Gene Ontology")
4473 (description
4474 "The purpose of this GO.db annotation package is to provide detailed
4475information about the latest version of the Gene Ontologies.")
4476 (license license:artistic2.0)))
4477
d1dbde6a
RW
4478(define-public r-graph
4479 (package
4480 (name "r-graph")
4481 (version "1.48.0")
4482 (source (origin
4483 (method url-fetch)
4484 (uri (bioconductor-uri "graph" version))
4485 (sha256
4486 (base32
4487 "16w75rji3kv24gfv44w66y1a2y75ax26rl470y3ypna0ndc3rrcd"))))
4488 (build-system r-build-system)
4489 (propagated-inputs
4490 `(("r-biocgenerics" ,r-biocgenerics)))
4491 (home-page "http://bioconductor.org/packages/graph")
4492 (synopsis "Handle graph data structures in R")
4493 (description
4494 "This package implements some simple graph handling capabilities for R.")
4495 (license license:artistic2.0)))
4496
d547ce5e
RW
4497(define-public r-topgo
4498 (package
4499 (name "r-topgo")
4500 (version "2.22.0")
4501 (source (origin
4502 (method url-fetch)
4503 (uri (bioconductor-uri "topGO" version))
4504 (sha256
4505 (base32
4506 "029j9nb39b8l9xlzsp83pmjr8ap247aia387yzaa1yyw8klapdaf"))))
4507 (properties
4508 `((upstream-name . "topGO")))
4509 (build-system r-build-system)
4510 (propagated-inputs
4511 `(("r-annotationdbi" ,r-annotationdbi)
4512 ("r-biobase" ,r-biobase)
4513 ("r-biocgenerics" ,r-biocgenerics)
4514 ("r-go-db" ,r-go-db)
6d415db2 4515 ("r-graph" ,r-graph)
d547ce5e
RW
4516 ("r-sparsem" ,r-sparsem)))
4517 (home-page "http://bioconductor.org/packages/topGO")
4518 (synopsis "Enrichment analysis for gene ontology")
4519 (description
4520 "The topGO package provides tools for testing @dfn{gene ontology} (GO)
4521terms while accounting for the topology of the GO graph. Different test
4522statistics and different methods for eliminating local similarities and
4523dependencies between GO terms can be implemented and applied.")
4524 ;; Any version of the LGPL applies.
4525 (license license:lgpl2.1+)))
4526
c63cef66
RW
4527(define-public r-bsgenome
4528 (package
4529 (name "r-bsgenome")
4530 (version "1.38.0")
4531 (source (origin
4532 (method url-fetch)
4533 (uri (bioconductor-uri "BSgenome" version))
4534 (sha256
4535 (base32
4536 "130w0m6q8kkca7gyz1aqj5jjhalwvwi6rk2yvbjrnj4gpnncyrd2"))))
4537 (properties
4538 `((upstream-name . "BSgenome")))
4539 (build-system r-build-system)
4540 (propagated-inputs
4541 `(("r-biocgenerics" ,r-biocgenerics)
4542 ("r-biostrings" ,r-biostrings)
4543 ("r-genomeinfodb" ,r-genomeinfodb)
4544 ("r-genomicranges" ,r-genomicranges)
4545 ("r-iranges" ,r-iranges)
4546 ("r-rsamtools" ,r-rsamtools)
4547 ("r-rtracklayer" ,r-rtracklayer)
4548 ("r-s4vectors" ,r-s4vectors)
4549 ("r-xvector" ,r-xvector)))
4550 (home-page "http://bioconductor.org/packages/BSgenome")
4551 (synopsis "Infrastructure for Biostrings-based genome data packages")
4552 (description
4553 "This package provides infrastructure shared by all Biostrings-based
4554genome data packages and support for efficient SNP representation.")
4555 (license license:artistic2.0)))
4556
c43a011d
RW
4557(define-public r-impute
4558 (package
4559 (name "r-impute")
4560 (version "1.44.0")
4561 (source (origin
4562 (method url-fetch)
4563 (uri (bioconductor-uri "impute" version))
4564 (sha256
4565 (base32
4566 "0y4x5jk7gsf4xn56jrkdcdnxpcfll4h6ivncd7n4snmzixldvmvw"))))
4567 (inputs
4568 `(("gfortran" ,gfortran)))
4569 (build-system r-build-system)
4570 (home-page "http://bioconductor.org/packages/impute")
4571 (synopsis "Imputation for microarray data")
4572 (description
4573 "This package provides a function to impute missing gene expression
4574microarray data, using nearest neighbor averaging.")
4575 (license license:gpl2+)))
4576
03ea5a35
RW
4577(define-public r-seqpattern
4578 (package
4579 (name "r-seqpattern")
4580 (version "1.2.0")
4581 (source (origin
4582 (method url-fetch)
4583 (uri (bioconductor-uri "seqPattern" version))
4584 (sha256
4585 (base32
4586 "0p9zj6bic7sa0hb2bjm988kkk5n9r1kvlbqkzvy702f642n0j53i"))))
4587 (properties
4588 `((upstream-name . "seqPattern")))
4589 (build-system r-build-system)
4590 (propagated-inputs
4591 `(("r-biostrings" ,r-biostrings)
4592 ("r-genomicranges" ,r-genomicranges)
4593 ("r-iranges" ,r-iranges)
4594 ("r-plotrix" ,r-plotrix)))
4595 (home-page "http://bioconductor.org/packages/seqPattern")
4596 (synopsis "Visualising oligonucleotide patterns and motif occurrences")
4597 (description
4598 "This package provides tools to visualize oligonucleotide patterns and
4599sequence motif occurrences across a large set of sequences centred at a common
4600reference point and sorted by a user defined feature.")
4601 (license license:gpl3+)))
4602
cb933df6
RW
4603(define-public r-genomation
4604 (package
4605 (name "r-genomation")
f315f4fc 4606 (version "1.2.2")
cb933df6
RW
4607 (source (origin
4608 (method url-fetch)
4609 (uri (bioconductor-uri "genomation" version))
4610 (sha256
4611 (base32
f315f4fc 4612 "0kvzwc21zsh2c8d34yn935ncn38bfkpzmknycd8h7b0521x20mi9"))))
cb933df6
RW
4613 (build-system r-build-system)
4614 (propagated-inputs
4615 `(("r-biostrings" ,r-biostrings)
4616 ("r-bsgenome" ,r-bsgenome)
4617 ("r-data-table" ,r-data-table)
4618 ("r-genomeinfodb" ,r-genomeinfodb)
4619 ("r-genomicalignments" ,r-genomicalignments)
4620 ("r-genomicranges" ,r-genomicranges)
4621 ("r-ggplot2" ,r-ggplot2)
4622 ("r-gridbase" ,r-gridbase)
4623 ("r-impute" ,r-impute)
4624 ("r-iranges" ,r-iranges)
4625 ("r-matrixstats" ,r-matrixstats)
4626 ("r-plotrix" ,r-plotrix)
4627 ("r-plyr" ,r-plyr)
4628 ("r-readr" ,r-readr)
4629 ("r-reshape2" ,r-reshape2)
4630 ("r-rsamtools" ,r-rsamtools)
4631 ("r-rtracklayer" ,r-rtracklayer)
4632 ("r-seqpattern" ,r-seqpattern)))
4633 (home-page "http://bioinformatics.mdc-berlin.de/genomation/")
4634 (synopsis "Summary, annotation and visualization of genomic data")
4635 (description
4636 "This package provides a package for summary and annotation of genomic
4637intervals. Users can visualize and quantify genomic intervals over
4638pre-defined functional regions, such as promoters, exons, introns, etc. The
4639genomic intervals represent regions with a defined chromosome position, which
4640may be associated with a score, such as aligned reads from HT-seq experiments,
4641TF binding sites, methylation scores, etc. The package can use any tabular
4642genomic feature data as long as it has minimal information on the locations of
4643genomic intervals. In addition, it can use BAM or BigWig files as input.")
4644 (license license:artistic2.0)))
4645
486da491
RW
4646(define-public r-org-hs-eg-db
4647 (package
4648 (name "r-org-hs-eg-db")
4649 (version "3.2.3")
4650 (source (origin
4651 (method url-fetch)
4652 ;; We cannot use bioconductor-uri here because this tarball is
4653 ;; located under "data/annotation/" instead of "bioc/".
4654 (uri (string-append "http://www.bioconductor.org/packages/"
4655 "release/data/annotation/src/contrib/"
4656 "org.Hs.eg.db_" version ".tar.gz"))
4657 (sha256
4658 (base32
4659 "0xicgkbh6xkvs74s1piafqac63dyz2ycdyil4pj4ghhxx2sabm6p"))))
4660 (properties
4661 `((upstream-name . "org.Hs.eg.db")))
4662 (build-system r-build-system)
4663 (propagated-inputs
4664 `(("r-annotationdbi" ,r-annotationdbi)))
4665 (home-page "http://www.bioconductor.org/packages/org.Hs.eg.db/")
4666 (synopsis "Genome wide annotation for Human")
4667 (description
4668 "This package provides mappings from Entrez gene identifiers to various
4669annotations for the human genome.")
4670 (license license:artistic2.0)))
4671
fefedf98
RW
4672(define-public r-org-ce-eg-db
4673 (package
4674 (name "r-org-ce-eg-db")
4675 (version "3.2.3")
4676 (source (origin
4677 (method url-fetch)
4678 ;; We cannot use bioconductor-uri here because this tarball is
4679 ;; located under "data/annotation/" instead of "bioc/".
4680 (uri (string-append "http://www.bioconductor.org/packages/"
4681 "release/data/annotation/src/contrib/"
4682 "org.Ce.eg.db_" version ".tar.gz"))
4683 (sha256
4684 (base32
4685 "1d0lx00ybq34yqs6mziaa0lrh77xm0ggsmi76g6k95f77gi7m1sw"))))
4686 (properties
4687 `((upstream-name . "org.Ce.eg.db")))
4688 (build-system r-build-system)
4689 (propagated-inputs
4690 `(("r-annotationdbi" ,r-annotationdbi)))
4691 (home-page "http://www.bioconductor.org/packages/org.Ce.eg.db/")
4692 (synopsis "Genome wide annotation for Worm")
4693 (description
4694 "This package provides mappings from Entrez gene identifiers to various
4695annotations for the genome of the model worm Caenorhabditis elegans.")
4696 (license license:artistic2.0)))
4697
16c53a1e
RW
4698(define-public r-org-dm-eg-db
4699 (package
4700 (name "r-org-dm-eg-db")
4701 (version "3.2.3")
4702 (source (origin
4703 (method url-fetch)
4704 ;; We cannot use bioconductor-uri here because this tarball is
4705 ;; located under "data/annotation/" instead of "bioc/".
4706 (uri (string-append "http://www.bioconductor.org/packages/"
4707 "release/data/annotation/src/contrib/"
4708 "org.Dm.eg.db_" version ".tar.gz"))
4709 (sha256
4710 (base32
4711 "0mib46c7nr00l7mh290n383za9hyl91a1dc6jhjbk884jmxaxyz6"))))
4712 (properties
4713 `((upstream-name . "org.Dm.eg.db")))
4714 (build-system r-build-system)
4715 (propagated-inputs
4716 `(("r-annotationdbi" ,r-annotationdbi)))
4717 (home-page "http://www.bioconductor.org/packages/org.Dm.eg.db/")
4718 (synopsis "Genome wide annotation for Fly")
4719 (description
4720 "This package provides mappings from Entrez gene identifiers to various
4721annotations for the genome of the model fruit fly Drosophila melanogaster.")
4722 (license license:artistic2.0)))
4723
e761beb9
RW
4724(define-public r-org-mm-eg-db
4725 (package
4726 (name "r-org-mm-eg-db")
4727 (version "3.2.3")
4728 (source (origin
4729 (method url-fetch)
4730 ;; We cannot use bioconductor-uri here because this tarball is
4731 ;; located under "data/annotation/" instead of "bioc/".
4732 (uri (string-append "http://www.bioconductor.org/packages/"
4733 "release/data/annotation/src/contrib/"
4734 "org.Mm.eg.db_" version ".tar.gz"))
4735 (sha256
4736 (base32
4737 "0wh1pm3npdg7070875kfgiid3bqkz3q7rq6snhk6bxfvph00298y"))))
4738 (properties
4739 `((upstream-name . "org.Mm.eg.db")))
4740 (build-system r-build-system)
4741 (propagated-inputs
4742 `(("r-annotationdbi" ,r-annotationdbi)))
4743 (home-page "http://www.bioconductor.org/packages/org.Mm.eg.db/")
4744 (synopsis "Genome wide annotation for Mouse")
4745 (description
4746 "This package provides mappings from Entrez gene identifiers to various
4747annotations for the genome of the model mouse Mus musculus.")
4748 (license license:artistic2.0)))
4749
936e7d67
RW
4750(define-public r-seqlogo
4751 (package
4752 (name "r-seqlogo")
4753 (version "1.36.0")
4754 (source
4755 (origin
4756 (method url-fetch)
4757 (uri (bioconductor-uri "seqLogo" version))
4758 (sha256
4759 (base32
4760 "0kn1a1nf2j4v9c09vjkz9bmxlln7yhg87bnyrdsxy1m55x56rn5k"))))
4761 (properties `((upstream-name . "seqLogo")))
4762 (build-system r-build-system)
4763 (home-page "http://bioconductor.org/packages/seqLogo")
4764 (synopsis "Sequence logos for DNA sequence alignments")
4765 (description
4766 "seqLogo takes the position weight matrix of a DNA sequence motif and
4767plots the corresponding sequence logo as introduced by Schneider and
4768Stephens (1990).")
4769 (license license:lgpl2.0+)))
4770
c90a4baf
RW
4771(define-public r-bsgenome-hsapiens-ucsc-hg19
4772 (package
4773 (name "r-bsgenome-hsapiens-ucsc-hg19")
4774 (version "1.4.0")
4775 (source (origin
4776 (method url-fetch)
4777 ;; We cannot use bioconductor-uri here because this tarball is
4778 ;; located under "data/annotation/" instead of "bioc/".
4779 (uri (string-append "http://www.bioconductor.org/packages/"
4780 "release/data/annotation/src/contrib/"
4781 "BSgenome.Hsapiens.UCSC.hg19_"
4782 version ".tar.gz"))
4783 (sha256
4784 (base32
4785 "1y0nqpk8cw5a34sd9hmin3z4v7iqm6hf6l22cl81vlbxqbjibxc8"))))
4786 (properties
4787 `((upstream-name . "BSgenome.Hsapiens.UCSC.hg19")))
4788 (build-system r-build-system)
4789 ;; As this package provides little more than a very large data file it
4790 ;; doesn't make sense to build substitutes.
4791 (arguments `(#:substitutable? #f))
4792 (propagated-inputs
4793 `(("r-bsgenome" ,r-bsgenome)))
4794 (home-page
4795 "http://www.bioconductor.org/packages/BSgenome.Hsapiens.UCSC.hg19/")
4796 (synopsis "Full genome sequences for Homo sapiens")
4797 (description
4798 "This package provides full genome sequences for Homo sapiens as provided
4799by UCSC (hg19, February 2009) and stored in Biostrings objects.")
4800 (license license:artistic2.0)))
4801
a3e90287
RW
4802(define-public r-bsgenome-mmusculus-ucsc-mm9
4803 (package
4804 (name "r-bsgenome-mmusculus-ucsc-mm9")
4805 (version "1.4.0")
4806 (source (origin
4807 (method url-fetch)
4808 ;; We cannot use bioconductor-uri here because this tarball is
4809 ;; located under "data/annotation/" instead of "bioc/".
4810 (uri (string-append "http://www.bioconductor.org/packages/"
4811 "release/data/annotation/src/contrib/"
4812 "BSgenome.Mmusculus.UCSC.mm9_"
4813 version ".tar.gz"))
4814 (sha256
4815 (base32
4816 "1birqw30g2azimxpnjfzmkphan7x131yy8b9h85lfz5fjdg7841i"))))
4817 (properties
4818 `((upstream-name . "BSgenome.Mmusculus.UCSC.mm9")))
4819 (build-system r-build-system)
4820 ;; As this package provides little more than a very large data file it
4821 ;; doesn't make sense to build substitutes.
4822 (arguments `(#:substitutable? #f))
4823 (propagated-inputs
4824 `(("r-bsgenome" ,r-bsgenome)))
4825 (home-page
4826 "http://www.bioconductor.org/packages/BSgenome.Mmusculus.UCSC.mm9/")
4827 (synopsis "Full genome sequences for Mouse")
4828 (description
4829 "This package provides full genome sequences for Mus musculus (Mouse) as
4830provided by UCSC (mm9, July 2007) and stored in Biostrings objects.")
4831 (license license:artistic2.0)))
4832
943bd627
RW
4833(define-public r-bsgenome-celegans-ucsc-ce6
4834 (package
4835 (name "r-bsgenome-celegans-ucsc-ce6")
4836 (version "1.4.0")
4837 (source (origin
4838 (method url-fetch)
4839 ;; We cannot use bioconductor-uri here because this tarball is
4840 ;; located under "data/annotation/" instead of "bioc/".
4841 (uri (string-append "http://www.bioconductor.org/packages/"
4842 "release/data/annotation/src/contrib/"
4843 "BSgenome.Celegans.UCSC.ce6_"
4844 version ".tar.gz"))
4845 (sha256
4846 (base32
4847 "0mqzb353xv2c3m3vkb315dkmnxkgczp7ndnknyhpgjlybyf715v9"))))
4848 (properties
4849 `((upstream-name . "BSgenome.Celegans.UCSC.ce6")))
4850 (build-system r-build-system)
4851 ;; As this package provides little more than a very large data file it
4852 ;; doesn't make sense to build substitutes.
4853 (arguments `(#:substitutable? #f))
4854 (propagated-inputs
4855 `(("r-bsgenome" ,r-bsgenome)))
4856 (home-page
4857 "http://www.bioconductor.org/packages/BSgenome.Celegans.UCSC.ce6/")
4858 (synopsis "Full genome sequences for Worm")
4859 (description
4860 "This package provides full genome sequences for Caenorhabditis
4861elegans (Worm) as provided by UCSC (ce6, May 2008) and stored in Biostrings
4862objects.")
4863 (license license:artistic2.0)))
4864
6dc60998
RW
4865(define-public r-bsgenome-dmelanogaster-ucsc-dm3
4866 (package
4867 (name "r-bsgenome-dmelanogaster-ucsc-dm3")
4868 (version "1.4.0")
4869 (source (origin
4870 (method url-fetch)
4871 ;; We cannot use bioconductor-uri here because this tarball is
4872 ;; located under "data/annotation/" instead of "bioc/".
4873 (uri (string-append "http://www.bioconductor.org/packages/"
4874 "release/data/annotation/src/contrib/"
4875 "BSgenome.Dmelanogaster.UCSC.dm3_"
4876 version ".tar.gz"))
4877 (sha256
4878 (base32
4879 "19bm3lkhhkag3gnwp419211fh0cnr0x6fa0r1lr0ycwrikxdxsv8"))))
4880 (properties
4881 `((upstream-name . "BSgenome.Dmelanogaster.UCSC.dm3")))
4882 (build-system r-build-system)
4883 ;; As this package provides little more than a very large data file it
4884 ;; doesn't make sense to build substitutes.
4885 (arguments `(#:substitutable? #f))
4886 (propagated-inputs
4887 `(("r-bsgenome" ,r-bsgenome)))
4888 (home-page
4889 "http://www.bioconductor.org/packages/BSgenome.Dmelanogaster.UCSC.dm3/")
4890 (synopsis "Full genome sequences for Fly")
4891 (description
4892 "This package provides full genome sequences for Drosophila
4893melanogaster (Fly) as provided by UCSC (dm3, April 2006) and stored in
4894Biostrings objects.")
4895 (license license:artistic2.0)))
4896
ae2462f7
RW
4897(define-public r-motifrg
4898 (package
4899 (name "r-motifrg")
4900 (version "1.14.0")
4901 (source
4902 (origin
4903 (method url-fetch)
4904 (uri (bioconductor-uri "motifRG" version))
4905 (sha256
4906 (base32
4907 "1v9zm5629k2lcqbbgw8bwflvbircyxkfavbkvmbd212kgwcng8vn"))))
4908 (properties `((upstream-name . "motifRG")))
4909 (build-system r-build-system)
4910 (propagated-inputs
4911 `(("r-biostrings" ,r-biostrings)
4912 ("r-bsgenome" ,r-bsgenome)
4913 ("r-bsgenome.hsapiens.ucsc.hg19" ,r-bsgenome-hsapiens-ucsc-hg19)
4914 ("r-iranges" ,r-iranges)
4915 ("r-seqlogo" ,r-seqlogo)
4916 ("r-xvector" ,r-xvector)))
4917 (home-page "http://bioconductor.org/packages/motifRG")
4918 (synopsis "Discover motifs in high throughput sequencing data")
4919 (description
4920 "This package provides tools for discriminative motif discovery in high
4921throughput genetic sequencing data sets using regression methods.")
4922 (license license:artistic2.0)))
4923
a5002ae7
AE
4924(define-public r-qtl
4925 (package
4926 (name "r-qtl")
89709287 4927 (version "1.38-4")
a5002ae7
AE
4928 (source
4929 (origin
4930 (method url-fetch)
4931 (uri (string-append "mirror://cran/src/contrib/qtl_"
4932 version ".tar.gz"))
4933 (sha256
4934 (base32
89709287 4935 "0rv9xhp8lyldpgwxqirhyjqvg07dr5x4x1x2jpyj37dada9ccyx3"))))
a5002ae7
AE
4936 (build-system r-build-system)
4937 (home-page "http://rqtl.org/")
4938 (synopsis "R package for analyzing QTL experiments in genetics")
4939 (description "R/qtl is an extension library for the R statistics
4940system. It is used to analyze experimental crosses for identifying
4941genes contributing to variation in quantitative traits (so-called
4942quantitative trait loci, QTLs).
4943
4944Using a hidden Markov model, R/qtl allows to estimate genetic maps, to
4945identify genotyping errors, and to perform single-QTL and two-QTL,
4946two-dimensional genome scans.")
4947 (license license:gpl3)))
d1e32822 4948
9e3ba31c
RJ
4949(define-public r-zlibbioc
4950 (package
4951 (name "r-zlibbioc")
4952 (version "1.16.0")
4953 (source (origin
4954 (method url-fetch)
4955 (uri (bioconductor-uri "zlibbioc" version))
4956 (sha256
4957 (base32
4958 "01wc26ndg4jsn1wyrl6zzq636gxaip5fci0xapym4lh9wryc4wnw"))))
4959 (properties
4960 `((upstream-name . "zlibbioc")))
4961 (build-system r-build-system)
4962 (home-page "https://bioconductor.org/packages/zlibbioc")
4963 (synopsis "Provider for zlib-1.2.5 to R packages")
4964 (description "This package uses the source code of zlib-1.2.5 to create
4965libraries for systems that do not have these available via other means.")
4966 (license license:artistic2.0)))
4967
d1e32822
RW
4968(define-public pepr
4969 (package
4970 (name "pepr")
4971 (version "1.0.9")
4972 (source (origin
4973 (method url-fetch)
4974 (uri (string-append "https://pypi.python.org/packages/source/P"
4975 "/PePr/PePr-" version ".tar.gz"))
4976 (sha256
4977 (base32
4978 "0qxjfdpl1b1y53nccws2d85f6k74zwmx8y8sd9rszcqhfayx6gdx"))))
4979 (build-system python-build-system)
4980 (arguments
4981 `(#:python ,python-2 ; python2 only
4982 #:tests? #f ; no tests included
4983 #:phases
4984 (modify-phases %standard-phases
4985 ;; When setuptools is used a ".egg" archive is generated and
4986 ;; installed. This makes it hard to actually run PePr. This issue
4987 ;; has been reported upstream:
4988 ;; https://github.com/shawnzhangyx/PePr/issues/9
4989 (add-after 'unpack 'disable-egg-generation
4990 (lambda _
4991 (substitute* "setup.py"
4992 (("from setuptools import setup")
4993 "from distutils.core import setup"))
4994 #t)))))
4995 (propagated-inputs
4996 `(("python2-numpy" ,python2-numpy)
4997 ("python2-scipy" ,python2-scipy)
4998 ("python2-pysam" ,python2-pysam)))
4999 (home-page "https://code.google.com/p/pepr-chip-seq/")
5000 (synopsis "Peak-calling and prioritization pipeline for ChIP-Seq data")
5001 (description
5002 "PePr is a ChIP-Seq peak calling or differential binding analysis tool
5003that is primarily designed for data with biological replicates. It uses a
5004negative binomial distribution to model the read counts among the samples in
5005the same group, and look for consistent differences between ChIP and control
5006group or two ChIP groups run under different conditions.")
5007 (license license:gpl3+)))