-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
add amplici
Showing
2 changed files
with
78 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,30 @@ | ||
#!/bin/bash | ||
|
||
# Set the main working directory | ||
SRC_DIR="$(pwd)" | ||
|
||
# Check if the src folder exists | ||
if [ -d "$SRC_DIR/src" ]; then | ||
BUILD_DIR="$SRC_DIR/src" | ||
else | ||
# If no src folder, look for a directory starting with 'AmpliCI' | ||
AMPLICI_DIR=$(find "$SRC_DIR" -type d -name "amplici*" | head -n 1) | ||
|
||
if [ -z "$AMPLICI_DIR" ]; then | ||
echo "Error: Could not find a directory starting with 'amplici'" | ||
exit 1 | ||
else | ||
BUILD_DIR="$AMPLICI_DIR/src" | ||
if [ ! -d "$BUILD_DIR" ]; then | ||
echo "Error: 'src' directory not found in $AMPLICI_DIR" | ||
exit 1 | ||
fi | ||
fi | ||
fi | ||
|
||
# Navigate to the build directory and execute the build commands | ||
cd "$BUILD_DIR" || exit 1 | ||
cmake -DCMAKE_INSTALL_PREFIX=$PREFIX . | ||
make | ||
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,48 @@ | ||
{% set version = "2.2" %} | ||
|
||
package: | ||
name: amplici | ||
version: {{ version }} | ||
|
||
source: | ||
# Replace <url> and <sha256> with the actual URL to the source tarball and its sha256 checksum | ||
url: https://github.com/DormanLab/AmpliCI/releases/download/v2.1.999/amplici-2.1.999.zip | ||
sha256: 7ced906d56eda65408e3a639fc7db0f338e4588075ab640daeaa845526e67e5e | ||
|
||
build: | ||
number: 0 | ||
run_exports: | ||
- {{ pin_subpackage("amplici", max_pin="x") }} | ||
# Add more if there are other critical dependencies that require pinning | ||
|
||
|
||
requirements: | ||
build: | ||
- cmake | ||
- make | ||
- '{{ compiler("c") }}' | ||
- '{{ compiler('cxx') }}' | ||
- gfortran # For Fortran compiler | ||
host: | ||
- cmake | ||
|
||
|
||
about: | ||
home: https://github.com/DormanLab/AmpliCI | ||
license: BSD 3-Clause | ||
license_family: BSD | ||
summary: "AmpliCI: Cluster amplicon sequences in a fastq file with or without UMIs." | ||
|
||
test: | ||
commands: | ||
- run_AmpliCI -h | ||
|
||
extra: | ||
additional-platforms: | ||
- linux-aarch64 | ||
- osx-arm64 | ||
recipe-maintainers: | ||
- xiyupeng | ||
identifiers: | ||
- biotools:amplici | ||
- doi:10.1093/bioinformatics/btaa648 |