Skip to content

Commit

Permalink
add unicore recipe (#52879)
Browse files Browse the repository at this point in the history
* add unicore recipe

* Remove build>script from meta.yaml. Use build.sh instead

* Move cargo-bundle-licenses to build.sh

* pytorch runtime dependencies

* add openssl to build requirements

* move openssl to host

* relocate source binary script

* file location compatibility

* fix typo

* osx compatibility

* osx

* remove cuda dependency

* rustup Darwin

* rustup Darwin stable

* Update recipes/unicore/meta.yaml

Co-authored-by: Martin Grigorov <[email protected]>

* Darwin check trial

* remove comments

Co-authored-by: Michael Hall <[email protected]>

---------

Co-authored-by: Martin Grigorov <[email protected]>
Co-authored-by: Michael Hall <[email protected]>
  • Loading branch information
3 people authored Dec 20, 2024
1 parent 600e305 commit 1750526
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
16 changes: 16 additions & 0 deletions recipes/unicore/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -x -e

PWD="$(pwd)"
SOURCE_CFG="${PWD}/path.cfg"
TARGET_CFG="${PREFIX}/etc/path.cfg"
SOURCE_PY="${PWD}/src/py/predict_3Di_encoderOnly.py"
TARGET_PY="${PREFIX}/etc/predict_3Di_encoderOnly.py"

mkdir -p "${PREFIX}/etc"
cp ${SOURCE_CFG} ${TARGET_CFG}
cp ${SOURCE_PY} ${TARGET_PY}

cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
cargo install -v --locked --no-track --root $PREFIX --path .
52 changes: 52 additions & 0 deletions recipes/unicore/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{% set name = "unicore" %}
{% set version = "1.0.0c" %}
{% set sha256 = "6a17131a954112ffb747b8ff0ef9315570880224a3f7b7bedc15a2aea81bbea9" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://github.com/steineggerlab/unicore/archive/v{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
number: 0
run_exports:
- {{ pin_subpackage('unicore', max_pin="x") }}

requirements:
build:
- {{ compiler('rust') }}
- cargo-bundle-licenses
host:
- openssl
run:
- pytorch
- transformers
- sentencepiece
- protobuf
- foldseek >=9.427df8a
- foldmason
- mafft
- iqtree
- fasttree
- raxml

test:
commands:
- unicore help

about:
home: https://github.com/steineggerlab/unicore
license: GNU-3.0-or-later
license_family: GPL3
license_file:
- LICENSE
- THIRDPARTY.yml
summary: Universal and efficient core gene phylogeny with Foldseek and ProstT5

extra:
recipe-maintainers:
- endixk
- pskvins

0 comments on commit 1750526

Please sign in to comment.