summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-ptw/package.py
blob: 7d753a046706f10f808ab79c9ffcfde50169375a (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
# 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 RPtw(RPackage):
    """Parametric Time Warping.

    Parametric Time Warping aligns patterns, i.e. it aims to put corresponding
    features at the same locations. The algorithm searches for an optimal
    polynomial describing the warping. It is possible to align one sample to a
    reference, several samples to the same reference, or several samples to
    several references. One can choose between calculating individual warpings,
    or one global warping for a set of samples and one reference. Two
    optimization criteria are implemented: RMS (Root Mean Square error) and WCC
    (Weighted Cross Correlation). Both warping of peak profiles and of peak
    lists are supported. A vignette for the latter is contained in the inst/doc
    directory of the source package - the vignette source can be found on the
    package github site."""

    cran = "ptw"

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

    version("1.9-16", sha256="7e87c34b9eeaeabe3bfb937162e6cda4dd48d6bd6a97b9db8bb8303d131caa66")
    version("1.9-15", sha256="22fa003f280bc000f46bca88d69bf332b29bc68435115ba8044533b70bfb7b46")
    version("1.9-13", sha256="7855e74a167db3d3eba9df9d9c3daa25d7cf487cbcfe8b095f16d96eba862f46")
    version("1.9-12", sha256="cdb1752e04e661e379f11867b0a17e2177e9ee647c54bbcc37d39d6b8c062b84")

    depends_on("r-nloptr", type=("build", "run"))
    depends_on("r-rcppde", type=("build", "run"), when="@1.9-16:")