# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
# Author: Pablo Escobar Lopez
# sciCORE - University of Basel
# SIB Swiss Institute of Bioinformatics

easyblock = 'Tarball'

name = 'STAR-Fusion'
version = '0.6.0'
versionsuffix = '-Perl-%(perlver)s'

homepage = 'https://github.com/STAR-Fusion/STAR-Fusion'
description = """STAR-Fusion uses the STAR aligner to identify candidate fusion transcripts
 supported by Illumina reads. STAR-Fusion further processes the output generated by the STAR aligner
 to map junction reads and spanning reads to a reference annotation set."""

toolchain = {'name': 'goolf', 'version': '1.4.10'}

source_urls = [
    'https://github.com/STAR-Fusion/STAR-Fusion/releases/download/v%(version)s/']
sources = ['%(name)s_v%(version)s.FULL.tar.gz']

dependencies = [
    ('Perl', '5.16.3'),
    ('STAR', '2.5.1b'),
]

# these are the perl libraries dependencies
exts_defaultclass = 'PerlModule'
exts_filter = ("perldoc -lm %(ext_name)s ", "")

exts_list = [
    ('Set::IntervalTree', '0.10', {
        'source_tmpl': 'Set-IntervalTree-0.10.tar.gz',
        'source_urls': ['https://cpan.metacpan.org/authors/id/B/BE/BENBOOTH/'],
    }),
    ('DB_File', '1.835', {
        'source_tmpl': 'DB_File-1.835.tar.gz',
        'source_urls': ['https://cpan.metacpan.org/authors/id/P/PM/PMQS/'],
    }),
]

modextrapaths = {
    'PATH': "",  # add installation dir to PATH
    'PERL5LIB': 'lib/perl5/site_perl/%(perlver)s/'
}

sanity_check_paths = {
    'files': ['STAR-Fusion'],
    'dirs': []
}

moduleclass = 'bio'
