Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add amplici
Browse files Browse the repository at this point in the history
xiyupeng committed Oct 31, 2024
1 parent a99ab47 commit ec0e6cc
Showing 2 changed files with 78 additions and 0 deletions.
30 changes: 30 additions & 0 deletions recipes/amplici/build.sh
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

48 changes: 48 additions & 0 deletions recipes/amplici/meta.yaml
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

0 comments on commit ec0e6cc

Please sign in to comment.