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 rabbittclust #47991

Merged
merged 9 commits into from
May 28, 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
40 changes: 40 additions & 0 deletions recipes/rabbittclust/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash

export CC=${CC:-gcc}
export CXX=${CXX:-g++}

#./install.sh
cd RabbitSketch &&
mkdir -p build && cd build &&
cmake -DCXXAPI=ON -DCMAKE_INSTALL_PREFIX=. .. &&
make -j ${CPU_COUNT} && make install &&
cd ../../ &&

#make rabbitFX library
cd RabbitFX &&
mkdir -p build && cd build &&
cmake -DCMAKE_INSTALL_PREFIX=. .. &&
make -j ${CPU_COUNT} && make install &&
cd ../../ &&

#compile the clust-greedy
mkdir -p build && cd build &&
cmake -DUSE_RABBITFX=ON -DUSE_GREEDY=ON .. &&
make -j ${CPU_COUNT} && make install &&
cd ../ &&

#compile the clust-mst
cd build &&
cmake -DUSE_RABBITFX=ON -DUSE_GREEDY=OFF .. &&
make -j ${CPU_COUNT} && make install &&
cd ../

mkdir -p $PREFIX/bin
cp clust-mst $PREFIX/bin/
cp clust-greedy $PREFIX/bin/

#export LIBRARY_DIRS="$LIBRARY_DIRS $PREFIX/lib"

#make BIOCONDA=1
#make install

41 changes: 41 additions & 0 deletions recipes/rabbittclust/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{% set version = "2.3.0" %}

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

source:
url: https://github.com/RabbitBio/RabbitTClust/releases/download/v.2.3.0/RabbitTClust_avx2_v.2.3.0.tar.gz
sha256: f427b55c46fc4121dec33c2069a0515729bbfd08c8b787e3ef8a0ea2ced9ed4b


build:
number: 0
skip: True # [osx]
run_exports:
- {{ pin_subpackage('rabbittclust', max_pin='x.x') }}
# script: build.sh
# run_exports:
# - {{ pin_subpackage("clust-mst", max_pin="x.x") }}
# - {{ pin_subpackage("clust-greedy", max_pin="x.x") }}

requirements:
build:
- {{ compiler('cxx') }}
- {{ compiler('c') }}
- cmake
- make
host:
- zlib
run:

test:
commands:
- clust-mst --help
- clust-greedy --help

about:
home: https://github.com/RabbitBio/RabbitTClust
license: https://github.com/RabbitBio/RabbitTClust/blob/main/LICENSE.txt
license_file: LICENSE.txt
summary: RabbitTClust enables fast clustering analysis of millions bacteria genomes with MinHash sketches