Skip to content

Commit

Permalink
Add Eagle2
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisLeNezet committed Oct 31, 2024
1 parent a97949f commit e7f636f
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
20 changes: 20 additions & 0 deletions recipes/eagle2/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

export COMMIT_VERS="${PKG_VERSION}"
export COMMIT_DATE="$(date -Idate -u)"

make \
-j 4 \
DYN_LIBS="-lz -lpthread -lbz2 -lblas" \
CXX="$CXX -std=c++17" \
CXXFLAG="$CXXFLAGS ${PREFIX} -D__COMMIT_ID__='\"${COMMIT_VERS}\"' -D__COMMIT_DATE__='\"${COMMIT_DATE}\"' \
LDFLAG="$LDFLAGS" \
HTSLIB_INC="$PREFIX" \
HTSLIB_LIB="-lhts" \
BOOST_INC="/usr/include"\
BOOST_LIB_IO="-lboost_iostreams" \
BOOST_LIB_PO="-lboost_program_options" \
BOOST_LIB_SE="-lboost_serialization" \
;
install "bin/eagle" "eagle/bin"
popd
43 changes: 43 additions & 0 deletions recipes/eagle2/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{% set version = "2.4.1" %}

package:
name: Eagle2
version: {{ version }}

build:
number: 1

source:
url: https://github.com/poruloh/Eagle/archive/refs/tags/v{{ version }}.tar.gz
sha256: 85804bfe972186ccb66e602856d6e04044302e5c0dbf9309849b0cde981e3432

requirements:
build:
- make
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- htslib >=1.9
- bzip2
- zlib
- boost-cpp >=1.58
- blas >= 0.2.19
run:
- boost-cpp

test:
commands:
- eagle --help

about:
home: https://github.com/poruloh/Eagle
license: GPLv3
summary: The Eagle software estimates haplotype phase either within a genotyped cohort or using a phased reference panel.
description:
Eagle2 is now the default phasing method used by the Sanger and Michigan imputation servers and uses a new
very fast HMM-based algorithm that improves speed and accuracy over existing methods via two key ideas;
a new data structure based on the positional Burrows-Wheeler transform and a rapid search algorithm that
explores only the most relevant paths through the HMM. Compared to the Eagle1 algorithm, Eagle2 has similar
speed but much greater accuracy at sample sizes <50,000; as such, we have made the Eagle2 algorithm the default option.
(The Eagle1 algorithm can be accessed via the --v1 flag.) Eagle v2.3+ supports phasing sequence data with or without
a reference and also supports phasing chrX.

0 comments on commit e7f636f

Please sign in to comment.