-
Notifications
You must be signed in to change notification settings - Fork 5
/
seqwish.scm
57 lines (56 loc) · 2.22 KB
/
seqwish.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
(define-module (seqwish)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system cmake)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages gcc)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages compression))
(define-public seqwish
(let ((version "0.7.6")
(commit "f44b402f0c2e02988d431d9b2e5eba9727cf93a9")
(package-revision "1"))
(package
(name "seqwish")
(version (string-append version "+" (string-take commit 7) "-" package-revision))
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ekg/seqwish.git")
(commit commit)
(recursive? #t)))
(file-name (git-file-name name version))
(sha256
(base32
"1m3zkzyjmg08ip42s8abw111fxdz19zmiy5v4f886lbh447n4iy4"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f
#:phases
(modify-phases
%standard-phases
;; This stashes our build version in the executable
(add-after 'unpack 'set-version
(lambda _
(mkdir "include")
(with-output-to-file "include/seqwish_git_version.hpp"
(lambda ()
(format #t "#define SEQWISH_GIT_VERSION \"~a\"~%" version)))
#t))
(delete 'check))
))
(inputs
`(("gcc" ,gcc-11)
("jemalloc" ,jemalloc)
("zlib" ,zlib)))
(synopsis "variation graph inducer")
(description
"seqwish implements a lossless conversion from pairwise alignments between
sequences to a variation graph encoding the sequences and their alignments. As
input we typically take all-versus-all alignments, but the exact structure of
the alignment set may be defined in an application specific way. This algorithm
uses a series of disk-backed sorts and passes over the alignment and sequence
inputs to allow the graph to be constructed from very large inputs that are
commonly encountered when working with large numbers of noisy input sequences.")
(home-page "https://github.com/ekg/freebayes")
(license license:expat))))