summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/snptest/package.py
blob: 6c79de1d7ae8f09f74c9b0ee28462f771050984a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright 2013-2023 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 Snptest(Package):
    """SNPTEST is a program for the analysis of single SNP association in
    genome-wide studies."""

    homepage = "https://mathgen.stats.ox.ac.uk/genetics_software/snptest/snptest.html"
    url = "https://www.well.ox.ac.uk/~gav/resources/snptest_v2.5.2_linux_x86_64_dynamic.tgz"

    version("2.5.2", sha256="1ffa3ebafa2c5db4866a38e01bb09f43df7973d053423ce67221cb3f8acb30f6")

    def install(self, spec, prefix):
        mkdirp(prefix.bin)
        install("snptest_v{0}".format(self.version), prefix.bin)