-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into doubletdetection
- Loading branch information
Showing
23 changed files
with
372 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
export C_INCLUDE_PATH=$C_INCLUDE_PATH:${PREFIX}/include | ||
export LIBRARY_PATH=$LIBRARY_PATH:${PREFIX}/lib | ||
|
||
cd src | ||
make CC=$CC CFLAGS="$CFLAGS -fcommon" | ||
mkdir -p ${PREFIX}/bin | ||
make | ||
|
||
mv extra/ ${PREFIX}/bin | ||
mv JARVIS3.sh ${PREFIX}/bin | ||
mv JARVIS3 ${PREFIX}/bin | ||
|
||
cd ${PREFIX}/bin | ||
sed -i.bak 's/ \.\// /g; s/\"\.\//"/g' JARVIS3.sh > aux.sh | ||
rm JARVIS3.sh | ||
mv aux.sh JARVIS3.sh | ||
chmod +x JARVIS3.sh | ||
JARVIS3.sh --install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% set version = "3.7" %} | ||
|
||
package: | ||
name: jarvis3 | ||
version: {{ version }} | ||
|
||
build: | ||
# Passes some invalid flags for clang | ||
skip: True # [osx] | ||
number: 0 | ||
run_exports: | ||
- {{ pin_subpackage("jarvis3", max_pin="x") }} | ||
|
||
source: | ||
url: https://github.com/cobilab/jarvis3/archive/refs/tags/v{{ version }}.tar.gz | ||
sha256: 7600b4da05d27150e96f3481ca5e8cbc1dc75ee1b537727abf717224ed42c613 | ||
|
||
requirements: | ||
build: | ||
- make | ||
- {{ compiler('c') }} | ||
|
||
test: | ||
commands: | ||
- JARVIS3 --version 2>&1 | grep "Version 3, Release 7" | ||
#- printf ">test_seq\nACGTCGCGCGCGCG\n" > test.fa; JARVIS3.sh -i test.fa | grep "test.fa.tar" | ||
|
||
about: | ||
home: https://github.com/cobilab/jarvis3 | ||
license: GPL3 | ||
license_file: LICENSE | ||
license_family: GPL3 | ||
summary: Improved encoder for genomic sequences. | ||
dev_url: https://github.com/cobilab/jarvis3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
#!/bin/bash | ||
|
||
echo "DEBUGGING environment info because PREFIX did not appear to be set" | ||
echo "PREFIX=$PREFIX CONDA_PREFIX=$CONDA_PREFIX" | ||
echo "PREFIX=$PREFIX CONDA_PREFIX=$CONDA_PREFIX" | ||
echo "PREFIX =" $PREFIX CONDA_PREFIX = $CONDA_PREFIX BUILD_PREFIX = $BUILD_PREFIX | ||
echo $PREFIX | ||
|
||
# test fix for version 3.9.8 | ||
# move patch to meta.yaml | ||
# patch < patch.3.9.8 | ||
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib" | ||
|
||
# fix error because of gnu++17 features. Suggested by https://conda-forge.org/docs/maintainer/knowledge_base.html#newer-c-features-with-old-sdk | ||
CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY" | ||
CXXFLAGS="${CXXFLAGS} -O3 -D_LIBCPP_DISABLE_AVAILABILITY" | ||
|
||
# note that for version 3.7 the make command should be: | ||
make CXX="$CXX $LDFLAGS" CPPFLAGS="$CXXFLAGS" PREFIX="$PREFIX" CONDA_DB_DIR="$CONDA_PREFIX/share/amrfinderplus/data" | ||
# Get StxTyper source as well | ||
git submodule update --init | ||
|
||
#echo "make CXX=\"$CXX $LDFLAGS\" CPPFLAGS=\"$CXXFLAGS\" PREFIX=\"$PREFIX\" DEFAULT_DB_DIR=\"$PREFIX/share/amrfinderplus/data\"" | ||
make CXX="$CXX $LDFLAGS" CPPFLAGS="$CXXFLAGS -I${PREFIX}/include" PREFIX="$PREFIX" DEFAULT_DB_DIR="${PREFIX}/share/amrfinderplus/data" -j"${CPU_COUNT}" | ||
|
||
#make CXX="$CXX $LDFLAGS" CPPFLAGS="$CXXFLAGS" PREFIX=$PREFIX DEFAULT_DB_DIR="$PREFIX/share/amrfinderplus/data" | ||
make install bindir=$PREFIX/bin | ||
make install INSTALL_DIR="$PREFIX/bin" | ||
|
||
### Temporary bug fix for issue with Makefile. These lines have been added to the makefile | ||
# for future releases, so remove after version 4.0.3 | ||
if [ ! -e "$PREFIX/bin/stx/stxtyper" ] | ||
then | ||
mkdir "$PREFIX/bin/stx" | ||
ln -s ../stxtyper "$PREFIX/bin/stx/stxtyper" | ||
fi | ||
# end bug fix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.