diff --git a/recipes/genera/build.sh b/recipes/genera/build.sh new file mode 100644 index 0000000000000..6703c9eb54fa6 --- /dev/null +++ b/recipes/genera/build.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# Exit on any error +set -ex + +# Ensure all main scripts are executable +chmod +x genEra Erassignment hmmEra tree2ncbitax FASTSTEP3R test_installation.sh + +# Define the Conda binary path +CONDABIN="${PREFIX}/bin" + +# Ensure the directory exists +mkdir -p "$CONDABIN" + + +# Move executables to the Conda binary directory +mv genEra "$CONDABIN" +mv Erassignment "$CONDABIN" +mv hmmEra "$CONDABIN" +mv tree2ncbitax "$CONDABIN" +mv FASTSTEP3R "$CONDABIN" +mv test_installation.sh "$CONDABIN" + +echo "Installation complete. Executables have been moved to ${CONDABIN}." diff --git a/recipes/genera/meta.yaml b/recipes/genera/meta.yaml new file mode 100644 index 0000000000000..1937ba150929c --- /dev/null +++ b/recipes/genera/meta.yaml @@ -0,0 +1,45 @@ +{% set version = '1.4.2' %} + +package: + name: genera + version: {{ version|replace('-', '_') }} + +source: + - url: https://github.com/josuebarrera/GenEra/archive/refs/tags/v{{ version }}.tar.gz + sha256: acc49698b68151550b825c73f1f03dd268da2c73ecc7ac4c55eccb8bec5b1a54 + +build: + number: 0 + noarch: generic + run_exports: + - {{ pin_subpackage('genera', max_pin="x.x") }} + +requirements: + host: + - python >=3.8,<3.9 + run: + - python >=3.8,<3.9 + - diamond >=2.1.10 + - mmseqs2 =14.7e284 + - foldseek =3.915ef7d + - scipy =1.7.3 + - r-seqinr =4.2_16 + - r-optparse =1.7.3 + - r-bio3d =2.4_3 + - r-tidyverse =1.3.2 + - r-phytools >=0.6_99 + - orthofinder =2.5.5 + - ncbitax2lin >=2.3.2 + - absense >=1.0.1 + +test: + commands: + - genEra -h + - hmmEra -h + - test_installation.sh -h + +about: + home: https://github.com/josuebarrera/GenEra + license: "GPL-3.0-or-later" + license_family: GPL3 + summary: "Uncovering gene-family founder events during major evolutionary transitions in animals, plants and fungi using GenEra"