easyblock = 'PythonBundle'

name = 'TEtranscripts'
version = '2.2.0'

homepage = 'https://github.com/mhammell-laboratory/TEtranscripts'
description = """TEtranscripts and TEcount takes RNA-seq (and similar data) and annotates reads
to both genes & transposable elements. 
TEtranscripts then performs differential analysis using DESeq2.""" 

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

multi_deps = {'Python': ['3.8.2', '2.7.18']}

dependencies = [
    ('Pysam', '0.16.0.1'),
    ('R-bundle-Bioconductor', '3.11', '-R-4.0.0'),
]

use_pip = True

exts_list = [
    ('argparse', '1.4.0', {
        'source_urls': [PYPI_SOURCE],
        'checksums': ['62b089a55be1d8949cd2bc7e0df0bddb9e028faefc8c32038cc84862aefdd6e4'],
    }),
    (name, version, {
        'source_urls': ['https://github.com/mhammell-laboratory/TEtranscripts/archive/'],
        'source_tmpl': '%(version)s.tar.gz',
        'checksums': ['9060f284ca20d598cfb6cc6895d5708afdd7850b353359fbe32e893f29bda98e'],
        'modulename': 'TEToolkit',
    }),
]

fix_python_shebang_for = ['bin/*']

sanity_check_paths = {
    'files': ['bin/TEtranscripts', 'bin/TEcount'],
    'dirs': ['lib/python%(pyshortver)s/site-packages'],
}

sanity_check_commands = [
    'TEtranscripts --version',
    'TEcount --version',
]

sanity_pip_check = True

moduleclass = 'bio'
