| 1 | # This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild |
|---|
| 2 | |
|---|
| 3 | easyblock = 'MakeCp' |
|---|
| 4 | |
|---|
| 5 | name = 'VCFtools' |
|---|
| 6 | namelower = name.lower() |
|---|
| 7 | version = '0.1.12b' |
|---|
| 8 | |
|---|
| 9 | homepage = "http://vcftools.sourceforge.net/" |
|---|
| 10 | description = """The aim of VCFtools is to provide |
|---|
| 11 | methods for working with VCF files: validating, |
|---|
| 12 | merging, comparing and calculate some basic population |
|---|
| 13 | genetic statistics. """ |
|---|
| 14 | |
|---|
| 15 | toolchain = {'name': 'goolf', 'version': '1.7.20'} |
|---|
| 16 | |
|---|
| 17 | # |
|---|
| 18 | # Example URL: |
|---|
| 19 | # http://downloads.sourceforge.net/project/vcftools/vcftools_0.1.12b.tar.gz?ts=1429189285&use_mirror=autoselect |
|---|
| 20 | # |
|---|
| 21 | import time |
|---|
| 22 | seconds_after_epoch = int(time.time()) |
|---|
| 23 | source_urls = [('http://downloads.sourceforge.net/project/%s' % namelower, '?ts=%s&use_mirror=autoselect' % seconds_after_epoch)] |
|---|
| 24 | sources = ['%(namelower)s_%(version)s.tar.gz'] |
|---|
| 25 | |
|---|
| 26 | perl = 'Perl' |
|---|
| 27 | perlver = '5.20.2' |
|---|
| 28 | perlversuffix = '-bare' |
|---|
| 29 | versionsuffix = '-%s-%s%s' % (perl, perlver, perlversuffix) |
|---|
| 30 | dependencies = [ |
|---|
| 31 | (perl, perlver, perlversuffix), |
|---|
| 32 | ('tabix', '0.2.6') |
|---|
| 33 | ] |
|---|
| 34 | |
|---|
| 35 | vcf_executables = ['fill-aa', 'fill-an-ac', 'fill-fs', 'fill-ref-md5', |
|---|
| 36 | 'vcf-annotate', 'vcf-compare', 'vcf-concat', 'vcf-consensus', 'vcf-contrast', |
|---|
| 37 | 'vcf-convert', 'vcf-fix-ploidy', 'vcf-indel-stats', 'vcf-isec', 'vcf-merge', |
|---|
| 38 | 'vcf-phased-join', 'vcf-query', 'vcf-shuffle-cols', 'vcf-sort', 'vcf-stats', |
|---|
| 39 | 'vcf-subset', 'vcftools', 'vcf-to-tab', 'vcf-tstv', 'vcf-validator' |
|---|
| 40 | ] |
|---|
| 41 | |
|---|
| 42 | files_to_copy = ['bin', 'lib', 'examples', (['bin/man1'], 'man')] |
|---|
| 43 | |
|---|
| 44 | modextrapaths = {'PERL5LIB': 'lib/perl5/site_perl'} |
|---|
| 45 | |
|---|
| 46 | # |
|---|
| 47 | # Remove manual in wrong location. |
|---|
| 48 | # |
|---|
| 49 | postinstallcmds = ['rm -Rf %(installdir)s/bin/man1/'] |
|---|
| 50 | |
|---|
| 51 | # |
|---|
| 52 | # Check if all binaries from the suite are present. |
|---|
| 53 | # |
|---|
| 54 | sanity_check_paths = { |
|---|
| 55 | 'files': ['bin/%s' % x for x in vcf_executables], |
|---|
| 56 | 'dirs': [], |
|---|
| 57 | } |
|---|
| 58 | |
|---|
| 59 | moduleclass = 'bio' |
|---|