From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7Cfl-0000tg-Va for guix-patches@gnu.org; Tue, 24 Oct 2017 23:48:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7Cfi-0003G9-TA for guix-patches@gnu.org; Tue, 24 Oct 2017 23:48:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51870) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7Cfi-0003Fy-Pc for guix-patches@gnu.org; Tue, 24 Oct 2017 23:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e7Cfi-0005IJ-Ix for guix-patches@gnu.org; Tue, 24 Oct 2017 23:48:02 -0400 Subject: [bug#28986] [PATCH] gnu: Add r-tgstat. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7CfR-0000tG-Oc for guix-patches@gnu.org; Tue, 24 Oct 2017 23:47:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7CfO-0002zu-KB for guix-patches@gnu.org; Tue, 24 Oct 2017 23:47:45 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21007) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e7CfO-0002yF-9G for guix-patches@gnu.org; Tue, 24 Oct 2017 23:47:42 -0400 From: Ricardo Wurmus Date: Sun, 22 Oct 2017 13:56:07 +0200 Message-Id: <20171022115607.622-1-rekado@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28986@debbugs.gnu.org Cc: Ricardo Wurmus * gnu/packages/statistics.scm (r-tgstat): New variable. --- gnu/packages/statistics.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index b3ebd5abb..6c8f7b5fa 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -27,6 +27,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix hg-download) #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (guix build-system r) @@ -5442,3 +5443,37 @@ the least concave majorant (LCM), for the half-normal and correlation distributions, and for computing empirical higher criticism (HC) scores and the corresponding decision threshold.") (license license:gpl3+))) + +(define-public r-tgstat + (let ((changeset "4f8e60c03598f49aff6f5beeab40f2b995377e9f") + (revision "1")) + (package + (name "r-tgstat") + (version (string-append "1.0.2-" revision "." (string-take changeset 7))) + (source + (origin + (method hg-fetch) + (uri (hg-reference + (url "https://bitbucket.org/tanaylab/tgstat") + (changeset changeset))) + (sha256 + (base32 + "0ilkkyximy77zbncm91kdfqbxf0qyndg16pd3q3p6a3xc9qcmxvn")))) + (build-system r-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-isnan + (lambda _ + (substitute* "src/tgstat.h" + (("#define isnan ::isnan") + "#define isnan std::isnan")) + #t))))) + (propagated-inputs + `(("r-rcpp" ,r-rcpp))) + (home-page "https://bitbucket.org/tanaylab/tgstat/") + (synopsis "Tanay's group statistical utilities") + (description + "The goal of tgstat is to provide fast and efficient statistical +tools.") + (license license:gpl2)))) -- 2.14.1