# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild
# Modified by Adam Huffman
# The Francis Crick Institute

easyblock = 'Tarball'

name = 'annovar'
# Unconventional version is taken from the upstream site
# http://annovar.openbioinformatics.org/en/latest/user-guide/download/
version = '2016Feb01'
versionsuffix = '-Perl-%(perlver)s'

homepage = 'http://annovar.openbioinformatics.org/en/latest/'
description = """ ANNOVAR is an efficient software tool to utilize update-to-date information 
 to functionally annotate genetic variants detected from diverse genomes (including human 
 genome hg18, hg19, hg38, as well as mouse, worm, fly, yeast and many others)."""

toolchain = {'name': 'foss', 'version': '2016a'}

# Registration required for download
# http://www.openbioinformatics.org/annovar/annovar_download_form.php
# rename after download to %(name)s-%(version)s.tar.gz
sources = ['%(name)s-%(version)s.tar.gz']
checksums = ['2b26e514c54a847bfdcf4ce57e43f95c']

dependencies = [('Perl', '5.22.1')]

modextrapaths = {
    'PATH': '',
}

sanity_check_paths = {
    'files': ["annotate_variation.pl", "retrieve_seq_from_fasta.pl"],
    'dirs': ["example", "humandb"],
}

moduleclass = 'bio'
