Skip to content

Commit

Permalink
Add rabbittclust (bioconda#47991)
Browse files Browse the repository at this point in the history
* add the rabbittclust

* add the rabbittclust

* remove the make -j8

* add run_exports

* add skip osx

* Use parallel build with `make`

* Remove zlib as a run dependency since it is implicit

---------

Co-authored-by: Joshua Zhuang <71105179+mencian@users.noreply.github.com>
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
  • Loading branch information
3 people authored and fellen31 committed May 28, 2024
1 parent 8cb08fc commit 2f8809a
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
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

0 comments on commit 2f8809a

Please sign in to comment.