# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild

easyblock = 'MakeCp'

name = 'MapSplice'
version = '2.2.1'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://www.netlab.uky.edu/p/bioinfo/%(name)s2'
description = """MapSplice is a software for mapping RNA-seq data to reference genome for splice
 junction discovery that depends only on reference genome, and not on any further annotations."""

toolchain = {'name': 'foss', 'version': '2016b'}
toolchainopts = {'pic': True}

source_urls = ['http://protocols.netlab.uky.edu/~zeng']
sources = ['%(name)s-v%(version)s.zip']
patches = ['%(name)s-%(version)s_fix-build-gcc.patch']
checksums = [
    '4f3c1cb49ba0abcfc952de5946ee0b56db28c51f4f4d4f5abca66b4461ca7d05',  # MapSplice-v2.2.1.zip
    '726f3177de67058f192788d8c352155a946817fc837af71389b9a542a51515fb',  # MapSplice-2.2.1_fix-build-gcc.patch
]

dependencies = [
    ('Python', '2.7.12'),
]

files_to_copy = ['bin', 'mapsplice.py', 'Copyright.txt']

sanity_check_paths = {
    'files': ['%(namelower)s.py'],
    'dirs': ['bin'],
}

modloadmsg = "To use MapSplice run: python $EBROOTMAPSPLICE/mapsplice.py\n"

moduleclass = 'bio'
