forked from easybuilders/easybuild-easyconfigs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
IBU Software Devel
committed
Jun 14, 2024
1 parent
384c7ce
commit 1e08230
Showing
2 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
easybuild/easyconfigs/i/IQ-TREE/IQ-TREE-2.3.4-gompi-2021a.eb
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,57 @@ | ||
# Updated to v2.1.3 by | ||
# R.QIAO <[email protected]> | ||
# DeepThought, Flinders University | ||
|
||
easyblock = 'CMakeMake' | ||
|
||
name = 'IQ-TREE' | ||
version = '2.3.4' | ||
|
||
# HTTPS is not working | ||
homepage = 'http://www.iqtree.org/' | ||
description = """Efficient phylogenomic software by maximum likelihood""" | ||
|
||
toolchain = {'name': 'gompi', 'version': '2021a'} | ||
# Including 'usempi' will take precedence and override IQTREE_FLAGS and produces only 'iqtree-mpi' binary | ||
|
||
source_urls = ['https://github.com/iqtree/iqtree2/archive/'] | ||
sources = ['v%(version)s.tar.gz'] | ||
patches = [ | ||
'IQ-TREE-2.3.4_use_EB_LSD2.patch', | ||
'IQ-TREE-2.2.1_fix-mpi.patch', | ||
] | ||
checksums = [ | ||
{'v2.3.4.tar.gz': '3c348a937593262c829d47f4a63cf7de1c8230efcdccccc0885a1826eed66172'}, | ||
{'IQ-TREE-2.3.4_use_EB_LSD2.patch': 'd13b4f720110ba370b8c095daa4325c5ddd4e7427b332561bfacaca7fc0daac2'}, | ||
{'IQ-TREE-2.2.1_fix-mpi.patch': '9ead6808efd11d4c01dd265cca6094cffd6377746d3b2fc84b43d2faeee0777c'}, | ||
] | ||
|
||
builddependencies = [ | ||
('CMake', '3.20.1'), | ||
('Eigen', '3.3.9'), | ||
] | ||
dependencies = [ | ||
('zlib', '1.2.11'), | ||
('Boost', '1.76.0'), | ||
('LSD2', '2.3'), | ||
] | ||
|
||
local_conf_opts = ' -DUSE_LSD2=ON ' | ||
configopts = [ | ||
'-DIQTREE_FLAGS=omp' + local_conf_opts, | ||
'-DIQTREE_FLAGS=mpi -DCMAKE_C_COMPILER="$MPICC" -DCMAKE_CXX_COMPILER="$MPICXX"' + local_conf_opts, | ||
] | ||
|
||
sanity_check_paths = { | ||
'files': ['bin/iqtree2', 'bin/iqtree2-mpi'], | ||
'dirs': [], | ||
} | ||
|
||
sanity_check_commands = [ | ||
"iqtree2 --help", | ||
"mkdir -p $TMPDIR/{test-omp,test-mpi}", | ||
"cd $TMPDIR/test-omp && cp -a %(installdir)s/example.phy . && iqtree2 -s example.phy -redo", | ||
"cd $TMPDIR/test-mpi && cp -a %(installdir)s/example.phy . && mpirun -np 1 iqtree2-mpi -s example.phy -redo", | ||
] | ||
|
||
moduleclass = 'bio' |
40 changes: 40 additions & 0 deletions
40
easybuild/easyconfigs/i/IQ-TREE/IQ-TREE-2.3.4_use_EB_LSD2.patch
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 @@ | ||
Patch to use EasyBuild installed LSD2 | ||
|
||
Åke Sandgren, 20201217 | ||
diff -ru iqtree2-2.1.2.orig/CMakeLists.txt iqtree2-2.1.2/CMakeLists.txt | ||
--- iqtree2-2.3.4.orig/CMakeLists.txt 2024-04-26 03:12:00.000000000 +0200 | ||
+++ iqtree2-2.3.4/CMakeLists.txt 2024-06-14 10:03:45.099075915 +0200 | ||
@@ -726,10 +726,6 @@ | ||
add_subdirectory(terracetphast) | ||
endif() | ||
|
||
-if (USE_LSD2) | ||
- add_subdirectory(lsd2) | ||
-endif() | ||
- | ||
add_library(kernelsse tree/phylokernelsse.cpp) | ||
|
||
if (NOT BINARY32 AND NOT IQTREE_FLAGS MATCHES "novx") | ||
@@ -772,9 +768,6 @@ | ||
if (USE_TERRAPHAST) | ||
set_target_properties(terracetphast terraphast PROPERTIES COMPILE_FLAGS "${SSE_FLAGS}") | ||
endif() | ||
- if (USE_LSD2) | ||
- set_target_properties(lsd2 PROPERTIES COMPILE_FLAGS "${SSE_FLAGS}") | ||
- endif() | ||
if (USE_BOOSTER) | ||
set_target_properties(booster PROPERTIES COMPILE_FLAGS "${SSE_FLAGS}") | ||
endif() | ||
diff -ru iqtree2-2.1.2.orig/main/timetree.cpp iqtree2-2.1.2/main/timetree.cpp | ||
--- iqtree2-2.1.2.orig/main/timetree.cpp 2020-10-22 08:41:46.000000000 +0200 | ||
+++ iqtree2-2.1.2/main/timetree.cpp 2020-12-17 19:07:50.000000000 +0100 | ||
@@ -8,7 +8,7 @@ | ||
#include "timetree.h" | ||
|
||
#ifdef USE_LSD2 | ||
-#include "lsd2/src/lsd.h" | ||
+#include "lsd.h" | ||
#endif | ||
|
||
/** map from taxon name to date */ | ||
|