easyblock = 'PackedBinary'

name = 'FastQC'
version = '0.11.4'

homepage = 'http://www.bioinformatics.babraham.ac.uk/projects/fastqc/'
description = """FastQC is a quality control application for high throughput sequence data.
 It reads in sequence data in a variety of formats and can either provide an interactive
 application to review the results of several different QC checks, or create an HTML based
 report which can be integrated into a pipeline."""

toolchain = {'name': 'dummy', 'version': ''}

source_urls = ['http://www.bioinformatics.babraham.ac.uk/projects/%(namelower)s']
sources = ['%(namelower)s_v%(version)s.zip']

patches = ['FastQC_shebang.patch']

java = 'Java'
javaver = '1.8.0_74'
versionsuffix = '-%s-%s' % (java, javaver)
dependencies = [(java, javaver)]

postinstallcmds = ["chmod +x %(installdir)s/fastqc"]

sanity_check_paths = {
    'files': ['fastqc', 'fastqc_icon.ico', 'INSTALL.txt', 'jbzip2-0.9.jar', 'LICENSE.txt', 'LICENSE_JHDF5.txt',
              'README.txt', 'RELEASE_NOTES.txt', 'run_fastqc.bat', 'sam-1.103.jar', 'cisd-jhdf5.jar'],
    'dirs': ['Configuration', 'Help', 'Templates', 'uk', 'net', 'org'],
}

sanity_check_commands = [('fastqc', '-v')]

moduleclass = 'bio'
