# IT4Innovations
# LK 2021

easyblock = 'Tarball'

name = 'snpEff'
version = '5.0'
versionsuffix = '-Java-%(javaver)s-Python-%(pyver)s'

homepage = 'https://pcingola.github.io/SnpEff/'
description = """SnpEff is a variant annotation and effect prediction tool.
 It annotates and predicts the effects of genetic variants (such as amino acid changes)."""

toolchain = {'name': 'GCCcore', 'version': '10.2.0'}

source_urls = ['https://snpeff.blob.core.windows.net/versions/']
sources = ['%%(name)s_v%s_core.zip' % version.replace('.', '_')]
checksums = ['2b177440eb4a2c3bbfc8f50d4adf9e405f3dcfc05a31a55c96f773f07832af34']

dependencies = [
    ('Java', '11', '', True),
    ('Python', '3.8.6'),
    ('Perl', '5.32.0'),
]

fix_perl_shebang_for = ['scripts/*.pl']
fix_python_shebang_for = ['scripts/*.py']

sanity_check_paths = {
    'files': ['%(name)s.jar', 'SnpSift.jar', 'scripts/%(name)s'],
    'dirs': [],
}

sanity_check_commands = ["%(name)s -version"]

modextrapaths = {'PATH': 'scripts'}

moduleclass = 'bio'
