gnu: bismark: Update to 0.20.1.

* gnu/packages/bioinformatics.scm (bismark): Update to 0.20.1.
[source]: Remove obsolete snippet.
[arguments]: Add build phase "replace-plotly.js" and add requried modules;
adjust "install" phase.
[inputs]: Add perl-carp and perl-getopt-long.
[native-inputs]: Add plotly.js and uglify-js.
This commit is contained in:
Ricardo Wurmus 2019-03-06 16:24:41 +01:00
parent 1564e0fefa
commit 38502a7d13
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -84,6 +84,7 @@ (define-module (gnu packages bioinformatics)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages dlang)
#:use-module (gnu packages linux)
#:use-module (gnu packages lisp)
#:use-module (gnu packages logging)
#:use-module (gnu packages machine-learning)
#:use-module (gnu packages man)
@ -11673,7 +11674,7 @@ (define-public f-seq
(define-public bismark
(package
(name "bismark")
(version "0.19.1")
(version "0.20.1")
(source
(origin
(method git-fetch)
@ -11683,18 +11684,25 @@ (define-public bismark
(file-name (string-append name "-" version "-checkout"))
(sha256
(base32
"0yb5l36slwg02fp4b1jdlplgljcsxgqfzvzihzdnphd87dghcc84"))
(snippet
'(begin
;; highcharts.js is non-free software. The code is available under
;; CC-BY-NC or proprietary licenses only.
(delete-file "bismark_sitrep/highcharts.js")
#t))))
"0xchm3rgilj6vfjnyzfzzymfd7djr64sbrmrvs3njbwi66jqbzw9"))))
(build-system perl-build-system)
(arguments
`(#:tests? #f ; there are no tests
#:modules ((guix build utils)
(ice-9 popen)
(srfi srfi-26)
(guix build perl-build-system))
#:phases
(modify-phases %standard-phases
;; The bundled plotly.js is minified.
(add-after 'unpack 'replace-plotly.js
(lambda* (#:key inputs #:allow-other-keys)
(let* ((file (assoc-ref inputs "plotly.js"))
(installed "plotly/plotly.js"))
(let ((minified (open-pipe* OPEN_READ "uglify-js" file)))
(call-with-output-file installed
(cut dump-port minified <>))))
#t))
(delete 'configure)
(delete 'build)
(replace 'install
@ -11713,10 +11721,11 @@ (define-public bismark
"deduplicate_bismark"
"filter_non_conversion"
"bam2nuc"
"bismark2summary")))
"bismark2summary"
"NOMe_filtering")))
(substitute* "bismark2report"
(("\\$RealBin/bismark_sitrep")
(string-append share "/bismark_sitrep")))
(("\\$RealBin/plotly")
(string-append share "/plotly")))
(mkdir-p share)
(mkdir-p docdir)
(mkdir-p bin)
@ -11725,8 +11734,8 @@ (define-public bismark
(for-each (lambda (file) (install-file file docdir))
docs)
(copy-recursively "Docs/Images" (string-append docdir "/Images"))
(copy-recursively "bismark_sitrep"
(string-append share "/bismark_sitrep"))
(copy-recursively "plotly"
(string-append share "/plotly"))
;; Fix references to gunzip
(substitute* (map (lambda (file)
@ -11737,7 +11746,18 @@ (define-public bismark
"/bin/gunzip -c")))
#t))))))
(inputs
`(("gzip" ,gzip)))
`(("gzip" ,gzip)
("perl-carp" ,perl-carp)
("perl-getopt-long" ,perl-getopt-long)))
(native-inputs
`(("plotly.js"
,(origin
(method url-fetch)
(uri (string-append "https://raw.githubusercontent.com/plotly/plotly.js/"
"v1.39.4/dist/plotly.js"))
(sha256
(base32 "138mwsr4nf5qif4mrxx286mpnagxd1xwl6k8aidrjgknaqg88zyr"))))
("uglify-js" ,uglify-js)))
(home-page "http://www.bioinformatics.babraham.ac.uk/projects/bismark/")
(synopsis "Map bisulfite treated sequence reads and analyze methylation")
(description "Bismark is a program to map bisulfite treated sequencing