# IT4Innovations 2018

easyblock = 'Tarball'

name = 'GATK'
version = '4.0.2.1'
versionsuffix = '-Java-%(javaver)s'

homepage = 'http://www.broadinstitute.org/gatk/'
description = """The Genome Analysis Toolkit or GATK is a software package developed at the Broad Institute
 to analyse next-generation resequencing data. The toolkit offers a wide variety of tools,
 with a primary focus on variant discovery and genotyping as well as strong emphasis on
 data quality assurance. Its robust architecture, powerful processing engine and
 high-performance computing features make it capable of taking on projects of any size."""

toolchain = {'name': 'system', 'version': ''}

# download manually from http://www.broadinstitute.org/gatk/download
source_urls = [
    ' https://github.com/broadinstitute/gatk/releases/download/%(version)s/']

sources = ['gatk-%(version)s.zip']

dependencies = [('Java', '1.8.0_144')]

#modloadmsg = "To execute GATK run: java -jar $EBROOTGATK/GenomeAnalysisTK.jar\n"

postinstallcmds = [
    'mkdir %(installdir)s/bin',
    'mv %(installdir)s/gatk %(installdir)s/bin',
]

sanity_check_paths = {
    'files': [
        'gatk-package-4.0.2.1-local.jar',
        'gatk-package-4.0.2.1-spark.jar'],
    'dirs': ['bin'],
}

moduleclass = 'bio'
