easyblock = 'MakeCp'

name = 'Minimac3'
version = '1.0.10'

homepage = 'http://genome.sph.umich.edu/wiki/Minimac3'
description = """Minimac3 is a lower memory and more computationally efficient implementation of the genotype
 imputation algorithms in minimac and minimac2. Minimac3 is designed to handle very large reference panels in a more
 computationally efficient way with no loss of accuracy."""

toolchain = {'name': 'intel', 'version': '2015a'}

source_urls = ['ftp://share.sph.umich.edu/minimac3/']
sources = ['%(name)s.v%(version)s.tar.gz']

dependencies = [('zlib', '1.2.8')]

prebuildopts = 'env CFLAGS="$CFLAGS -wd751 -L$EBROOTZLIB/lib"'
buildopts = 'CC="$CC" CXX="$CXX" F77="$F77" OPTFLAG_OPT="$CFLAGS"'

files_to_copy = [(['bin/Minimac3'], 'bin')]

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

moduleclass = 'bio'
