Patchwork [13/22] gnu: Add mcl.

login
register
mail settings
Submitter Ben Woodcroft
Date July 27, 2016, 12:54 p.m.
Message ID <59dc603e19f15007a05198ddb4a3f6ec09d90a8b.1469622379.git.donttrustben@gmail.com>
Download mbox | patch
Permalink /patch/14040/
State New
Headers show

Comments

Ben Woodcroft - July 27, 2016, 12:54 p.m.
* gnu/packages/machine-learning.scm (mcl): New variable.
---
 gnu/packages/machine-learning.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
Leo Famulari - July 28, 2016, 10:20 p.m.
On Wed, Jul 27, 2016 at 10:54:14PM +1000, Ben Woodcroft wrote:
> * gnu/packages/machine-learning.scm (mcl): New variable.

> +    (license license:gpl3)))

I skimmed the headers of some files in 'src/', and they say "or later".
Can you double-check if it should be gpl3+?

Patch

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 2ccf0f2..3f2e502 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -33,6 +33,7 @@ 
   #:use-module (gnu packages dejagnu)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages maths)
+  #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
   #:use-module (gnu packages statistics)
@@ -200,6 +201,32 @@  Markov Models} (HMM) and algorithms: discrete, continous emissions, basic
 training, HMM clustering, HMM mixtures.")
       (license license:lgpl2.0+))))
 
+(define-public mcl
+  (package
+    (name "mcl")
+    (version "14.137")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://micans.org/mcl/src/mcl-"
+                    (string-replace-substring version "." "-")
+                    ".tar.gz"))
+              (sha256
+               (base32
+                "15xlax3z31lsn62vlg94hkm75nm40q4679amnfg13jm8m2bnhy5m"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:configure-flags (list "--enable-blast")))
+    (inputs
+     `(("perl" ,perl)))
+    (home-page "http://micans.org/mcl/")
+    (synopsis "Clustering algorithm for graphs")
+    (description
+     "The MCL algorithm is short for the @dfn{Markov Cluster Algorithm}, a
+fast and scalable unsupervised cluster algorithm for graphs (also known as
+networks) based on simulation of (stochastic) flow in graphs.")
+    (license license:gpl3)))
+
 (define-public randomjungle
   (package
     (name "randomjungle")