mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 20:49:29 -05:00
gnu: Add louvain.
* gnu/packages/bioinformatics.scm (louvain): New variable.
This commit is contained in:
parent
3b9892ad07
commit
769346eef7
1 changed files with 34 additions and 0 deletions
|
@ -16839,6 +16839,40 @@ (define-public lofreq
|
|||
usually ignored by other methods or only used for filtering.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public louvain
|
||||
(package
|
||||
(name "louvain")
|
||||
(version "0.2")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri "mirror://sourceforge/louvain/louvain_latest.tar.gz")
|
||||
(sha256
|
||||
(base32
|
||||
"0hqlv5jqc889nbv7j1bchrx4zhh69hgr2mqvfdygc7kwrywn22lb"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? #false ;there are none
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(delete 'configure)
|
||||
(add-after 'unpack 'patch-includes
|
||||
(lambda _
|
||||
(substitute* "main_community.cpp"
|
||||
(("using namespace std;" m)
|
||||
(string-append "#include <unistd.h> /* for getpid */\n" m)))))
|
||||
(replace 'install
|
||||
(lambda _
|
||||
(for-each
|
||||
(lambda (exe)
|
||||
(install-file exe (string-append #$output "/bin")))
|
||||
'("convert" "community" "hierarchy")))))))
|
||||
(home-page "https://sourceforge.net/projects/louvain/")
|
||||
(synopsis "Multi-criteria community detection")
|
||||
(description "This package offers a set of functions to use in order to
|
||||
compute communities on graphs weighted or unweighted.")
|
||||
(license license:gpl3+)))
|
||||
|
||||
(define-public ivar
|
||||
(package
|
||||
(name "ivar")
|
||||
|
|
Loading…
Reference in a new issue