easyblock = 'Bundle'

name = 'deepTools'
version = '2.5.4'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://deeptools.readthedocs.org/'
description = """deepTools is a suite of python tools particularly developed for the efficient analysis of
 high-throughput sequencing data, such as ChIP-seq, RNA-seq or MNase-seq."""

toolchain = {'name': 'intel', 'version': '2017b'}

dependencies = [
    ('Python', '3.6.3'),
    ('Pysam', '0.13.0', versionsuffix),
    ('matplotlib', '2.1.1', versionsuffix),
]

exts_defaultclass = 'PythonPackage'
exts_filter = ("python -c 'import %(ext_name)s'", '')

exts_list = [
    ('py2bit', '0.2.2', {
        'source_urls': ['https://pypi.python.org/packages/source/p/py2bit'],
        'checksums': ['8bf068f250b18144cf31984f7325424abc315082c1d18bf526ae424966a56249'],
    }),
    ('pyBigWig', '0.3.9', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pyBigWig'],
        'modulename': 'pyBigWig',
        'checksums': ['34306213414a8d8974c4ffaac153b3d0a67ce0183514a93aede6c3d33b6f7947'],
    }),
    (name, version, {
        'source_urls': ['https://pypi.python.org/packages/source/d/deepTools'],
        'checksums': ['327600d3b2c75c5095d6e5192ea162e52c2526f2a04ff296f3d946ef7cabbd28'],
    }),
]

# specify that Bundle easyblock should run a full sanity check, rather than just trying to load the module
full_sanity_check = True

sanity_check_paths = {
    'files': ['bin/bamCompare', 'bin/bamCoverage', 'bin/bamPEFragmentSize', 'bin/computeGCBias', 'bin/computeMatrix',
              'bin/correctGCBias', 'bin/multiBamSummary', 'bin/plotCorrelation', 'bin/plotCoverage',
              'bin/plotHeatmap', 'bin/plotProfile'],
    'dirs': ['lib/python%(pyshortver)s/site-packages'],
}

sanity_check_commands = ["python -c 'import deeptools'"]

modextrapaths = {'PYTHONPATH': ['lib/python%(pyshortver)s/site-packages']}

moduleclass = 'lib'
