gnu: piranha: Update to 1.2.1.

* gnu/packages/bioinformatics.scm (piranha): Update to 1.2.1.
This commit is contained in:
Ricardo Wurmus 2016-06-13 11:52:22 +02:00
parent fe585be9aa
commit 883302daf2
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 61 additions and 58 deletions

View File

@ -5127,68 +5127,71 @@ libraries for systems that do not have these available via other means.")
(license license:artistic2.0))) (license license:artistic2.0)))
(define-public piranha (define-public piranha
(package ;; There is no release tarball for the latest version. The latest commit is
(name "piranha") ;; older than one year at the time of this writing.
(version "1.1.3") (let ((revision "1")
(source (origin (commit "0466d364b71117d01e4471b74c514436cc281233"))
(method url-fetch) (package
(uri (string-append "https://github.com/smithlabcode/piranha" (name "piranha")
"/archive/svn/tags/piranha-" (version (string-append "1.2.1-" revision "." (string-take commit 9)))
version ".tar.gz")) (source (origin
(sha256 (method git-fetch)
(base32 (uri (git-reference
"1lczxff01n4139w7xwqamlb36g9hgrcy93gh03nqszhwb8ivsrqd")))) (url "https://github.com/smithlabcode/piranha.git")
(build-system gnu-build-system) (commit commit)))
(arguments (sha256
`(#:test-target "test" (base32
#:phases "117dc0zf20c61jam69sk4abl57ah6yi6i7qra7d7y5zrbgk12q5n"))))
(modify-phases %standard-phases (build-system gnu-build-system)
(add-after 'unpack 'copy-smithlab-cpp (arguments
(lambda* (#:key inputs #:allow-other-keys) `(#:test-target "test"
(mkdir "src/smithlab_cpp") #:phases
(for-each (lambda (file) (modify-phases %standard-phases
(install-file file "./src/smithlab_cpp/")) (add-after 'unpack 'copy-smithlab-cpp
(find-files (assoc-ref inputs "smithlab-cpp"))) (lambda* (#:key inputs #:allow-other-keys)
#t))
(add-after 'install 'install-to-store
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin")))
(mkdir-p bin)
(for-each (lambda (file) (for-each (lambda (file)
(install-file file bin)) (install-file file "./src/smithlab_cpp/"))
(find-files "bin" ".*"))) (find-files (assoc-ref inputs "smithlab-cpp")))
#t))) #t))
#:configure-flags (add-after 'install 'install-to-store
(list (string-append "--with-bam_tools_headers=" (lambda* (#:key outputs #:allow-other-keys)
(assoc-ref %build-inputs "bamtools") "/include/bamtools") (let* ((out (assoc-ref outputs "out"))
(string-append "--with-bam_tools_library=" (bin (string-append out "/bin")))
(assoc-ref %build-inputs "bamtools") "/lib/bamtools")))) (mkdir-p bin)
(inputs (for-each (lambda (file)
`(("bamtools" ,bamtools) (install-file file bin))
("samtools" ,samtools-0.1) (find-files "bin" ".*")))
("gsl" ,gsl) #t)))
("smithlab-cpp" #:configure-flags
,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a")) (list (string-append "--with-bam_tools_headers="
(origin (assoc-ref %build-inputs "bamtools") "/include/bamtools")
(method git-fetch) (string-append "--with-bam_tools_library="
(uri (git-reference (assoc-ref %build-inputs "bamtools") "/lib/bamtools"))))
(url "https://github.com/smithlabcode/smithlab_cpp.git") (inputs
(commit commit))) `(("bamtools" ,bamtools)
(file-name (string-append "smithlab_cpp-" commit "-checkout")) ("samtools" ,samtools-0.1)
(sha256 ("gsl" ,gsl)
(base32 ("smithlab-cpp"
"0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g"))))))) ,(let ((commit "3723e2db438c51501d0423429ff396c3035ba46a"))
(native-inputs (origin
`(("python" ,python-2))) (method git-fetch)
(home-page "https://github.com/smithlabcode/piranha") (uri (git-reference
(synopsis "Peak-caller for CLIP-seq and RIP-seq data") (url "https://github.com/smithlabcode/smithlab_cpp.git")
(description (commit commit)))
"Piranha is a peak-caller for genomic data produced by CLIP-seq and (file-name (string-append "smithlab_cpp-" commit "-checkout"))
(sha256
(base32
"0l4gvbwslw5ngziskja41c00x1r06l3yidv7y0xw9djibhykzy0g")))))))
(native-inputs
`(("python" ,python-2)))
(home-page "https://github.com/smithlabcode/piranha")
(synopsis "Peak-caller for CLIP-seq and RIP-seq data")
(description
"Piranha is a peak-caller for genomic data produced by CLIP-seq and
RIP-seq experiments. It takes input in BED or BAM format and identifies RIP-seq experiments. It takes input in BED or BAM format and identifies
regions of statistically significant read enrichment. Additional covariates regions of statistically significant read enrichment. Additional covariates
may optionally be provided to further inform the peak-calling process.") may optionally be provided to further inform the peak-calling process.")
(license license:gpl3+))) (license license:gpl3+))))
(define-public pepr (define-public pepr
(package (package