Skip to content

Commit

Permalink
move all Tree classes into tree sub-folder
Browse files Browse the repository at this point in the history
  • Loading branch information
bqminh committed May 6, 2017
1 parent 4052ba5 commit 78e5e63
Show file tree
Hide file tree
Showing 99 changed files with 119 additions and 93 deletions.
37 changes: 7 additions & 30 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -472,18 +472,19 @@ add_definitions("-I${EIGEN3_INCLUDE_DIR} -DUSE_EIGEN3")
add_subdirectory(model)
add_subdirectory(gsl)
add_subdirectory(alignment)
add_subdirectory(tree)

##################################################################
# the main executable
##################################################################

add_library(kernelsse phylokernelsse.cpp)
add_library(kernelsse tree/phylokernelsse.cpp)

if (NOT BINARY32 AND NOT IQTREE_FLAGS MATCHES "novx")
add_library(kernelavx phylotreeavx.cpp)
add_library(kernelfma phylokernelfma.cpp)
add_library(kernelavx tree/phylotreeavx.cpp)
add_library(kernelfma tree/phylokernelfma.cpp)
if (IQTREE_FLAGS MATCHES "512")
add_library(kernelavx512 phylokernelavx512.cpp)
add_library(kernelavx512 tree/phylokernelavx512.cpp)
add_definitions(-DINCLUDE_AVX512)
endif()
endif()
Expand All @@ -500,54 +501,30 @@ gss.cpp gss.h
gurobiwrapper.cpp gurobiwrapper.h
gzstream.cpp gzstream.h
hashsplitset.cpp hashsplitset.h
iqtree.cpp iqtree.h
matree.cpp matree.h
mexttree.cpp mexttree.h
mpdablock.cpp mpdablock.h
msetsblock.cpp msetsblock.h
msplitsblock.cpp msplitsblock.h
modelsblock.cpp modelsblock.h
mtree.cpp mtree.h
mtreeset.cpp mtreeset.h
ncbitree.cpp ncbitree.h
ngs.cpp ngs.h
node.cpp node.h
optimization.cpp optimization.h
parsmultistate.cpp parsmultistate.h
pattern.cpp pattern.h
pda.cpp
pdnetwork.cpp pdnetwork.h
pdtree.cpp pdtree.h
pdtreeset.cpp pdtreeset.h
phyloanalysis.cpp phyloanalysis.h
phylonode.cpp phylonode.h
phylonodemixlen.cpp phylonodemixlen.h
phylosupertree.cpp phylosupertree.h
phylotree.cpp phylotree.h
phylotreesse.cpp phylokernel.h phylokernelnew.h
phylotreepars.cpp
phylokernelnonrev.cpp phylokernelnonrev.h
phylotreemixlen.cpp phylotreemixlen.h
pruning.cpp pruning.h
quartet.cpp
split.cpp split.h
splitgraph.cpp splitgraph.h
splitset.cpp splitset.h
stoprule.cpp stoprule.h
supernode.cpp supernode.h
tinatree.cpp tinatree.h
tools.cpp tools.h
whtest_wrapper.cpp whtest_wrapper.h
lpwrapper.c lpwrapper.h
pllnni.cpp pllnni.h
phylosupertreeplen.cpp phylosupertreeplen.h
phylotesting.cpp phylotesting.h
ecopd.cpp ecopd.h
ecopdmtreeset.cpp ecopdmtreeset.h
graph.cpp graph.h
candidateset.cpp candidateset.h
checkpoint.cpp checkpoint.h
constrainttree.cpp constrainttree.h
MPIHelper.cpp MPIHelper.h
memslot.cpp memslot.h
)
Expand All @@ -574,7 +551,7 @@ endif(ZLIB_FOUND)

if (NOT IQTREE_FLAGS MATCHES "avx" AND NOT IQTREE_FLAGS MATCHES "fma")
if (NOT IQTREE_FLAGS MATCHES "nosse")
set_target_properties(iqtree ncl lbfgsb whtest sprng vectorclass model alignment PROPERTIES COMPILE_FLAGS "${SSE_FLAGS}")
set_target_properties(iqtree ncl lbfgsb whtest sprng vectorclass model alignment tree PROPERTIES COMPILE_FLAGS "${SSE_FLAGS}")
endif()
set_target_properties(kernelsse pll PROPERTIES COMPILE_FLAGS "${SSE_FLAGS}")
if (NOT BINARY32 AND NOT IQTREE_FLAGS MATCHES "novx")
Expand Down Expand Up @@ -630,7 +607,7 @@ if (NOT IQTREE_FLAGS MATCHES "single")
endif()

