forked from ekg/guix-genomics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphaligner.scm
110 lines (107 loc) · 4.33 KB
/
graphaligner.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
(define-module (graphaligner)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages boost)
#:use-module (gnu packages compression)
#:use-module (gnu packages datastructures)
#:use-module (gnu packages gcc)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages maths)
#:use-module (gnu packages perl)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages protobuf))
(define-public graphaligner
(let ((version "1.0.13")
(commit "131a50b1508ea0e0cc4ee89c91970d8d3195490b")
(package-revision "2"))
(package
(name "graphaligner")
(version (string-append version "+" (string-take commit 7) "-" package-revision))
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/maickrau/GraphAligner.git")
(commit commit)
(recursive? #t)))
(file-name (git-file-name name version))
(sha256
(base32
"1l10dl2z9ivdpg60525ag33h7bnhhcpjjxc87605clvd04wcji6c"))))
(build-system gnu-build-system)
(arguments
`(#:tests? #f ; no tests
#:make-flags '("all")
#:phases
(modify-phases
%standard-phases
(add-after 'unpack 'patch-source
(lambda* (#:key inputs #:allow-other-keys)
(let ((sdsl (assoc-ref inputs "sdsl-lite")))
(substitute* "makefile"
(("VERSION .*") (string-append "VERSION = " ,version "\n"))))
#t))
;(add-after 'unpack 'kill-jemalloc
; (lambda* (#:key inputs #:allow-other-keys)
; (substitute* "makefile"
; (("$(JEMALLOCFLAGS) ") ""))
; #t))
(delete 'configure) ; no configure phase
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(for-each
(lambda (program)
(install-file program (string-append out "/bin")))
(find-files "bin" "."))
(for-each
(lambda (header)
(install-file header (string-append out "/include")))
(find-files "src" "\\.h(pp)?$")))
#t)))))
(native-inputs
`(("pkg-config" ,pkg-config)
("protobuf" ,protobuf "static")
("sdsl-lite" ,sdsl-lite)
("sparsehash" ,sparsehash)
("zlib" ,zlib "static")))
(inputs
`(("boost" ,boost-static)
("[email protected]" ,jemalloc-4.5.0)
("libdivsufsort" ,libdivsufsort)
("mummer" ,mummer)
("protobuf" ,protobuf)
("zlib" ,zlib)))
(home-page "https://github.com/maickrau/GraphAligner")
(synopsis "Seed-and-extend program for aligning genome graphs")
(description "Seed-and-extend program for aligning long error-prone reads to
genome graphs. For a description of the bitvector alignment extension
algorithm, see
@url{https://academic.oup.com/bioinformatics/advance-article/doi/10.1093/bioinformatics/btz162/5372677
here}.")
(license license:expat))))
(define-public mummer
(package
(name "mummer")
(version "4.0.0beta2")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/mummer4/mummer/releases/"
"download/v" version "/mummer-" version ".tar.gz"))
(sha256
(base32
"14qvrmf0gkl4alnh8zgxlzmvwc027arfawl96i7jk75z33j7dknf"))))
(build-system gnu-build-system)
(inputs
`(("gnuplot" ,gnuplot)
("perl" ,perl)))
(home-page "http://mummer.sourceforge.net/")
(synopsis "Efficient sequence alignment of full genomes")
(description "MUMmer is a versatil alignment tool for DNA and protein sequences.")
(license license:artistic2.0)))