Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deepchopper-cli #51780

Merged
merged 8 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Comment on lines +11 to +13
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Consider using stable Rust toolchain for better reproducibility.

Using the nightly toolchain could lead to build reproducibility issues as it changes frequently. Consider:

  1. Using the stable toolchain unless nightly is specifically required
  2. Pinning the exact nightly version if it's necessary
  3. Adding checksum verification for the rustup script

If nightly is required, consider pinning the version:

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

Committable suggestion was skipped due to low confidence.


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
Loading