summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-popvar/package.py
blob: 90c15fa3cb68959ac568355aa80399817a8c9981 (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
# 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 RPopvar(RPackage):
    """Genomic Breeding Tools: Genetic Variance Prediction and
    Cross-Validation.

    The main attribute of 'PopVar' is the prediction of genetic variance in
    bi-parental populations,  from which the package derives its name. 'PopVar'
    contains a set of functions that use phenotypic and genotypic data from a
    set of candidate parents to 1) predict the mean, genetic variance, and
    superior progeny value of all,  or a defined set of pairwise bi-parental
    crosses, and 2) perform cross-validation to estimate genome-wide prediction
    accuracy of multiple statistical models. More details are available in
    Mohammadi, Tiede, and Smith (2015, <doi:10.2135/cropsci2015.01.0030>).  A
    dataset 'think_barley.rda' is included for reference and examples."""

    cran = "PopVar"

    version("1.3.0", sha256="3145c41c9aa1588d47aaf76c082e6b1c2fd95cf5014b98bd2867cbf2cec782f9")
    version("1.2.1", sha256="5e3df79634ab63708a431e4b8e6794675972ac6c58d2bc615726aa0f142f5f25")

    depends_on("r@3.1.1:", type=("build", "run"))
    depends_on("r@3.5.0:", type=("build", "run"), when="@1.3.0:")
    depends_on("r-bglr", type=("build", "run"))
    depends_on("r-qtl", type=("build", "run"))
    depends_on("r-rrblup", type=("build", "run"))