forked from bioconda/bioconda-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
2 changed files
with
81 additions
and
0 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
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 | ||
|
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,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 |