Skip to content

Commit

Permalink
Add deepchopper-cli (#51780)
Browse files Browse the repository at this point in the history
* Create meta.yaml

* Create build.sh

* Update meta.yaml

* Update build.sh
  • Loading branch information
cauliyang authored Oct 29, 2024
1 parent a0069df commit fe83aa5
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
19 changes: 19 additions & 0 deletions recipes/deepchopper-cli/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/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"

cd py_cli

maturin build --interpreter python --release -b bin --out dist

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

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

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

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

requirements:
build:
- {{ compiler('rust') }}
- {{ compiler('c') }}
- make
- cmake
host:
- python
- pip
- maturin >=1.2.1,<2
- setuptools-rust
- setuptools
run:
- python


test:
commands:
- deepchopper-chop -h

about:
home: https://github.com/ylab-hi/DeepChopper
license: Apache-2.0
license_family: Apache
license_file: LICENSE
summary: 'A CLI for 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 fe83aa5

Please sign in to comment.