From 3eacc8fa8f9625427cbc07f27e5249c7b24fcb62 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 18 Dec 2019 15:24:05 +0100 Subject: [PATCH] gnu: Add r-influencer. * gnu/packages/cran.scm (r-influencer): New variable. --- gnu/packages/cran.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 1f15e29b06..040c2ead4a 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -18938,3 +18938,31 @@ resulting bitmap can be written to e.g. PNG, JPEG or WEBP format. In addition, the package can convert images directly to various formats such as PDF or PostScript.") (license license:expat))) + +(define-public r-influencer + (package + (name "r-influencer") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (cran-uri "influenceR" version)) + (sha256 + (base32 + "12p9362hkndlnz1rd8j2rykg57kbm6l7ks60by3rd25xg50k5jag")))) + (properties `((upstream-name . "influenceR"))) + (build-system r-build-system) + (propagated-inputs + `(("r-igraph" ,r-igraph) + ("r-matrix" ,r-matrix))) + (home-page "https://github.com/rcc-uchicago/influenceR") + (synopsis "Tools to quantify structural importance of nodes in a network") + (description + "This package provides functionality to compute various node centrality +measures on networks. Included are functions to compute betweenness +centrality (by utilizing Madduri and Bader's SNAP library), implementations of +Burt's constraint and @dfn{effective network size} (ENS) metrics, Borgatti's +algorithm to identify key players, and Valente's bridging metric. The +betweenness, Key Players, and bridging implementations are parallelized with +OpenMP.") + (license license:gpl2)))