# Copyright 2013-2022 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 *


class RConvevol(RPackage):
    """Analysis of Convergent Evolution.

    Quantifies and assesses the significance of convergent evolution using two
    different methods (and 5 different measures) as described in Stayton (2015)
    <doi:10.1111/evo.12729>. Also displays results in a phylomorphospace
    framework."""

    cran = "convevol"

    version('1.3', sha256='d6b24b9796a559f5280e277746189d141151ade4b14cc6b4c2d9d496d7f314ac')

    depends_on('r@3.5.0:', type=('build', 'run'))
    depends_on('r-ape', type=('build', 'run'))
    depends_on('r-cluster', type=('build', 'run'))
    depends_on('r-geiger', type=('build', 'run'))
    depends_on('r-mass', type=('build', 'run'))
    depends_on('r-phytools', type=('build', 'run'))
