From e46d1828c4bb971a3a5d123e457fb0f881aba388 Mon Sep 17 00:00:00 2001 From: kiesers Date: Wed, 21 Nov 2018 16:42:52 +0100 Subject: [PATCH 1/3] add genome-properties --- recipes/genome-properties/build.sh | 22 +++++++++++++++ recipes/genome-properties/meta.yaml | 42 +++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 recipes/genome-properties/build.sh create mode 100644 recipes/genome-properties/meta.yaml diff --git a/recipes/genome-properties/build.sh b/recipes/genome-properties/build.sh new file mode 100644 index 0000000000000..0df7a97b7334d --- /dev/null +++ b/recipes/genome-properties/build.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +set -e -o pipefail + +cpanm DDP +cpanm LWP::UserAgent + + + +outdir=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM +mkdir -p $outdir +mkdir -p $PREFIX/bin + +cp -r flatfiles $outdir +cp -r code $outdir + + +# make assign_genome_properties.pl available +ln -s $outdir/code/scripts/assign_genome_properties.pl $PREFIX/bin + +mkdir -p ${PREFIX}/etc/conda/activate.d/ +echo "export export PERL5LIB=$PERL5LIB:$outdir/code/modules" > ${PREFIX}/etc/conda/activate.d/${PKG_NAME}-${PKG_VERSION}.sh diff --git a/recipes/genome-properties/meta.yaml b/recipes/genome-properties/meta.yaml new file mode 100644 index 0000000000000..f8723eb643354 --- /dev/null +++ b/recipes/genome-properties/meta.yaml @@ -0,0 +1,42 @@ +{% set version = "2.0.1" %} + +package: + name: genome-properties + version: {{ version }} + +source: + url: https://github.com/SilasK/genome-properties/archive/v{{ version }}.tar.gz + sha256: 628428e7ed2b74c16703fcf8e825e84d4cbcbadf4dc61dac6c64e89f35694ecc +build: + number: 1 + +requirements: + run: + - perl=5.22.0.1 + - perl-app-cpanminus=1.7043 + - perl-clone=0.38 + - perl-json=2.90 + - perl-try-tiny=0.24 + +test: + imports: + - GenomeProperties; + - GenomeProperties::Definition + - GenomeProperties::Step + - GenomeProperties::StepEvidence + commands: + - assign_genome_properties.pl -h + +about: + home: https://www.ebi.ac.uk/interpro/genomeproperties/ + license: GPLv3 + license_family: GPL + summary: | + Genome properties is an annotation system whereby functional attributes can be assigned to a genome, based on the presence of a defined set of protein signatures within that genome. Properties (which often describe pathways) are composed of steps, with each step defining a protein required for the function of the pathway/property. Genome properties use protein signatures as evidence to determine the presence of each step within a property. + dev_url: https://github.com/ebi-pf-team/genome-properties + doc_url: https://genome-properties.readthedocs.io/en/latest/index.html +extra: + recipe-maintainers: + - kiesers + identifiers: + - doi:10.1093/nar/gky1013 From 46c507a33877bb6b4f7625dd5ac2457680f51291 Mon Sep 17 00:00:00 2001 From: kiesers Date: Wed, 21 Nov 2018 16:51:48 +0100 Subject: [PATCH 2/3] added packages to host --- recipes/genome-properties/meta.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipes/genome-properties/meta.yaml b/recipes/genome-properties/meta.yaml index f8723eb643354..57afafaca3e02 100644 --- a/recipes/genome-properties/meta.yaml +++ b/recipes/genome-properties/meta.yaml @@ -11,6 +11,12 @@ build: number: 1 requirements: + host: + - perl=5.22.0.1 + - perl-app-cpanminus=1.7043 + - perl-clone=0.38 + - perl-json=2.90 + - perl-try-tiny=0.24 run: - perl=5.22.0.1 - perl-app-cpanminus=1.7043 From 09addf18ad25f0c8a382fcbbb1911d38786c4991 Mon Sep 17 00:00:00 2001 From: kiesers Date: Wed, 21 Nov 2018 17:00:55 +0100 Subject: [PATCH 3/3] removed import test --- recipes/genome-properties/meta.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/recipes/genome-properties/meta.yaml b/recipes/genome-properties/meta.yaml index 57afafaca3e02..d0aec60f57bda 100644 --- a/recipes/genome-properties/meta.yaml +++ b/recipes/genome-properties/meta.yaml @@ -25,11 +25,6 @@ requirements: - perl-try-tiny=0.24 test: - imports: - - GenomeProperties; - - GenomeProperties::Definition - - GenomeProperties::Step - - GenomeProperties::StepEvidence commands: - assign_genome_properties.pl -h