# 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 

easyblock = 'MakeCp'

name = 'BayPass'
version = '2.1'

homepage = 'http://www1.montpellier.inra.fr/CBGP/software/baypass/index.html'
description = """BayPass is a population genomics software which is primarily aimed at identifying 
 genetic markers subjected to selection and/or associated to population-specific covariates 
 (e.g., environmental variables, quantitative or categorical phenotypic characteristics). 
 The underlying models explicitly account for (and may estimate) the covariance structure among the
 population allele frequencies that originates from the shared history of the populations under study"""

toolchain = {'name': 'goolf', 'version': '1.7.20'}
toolchainopts = {'openmp': True}

source_urls = ['http://www1.montpellier.inra.fr/CBGP/software/baypass/files/']
sources = ['%(namelower)s_%(version)s.tar.gz']

start_dir = 'sources'

parallel = 1

files_to_copy = [(['sources/g_baypass'], 'bin/'), 
		  'BayPass_manual_2.1.pdf', 
 		  'examples', 
		  'Licence_CeCILL-B_V1-en.txt', 
		  'utils'
]

sanity_check_paths = {
    'files': ['bin/g_baypass'],
    'dirs': []
}

moduleclass = 'bio'
