# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
# Author: Pablo Escobar Lopez
# sciCORE - University of Basel
# SIB Swiss Institute of Bioinformatics

# Provided binaries required OpenBLAS and GSL libraries

easyblock = 'Tarball'

name = 'EIGENSOFT'
version = '6.1.1'

homepage = 'http://www.hsph.harvard.edu/alkes-price/software/'
description = """The EIGENSOFT package combines functionality from our population genetics methods (Patterson et al. 2006)
 and our EIGENSTRAT stratification correction method (Price et al. 2006). The EIGENSTRAT method uses principal local_components
 analysis to explicitly model ancestry differences between cases and controls along continuous axes of variation;
 the resulting correction is specific to a candidate marker’s variation in frequency across ancestral populations,
 minimizing spurious associations while maximizing power to detect true associations. The EIGENSOFT package has a built-in
 plotting script and supports multiple file formats and quantitative phenotypes."""

toolchain = {'name': 'goolf', 'version': '1.7.20'}

dependencies = [
    ('GSL', '1.16'),
]

source_urls = [
    'https://data.broadinstitute.org/alkesgroup/EIGENSOFT/',
    'https://data.broadinstitute.org/alkesgroup/EIGENSOFT/OLD/']
sources = ['EIG%(version)s.tar.gz']

sanity_check_paths = {
    'files': [
        'bin/%s' %
        x for x in [
            "baseprog",
            "convertf",
            "eigenstrat",
            "eigenstratQTL"]],
    'dirs': []}

moduleclass = 'bio'
