summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJustin S <3630356+codeandkey@users.noreply.github.com>2020-07-20 10:48:17 -0500
committerGitHub <noreply@github.com>2020-07-20 10:48:17 -0500
commit3949a85f9a75320895c752f95a1c8a7480795110 (patch)
treefd3e823764d0f661899416ec358ce5ef1441d3c2 /var
parentbab18523402d610a7cddd7e7c59c95fe4cfe5ff6 (diff)
downloadspack-3949a85f9a75320895c752f95a1c8a7480795110.tar.gz
spack-3949a85f9a75320895c752f95a1c8a7480795110.tar.bz2
spack-3949a85f9a75320895c752f95a1c8a7480795110.tar.xz
spack-3949a85f9a75320895c752f95a1c8a7480795110.zip
py-dp-gp-cluster: new package at 2019-09-22 (#17549)
* py-dp-gp-cluster: new package * py-dp-gp-cluster: remove master, add 2019-09-22 * py-dp-gp-cluster: require python2, older gpy, sklearn * py-dp-gp-cluster: remove cython runtime dep
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-dp-gp-cluster/package.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-dp-gp-cluster/package.py b/var/spack/repos/builtin/packages/py-dp-gp-cluster/package.py
new file mode 100644
index 0000000000..42e56516d1
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-dp-gp-cluster/package.py
@@ -0,0 +1,33 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+from os import unlink
+from glob import glob
+
+
+class PyDpGpCluster(PythonPackage):
+ """DP_GP_cluster clusters genes by expression over a time course using a
+ Dirichlet process Gaussian process model."""
+
+ homepage = "https://github.com/PrincetonUniversity/DP_GP_cluster"
+ git = "https://github.com/PrincetonUniversity/DP_GP_cluster.git"
+
+ version('2019-09-22', commit='eec12e74219f916aa86e253783905f7b5e30f6f4')
+
+ depends_on('python@2.7:2.8', type=('build', 'run'))
+
+ depends_on('py-cython', type='build')
+ depends_on('py-gpy@0.8.8:0.9.9', type=('build', 'run'))
+ depends_on('py-pandas', type=('build', 'run'))
+ depends_on('py-numpy', type=('build', 'run'))
+ depends_on('py-scipy@0.14:', type=('build', 'run'))
+ depends_on('py-matplotlib', type=('build', 'run'))
+ depends_on('py-scikit-learn', type=('build', 'run'))
+
+ @run_before('build')
+ def remove_cython_output(self):
+ for f in glob('DP_GP/*.c'):
+ unlink(f)