Skip to content

Commit

Permalink
Add: deepchopper (#51460)
Browse files Browse the repository at this point in the history
* Create meta.yaml of deepchopper

* Update meta.yaml of deepchopper

* Create build.sh of deepchopper

* Update build.sh

* Update meta.yaml

* Update build.sh

* Update meta.yaml

* Update meta.yaml

* Update build.sh

* clean up recipe

* add aarch64/arm64 builds

* Update meta.yaml

* Update build.sh

* Update build.sh

* Update build.sh

* Update meta.yaml

* Update meta.yaml

* Update meta.yaml (evaluate do not have latest one)

* Update meta.yaml

* Update meta.yaml

* Update meta.yaml

* Update build.sh

---------

Co-authored-by: mencian <[email protected]>
Co-authored-by: Martin Grigorov <[email protected]>
Co-authored-by: Joshua Zhuang <[email protected]>
  • Loading branch information
4 people authored Oct 29, 2024
1 parent aeb4ad2 commit 24d1739
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
20 changes: 20 additions & 0 deletions recipes/deepchopper/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# -e = exit on first error
# -x = print every executed command
set -ex

# if [ `uname` == Darwin ]; then
# export HOME=`mktemp -d`
# fi

curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly --profile=minimal -y

export PATH="$HOME/.cargo/bin:$PATH"
# export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER="$CC"
# export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER="$CC"


maturin build --interpreter python --release

$PYTHON -m pip install target/wheels/*.whl --no-deps --ignore-installed -vv
74 changes: 74 additions & 0 deletions recipes/deepchopper/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{% set name = "deepchopper" %}
{% set version = "1.2.4" %}
{% set sha256 = "e7f0bfed8c34e011e924bc12e30dec9c58777f1879962b9a2036da29009461e4" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
number: 0
skip: True # [py < 310]
run_exports:
- {{ pin_subpackage("deepchopper", max_pin="x") }}
entry_points:
- deepchopper = deepchopper.cli:app

requirements:
build:
- {{ compiler('rust') }}
- {{ compiler('c') }}
- make
- cmake
host:
- python
- pip
- maturin >=1.2.1,<2
- setuptools-rust
- setuptools
run:
- python
- pytorch >=2.1.0
- lightning >=2.1.2
- torchmetrics >=1.2.0
- rich >=13.7.0
- transformers >=4.37.2
- safetensors >=0.4.2
- datasets ==2.14.2
- evaluate >=0.4.1
- typer >=0.12.0
- gradio ==5.0.1
- fastapi ==0.112.2
- scikit-learn >=1.5.2
- hydra-core >=1.3.2
- omegaconf >=2.3.0
- python-multipart ==0.0.12

test:
imports:
- deepchopper
commands:
- deepchopper --help

about:
home: https://github.com/ylab-hi/DeepChopper
license: Apache-2.0
license_family: Apache
license_file: LICENSE
summary: 'A Genomic Language Model for Chimera Artifact Detection in Nanopore Direct RNA Sequencing.'
description: |
DeepChopper is a genomic language model designed to identify artificial sequences.
It provides functionality for encoding FASTQ files, making predictions, and chopping sequences.
doc_url: https://github.com/ylab-hi/DeepChopper
dev_url: https://github.com/ylab-hi/DeepChopper

extra:
additional-platforms:
- linux-aarch64
- osx-arm64
recipe-maintainers:
- yangyangli

0 comments on commit 24d1739

Please sign in to comment.