summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-uwot/package.py
blob: c5e5d78dbdb689ed82bb66afbf87a7be13c5395e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 2013-2024 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.package import *


class RUwot(RPackage):
    """The Uniform Manifold Approximation and Projection (UMAP) Method for
    Dimensionality Reduction.

    An implementation of the Uniform Manifold Approximation and Projection
    dimensionality reduction by McInnes et al. (2018) <arXiv:1802.03426>. It
    also provides means to transform new data and to carry out supervised
    dimensionality reduction. An implementation of the related LargeVis method
    of Tang et al. (2016) <arXiv:1602.00370> is also provided. This is a
    complete re-implementation in R (and C++, via the 'Rcpp' package): no
    Python installation is required. See the uwot website
    (<https://github.com/jlmelville/uwot>) for more documentation and
    examples."""

    cran = "uwot"

    license("GPL-3.0-or-later")

    version("0.1.14", sha256="8016e8192b7e72604ca71840cbe43fa1d2caed8a8ad7cbf20e85cd3b384a9fe0")
    version("0.1.11", sha256="4fcf90f1369a2a1f01db9e05a2365b155b2ada8e51e1f7f3ba5122d86affd41b")
    version("0.1.10", sha256="6ee1b6027bce679cd5a35f647f516a5b327632234bcf323c7f3d5b5e10807d23")
    version("0.1.3", sha256="4936e6922444cae8a71735e945b6bb0828a1012232eb94568054f78451c406d7")

    depends_on("r-matrix", type=("build", "run"))
    depends_on("r-rcpp", type=("build", "run"))
    depends_on("r-fnn", type=("build", "run"))
    depends_on("r-rcppannoy@0.0.11:", type=("build", "run"))
    depends_on("r-rcppannoy@0.0.17:", type=("build", "run"), when="@0.1.10:")
    depends_on("r-irlba", type=("build", "run"))
    depends_on("r-rcppprogress", type=("build", "run"))
    depends_on("r-dqrng", type=("build", "run"))

    depends_on("r-rcppparallel", type=("build", "run"), when="@:0.1.3")
    depends_on("gmake", type="build", when="@:0.1.3")
    depends_on("r-rspectra", type=("build", "run"), when="@:0.1.11")