##
# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
#
# Copyright:: Copyright 2012-2014 Uni.Lu/LCSB, NTUA
# Authors::   Nils Christian <nils.christian@uni.lu>, Fotis Georgatos <fotis@cern.ch>
# License::   MIT/GPL
# $Id$
#
# This work implements a part of the HPCBIOS project and is a local_component of the policy:
# http://hpcbios.readthedocs.org/en/latest/HPCBIOS_2012-94.html
##

easyblock = 'ConfigureMake'

name = 'HMMER'
version = '3.1b1'

homepage = 'http://hmmer.janelia.org/'
description = """HMMER is used for searching sequence databases for homologs of protein sequences,
 and for making protein sequence alignments. It implements methods using probabilistic models
 called profile hidden Markov models (profile HMMs).  Compared to BLAST, FASTA, and other
 sequence alignment and database search tools based on older scoring methodology,
 HMMER aims to be significantly more accurate and more able to detect remote homologs
 because of the strength of its underlying mathematical models. In the past, this strength
 came at significant local_computational expense, but in the new HMMER3 project, HMMER is now
 essentially as fast as BLAST."""

toolchain = {'name': 'ictce', 'version': '5.3.0'}

sources = ['hmmer-%(version)s-linux-intel-x86_64.tar.gz']
source_urls = [
    'http://selab.janelia.org/software/hmmer%(version_major)s/%(version)s/']
patches = ['hmmer-%(version)s_link-LIBS-utests.patch']

installopts = ' && cd easel && make install'

sanity_check_paths = {
    'files': ["bin/%s" % x for x in ["hmmemit", "hmmsearch", "hmmscan",
                                     "esl-alimap", "esl-cluster", "esl-mask"]],
    'dirs': []
}

runtest = 'check'

moduleclass = 'bio'
