Skip to content

Instantly share code, notes, and snippets.

View pescobar's full-sized avatar

Pablo Escobar Lopez pescobar

  • UniBas - SIB
View GitHub Profile
@pescobar
pescobar / gist:8999881
Created February 14, 2014 11:58
eb-custom-naming-scheme
[pub@login10 1.10.0]$ cat easybuild/tools/module_naming_scheme/JustAppNameAndVersion.py
import os
from easybuild.tools.module_naming_scheme import ModuleNamingScheme
class JustAppNameAndVersion(ModuleNamingScheme):
"""Class implementing an example module naming scheme."""
def det_full_module_name(self, ec):
@pescobar
pescobar / Bowtie2-2.0.5-goolf-1.4.10.eb
Created February 28, 2014 15:20
bowtie eb-config using glob support in makecp easyblock
# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
# Author: Pablo Escobar Lopez
# Swiss Institute of Bioinformatics
# Biozentrum - University of Basel
easyblock='MakeCp'
name = 'Bowtie2'
version = '2.0.5'
"""
EasyBuild support for OpenStructure, implemented as an easyblock
@author: Pablo Escobar (University of Basel)
"""
from easybuild.easyblocks.generic.cmakemake import CMakeMake
from easybuild.tools.modules import get_software_root, get_software_version
@pescobar
pescobar / gist:9789052
Created March 26, 2014 17:42
plink goolf working
# Built with EasyBuild version 1.11.0 on 2014-03-26_18-21-21
easyblock='MakeCp'
name = 'PLINK'
version = '1.07'
homepage = 'http://pngu.mgh.harvard.edu/~purcell/plink/'
description = """ PLINK is a free, open-source whole genome association analysis toolset,
designed to perform a range of basic, large-scale analyses in a computationally efficient manner.
The focus of PLINK is purely on analysis of genotype/phenotype data, so there is no support for
def dependencies(self):
"""
returns an array of parsed dependencies
dependency = {'name': '', 'version': '', 'dummy': (False|True), 'versionsuffix': '', 'toolchain': ''}
"""
full_dependencies = self['dependencies'] + self.builddependencies()
# define dependencies we never want because we will use OS packages
deps_to_remove = ["zlib", "ncurses", "libpng"]
# remove unwanted deps
def download_file(filename, url, path):
"""Download a file from the given URL, to the specified path."""
_log.debug("Downloading %s from %s to %s" % (filename, url, path))
# make sure directory exists
basedir = os.path.dirname(path)
mkdir(basedir, parents=True)
downloaded = False
easybuild@easybuild-debian:~$ type module
-su: type: module: not found
easybuild@easybuild-debian:~$ which lmod
/home/easybuild/lmod-install/lmod/5.5.1/libexec/lmod
easybuild@easybuild-debian:~$ python --version
Python 2.7.3
easybuild@easybuild-debian:~$ python bootstrap_eb.py $HOME/.local/easybuild
[[INFO]] Found module command 'lmod' (Lmod), so using it.
[[INFO]]
@pescobar
pescobar / easybuild_test_report_easyconfigs_pr868_20145915-UTC-12-59-27.md
Created May 15, 2014 12:59
EasyBuild test report for easyconfigs PR #868

Test report for easybuilders/easybuild-easyconfigs#868

Test result

Build succeeded for 1 out of 1 (1 easyconfigs in this PR)

Overview of tested easyconfigs (in order)

  • SUCCESS Jellyfish-2.1.3-goolf-1.4.10.eb

Time info

  • start: Thu, 15 May 2014 12:55:04 +0000 (UTC)
@pescobar
pescobar / easybuild_test_report_easyconfigs_pr868_20141015-UTC-13-10-37.md
Created May 15, 2014 13:10
EasyBuild test report for easyconfigs PR #868

Test report for easybuilders/easybuild-easyconfigs#868

Test result

Build succeeded for 1 out of 1 (1 easyconfigs in this PR)

Overview of tested easyconfigs (in order)

  • SUCCESS Jellyfish-2.1.3-goolf-1.4.10.eb

Time info

  • start: Thu, 15 May 2014 13:06:13 +0000 (UTC)
@pescobar
pescobar / GSL-1.16-goolf-1.4.10_partial.log
Created May 15, 2014 13:14
(partial) EasyBuild log for failed build of /home/easybuild/easybuild-easyconfigs/easybuild/easyconfigs/g/GSL/GSL-1.16-goolf-1.4.10.eb (PR #870)
== 2014-05-15 15:13:24,857 main.ConfigureMake INFO This is EasyBuild 1.13.0dev (framework: 1.13.0dev, easyblocks: 1.12.1) on host easybuild-debian.
== 2014-05-15 15:13:24,857 main.ConfigureMake INFO Init completed for application name GSL version 1.16
== 2014-05-15 15:13:24,857 main.easyblock.<module> INFO Obtained application instance of for GSL (easyblock: None)
== 2014-05-15 15:13:24,857 main.easyblock.<module> DEBUG Skip set to False
== 2014-05-15 15:13:24,857 main.module_generator DEBUG Determining module name for <easybuild.framework.easyconfig.easyconfig.EasyConfig object at 0x2615690> (eb_ns: False)
== 2014-05-15 15:13:24,857 main.module_generator DEBUG List of available module naming schemes: ['EasyBuildModuleNamingScheme']
== 2014-05-15 15:13:24,858 main.module_generator DEBUG Module name GSL/1.16-goolf-1.4.10 validated
== 2014-05-15 15:13:24,858 main.module_generator DEBUG Obtained module name GSL/1.16-goolf-1.4.10
== 2014-05-15 15:13:24,858 main.ConfigureMake INFO building and installing GSL/1.16-