# basic linking librararies
target_link_libraries(iqtree pll ncl lbfgsb whtest sprng vectorclass model gsl alignment ${PLATFORM_LIB} ${STD_LIB} ${THREAD_LIB} ${ATOMIC_LIB})
target_link_libraries(iqtree pll ncl lbfgsb whtest sprng vectorclass model gsl alignment tree ${PLATFORM_LIB} ${STD_LIB} ${THREAD_LIB} ${ATOMIC_LIB})

if (NOT IQTREE_FLAGS MATCHES "nosse")
target_link_libraries(iqtree kernelsse)
Expand Down
2 changes: 2 additions & 0 deletions alignment/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
add_library(alignment
pattern.cpp
pattern.h
alignment.cpp
alignment.h
alignmentpairwise.cpp
Expand Down
2 changes: 1 addition & 1 deletion alignment/alignmentpairwise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "alignmentpairwise.h"
#include "phylosupertree.h"
#include "tree/phylosupertree.h"

AlignmentPairwise::AlignmentPairwise()
: Alignment(), Optimization()
Expand Down
2 changes: 1 addition & 1 deletion alignment/alignmentpairwise.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define ALIGNMENTPAIRWISE_H

#include "optimization.h"
#include "phylotree.h"
#include "tree/phylotree.h"

/**
Pairwise alignment
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions alignment/superalignment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
***************************************************************************/

#include <stdarg.h>
#include "phylotree.h"
#include "tree/phylotree.h"
#include "superalignment.h"
#include "phylosupertree.h"
#include "tree/phylosupertree.h"

SuperAlignment::SuperAlignment() : Alignment() {
max_num_states = 0;
Expand Down
2 changes: 1 addition & 1 deletion alignment/superalignmentpairwise.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "alignmentpairwise.h"
#include "superalignment.h"
#include "phylosupertree.h"
#include "tree/phylosupertree.h"

/**
@author BUI Quang Minh <minh.bui@univie.ac.at>
Expand Down
2 changes: 1 addition & 1 deletion alignment/superalignmentpairwiseplen.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef iqtree_superalignmentpairwiseplen_h
#define iqtree_superalignmentpairwiseplen_h

#include "phylosupertreeplen.h"
#include "tree/phylosupertreeplen.h"
#include "superalignmentpairwise.h"


Expand Down
2 changes: 1 addition & 1 deletion candidateset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Email: nltung@gmail.com
*/

#include "iqtree.h"
#include "tree/iqtree.h"
#include "candidateset.h"
#include "MPIHelper.h"

Expand Down
2 changes: 1 addition & 1 deletion candidateset.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
//#include "phylotree.h"
#include "tools.h"
#include "alignment/alignment.h"
#include "mtreeset.h"
#include "tree/mtreeset.h"
#include <stack>
#include "checkpoint.h"

Expand Down
4 changes: 2 additions & 2 deletions ecopd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include "ecopd.h"
#include "split.h"
#include "pdnetwork.h"
#include "mtreeset.h"
#include "ecopdmtreeset.h"
#include "tree/mtreeset.h"
#include "tree/ecopdmtreeset.h"
#include "graph.h"


Expand Down
6 changes: 3 additions & 3 deletions ecopd.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#ifndef ECOPD_H
#define ECOPD_H

#include "mtree.h"
#include "mtreeset.h"
#include "ecopdmtreeset.h"
#include "tree/mtree.h"
#include "tree/mtreeset.h"
#include "tree/ecopdmtreeset.h"
#include "pdnetwork.h"

/* ===============================================================================
Expand Down
2 changes: 1 addition & 1 deletion greedy.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef GREEDY_H
#define GREEDY_H

#include "pdtree.h"
#include "tree/pdtree.h"

/**
Implementation of greedy algorithm with complexity O(n*logk)
Expand Down
2 changes: 1 addition & 1 deletion gss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "gss.h"
#include "lpwrapper.h"
#include "gurobiwrapper.h"
#include "mtreeset.h"
#include "tree/mtreeset.h"


GSSNetwork::GSSNetwork(Params &params) : PDNetwork(params) {
Expand Down
2 changes: 1 addition & 1 deletion memslot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/

#include "phylotree.h"
#include "tree/phylotree.h"
#include "memslot.h"

const int MEM_LOCKED = 1;
Expand Down
2 changes: 1 addition & 1 deletion model/modelfactorymixlen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Author: minh
*/

#include "phylotreemixlen.h"
#include "tree/phylotreemixlen.h"
#include "timeutil.h"
#include "tools.h"
#include "model/modelfactorymixlen.h"
Expand Down
2 changes: 1 addition & 1 deletion model/modelmarkov.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef MODELMARKOV_H
#define MODELMARKOV_H

#include "phylotree.h"
#include "tree/phylotree.h"
#include "modelsubst.h"
#include "optimization.h"
#include "alignment/alignment.h"
Expand Down
2 changes: 1 addition & 1 deletion model/modelmixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#ifndef MODELMIXTURE_H_
#define MODELMIXTURE_H_

#include "phylotree.h"
#include "tree/phylotree.h"
#include "modelsubst.h"
#include "modelmarkov.h"
#include "modelsblock.h"
Expand Down
2 changes: 1 addition & 1 deletion model/partitionmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef PARTITIONMODEL_H
#define PARTITIONMODEL_H

#include "phylosupertree.h"
#include "tree/phylosupertree.h"
#include "modelfactory.h"

/**
Expand Down
2 changes: 1 addition & 1 deletion model/partitionmodelplen.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef iqtree_partitionmodelplen_h
#define iqtree_partitionmodelplen_h

#include "phylosupertreeplen.h"
#include "tree/phylosupertreeplen.h"
#include "model/partitionmodel.h"

class PartitionModelPlen : public PartitionModel
Expand Down
2 changes: 1 addition & 1 deletion model/ratefree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Author: minh
*/

#include "phylotree.h"
#include "tree/phylotree.h"
#include "ratefree.h"
#include "rateinvar.h"

Expand Down
2 changes: 1 addition & 1 deletion model/rategamma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "phylotree.h"
#include "tree/phylotree.h"
#include "rategamma.h"
#include <cmath>

Expand Down
2 changes: 1 addition & 1 deletion model/rateheterogeneity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/

#include "phylotree.h"
#include "tree/phylotree.h"
#include "rateheterogeneity.h"


Expand Down
2 changes: 1 addition & 1 deletion model/rateheterotachy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//

#include "phylotree.h"
#include "tree/phylotree.h"
#include "rateheterotachy.h"

RateHeterotachy::RateHeterotachy(int ncat, string params, PhyloTree *tree) : RateHeterogeneity() {
Expand Down
2 changes: 1 addition & 1 deletion model/rateinvar.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef RATEINVAR_H
#define RATEINVAR_H

#include "phylotree.h"
#include "tree/phylotree.h"
#include "rateheterogeneity.h"

const double MIN_PINVAR = 1e-6;
Expand Down
2 changes: 1 addition & 1 deletion model/ratekategory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/


#include "phylotree.h"
#include "tree/phylotree.h"
#include "ratekategory.h"

RateKategory::RateKategory(int ncat, PhyloTree *tree)
Expand Down
2 changes: 1 addition & 1 deletion model/ratemeyerdiscrete.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/

#include "phylotree.h"
#include "tree/phylotree.h"
#include "ratemeyerdiscrete.h"
//#include "kmeans/KMeans.h"
//#include "modeltest_wrapper.h"
Expand Down
2 changes: 1 addition & 1 deletion model/ratemeyerhaeseler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "phylotree.h"
#include "tree/phylotree.h"
#include "ratemeyerhaeseler.h"


Expand Down
2 changes: 1 addition & 1 deletion model/ratemeyerhaeseler.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "rateheterogeneity.h"
#include "tools.h"
#include "iqtree.h"
#include "tree/iqtree.h"


/**
Expand Down
2 changes: 1 addition & 1 deletion ngs.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef NGS_H
#define NGS_H

#include "phylotree.h"
#include "tree/phylotree.h"
#include "alignment/alignmentpairwise.h"
#include "model/ratemeyerdiscrete.h"

Expand Down
4 changes: 2 additions & 2 deletions parsmultistate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/

#include "phylotree.h"
#include "tinatree.h"
#include "tree/phylotree.h"
#include "tree/tinatree.h"
#include "parsmultistate.h"
#include "alignment/alignment.h"

Expand Down
Loading

0 comments on commit 78e5e63

Please sign in to comment.