gnu: Add starlong.

* gnu/packages/bioinformatics.scm (starlong): New variable.
This commit is contained in:
Ricardo Wurmus 2019-03-22 16:15:16 +01:00
parent 70d6a61424
commit fdfaba9032
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 22 additions and 0 deletions

View File

@ -6347,6 +6347,28 @@ sequences.")
;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed. ;; STAR is licensed under GPLv3 or later; htslib is MIT-licensed.
(license license:gpl3+))) (license license:gpl3+)))
(define-public starlong
(package (inherit star)
(name "starlong")
(arguments
(substitute-keyword-arguments (package-arguments star)
((#:make-flags flags)
`(list "STARlong"))
((#:phases phases)
`(modify-phases ,phases
;; Allow extra long sequence reads.
(add-after 'unpack 'make-extra-long
(lambda _
(substitute* "source/IncludeDefine.h"
(("(#define DEF_readNameLengthMax ).*" _ match)
(string-append match "900000\n")))
#t))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((bin (string-append (assoc-ref outputs "out") "/bin/")))
(install-file "STARlong" bin))
#t))))))))
(define-public subread (define-public subread
(package (package
(name "subread") (name "subread")