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:8581678
Created January 23, 2014 16:27
hh-suite modification
##
# This file is an EasyBuild recipy as per https://github.com/hpcugent/easybuild
#
# Copyright:: Copyright 2012-2013 University of Luxembourg/Luxembourg Centre for Systems Biomedicine
# Authors:: Fotis Georgatos <fotis.georgatos@uni.lu>
# License:: MIT/GPL
# $Id$
#
# This work implements a part of the HPCBIOS project and is a component of the policy:
# http://hpcbios.readthedocs.org/en/latest/HPCBIOS_2012-94.html
@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)