Skip to content

Commit

Permalink
move all Alignment classes into alignment source code sub-folder
Browse files Browse the repository at this point in the history
  • Loading branch information
bqminh committed May 6, 2017
1 parent acf2016 commit 4052ba5
Show file tree
Hide file tree
Showing 38 changed files with 43 additions and 34 deletions.
11 changes: 3 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ endif()
add_definitions("-I${EIGEN3_INCLUDE_DIR} -DUSE_EIGEN3")
add_subdirectory(model)
add_subdirectory(gsl)
add_subdirectory(alignment)

##################################################################
# the main executable
Expand All @@ -492,8 +493,6 @@ if (IQTREE_FLAGS MATCHES "mpi")
endif()

add_executable(iqtree
alignment.cpp alignment.h
alignmentpairwise.cpp alignmentpairwise.h
circularnetwork.cpp circularnetwork.h
eigendecomposition.cpp eigendecomposition.h
greedy.cpp greedy.h
Expand All @@ -502,7 +501,6 @@ gurobiwrapper.cpp gurobiwrapper.h
gzstream.cpp gzstream.h
hashsplitset.cpp hashsplitset.h
iqtree.cpp iqtree.h
maalignment.cpp maalignment.h
matree.cpp matree.h
mexttree.cpp mexttree.h
mpdablock.cpp mpdablock.h
Expand Down Expand Up @@ -536,9 +534,6 @@ split.cpp split.h
splitgraph.cpp splitgraph.h
splitset.cpp splitset.h
stoprule.cpp stoprule.h
superalignment.cpp superalignment.h
superalignmentpairwise.cpp superalignmentpairwise.h
superalignmentpairwiseplen.cpp superalignmentpairwiseplen.h
supernode.cpp supernode.h
tinatree.cpp tinatree.h
tools.cpp tools.h
Expand Down Expand Up @@ -579,7 +574,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 PROPERTIES COMPILE_FLAGS "${SSE_FLAGS}")
set_target_properties(iqtree ncl lbfgsb whtest sprng vectorclass model alignment 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 @@ -635,7 +630,7 @@ if (NOT IQTREE_FLAGS MATCHES "single")
endif()

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

if (NOT IQTREE_FLAGS MATCHES "nosse")
target_link_libraries(iqtree kernelsse)
Expand Down
14 changes: 14 additions & 0 deletions alignment/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
add_library(alignment
alignment.cpp
alignment.h
alignmentpairwise.cpp
alignmentpairwise.h
maalignment.cpp
maalignment.h
superalignment.cpp
superalignment.h
superalignmentpairwise.cpp
superalignmentpairwise.h
superalignmentpairwiseplen.cpp
superalignmentpairwiseplen.h
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion candidateset.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define CANDIDATESET_H_
//#include "phylotree.h"
#include "tools.h"
#include "alignment.h"
#include "alignment/alignment.h"
#include "mtreeset.h"
#include <stack>
#include "checkpoint.h"
Expand Down
2 changes: 1 addition & 1 deletion constrainttree.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define CONSTRAINTTREE_H

#include "mtree.h"
#include "alignment.h"
#include "alignment/alignment.h"

struct NNIMove;

Expand Down
2 changes: 1 addition & 1 deletion mexttree.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 "mexttree.h"
#include "alignment.h"
#include "alignment/alignment.h"

void MExtTree::generateRandomTree(TreeGenType tree_type, Params &params, bool binary) {
Alignment *alignment = NULL;
Expand Down
2 changes: 1 addition & 1 deletion model/modelfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "rateheterogeneity.h"
#include "modelsblock.h"
#include "checkpoint.h"
#include "alignment.h"
#include "alignment/alignment.h"

const double MIN_BRLEN_SCALE = 0.01;
const double MAX_BRLEN_SCALE = 100.0;
Expand Down
2 changes: 1 addition & 1 deletion model/modelmarkov.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "phylotree.h"
#include "modelsubst.h"
#include "optimization.h"
#include "alignment.h"
#include "alignment/alignment.h"
#include "eigendecomposition.h"
#include <complex>

Expand Down
2 changes: 1 addition & 1 deletion model/partitionmodel.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 "partitionmodel.h"
#include "superalignment.h"
#include "alignment/superalignment.h"
#include "model/rategamma.h"

PartitionModel::PartitionModel()
Expand Down
2 changes: 1 addition & 1 deletion mtreeset.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 "mtreeset.h"
#include "alignment.h"
#include "alignment/alignment.h"
#include "gzstream.h"

MTreeSet::MTreeSet()
Expand Down
2 changes: 1 addition & 1 deletion mtreeset.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "mtree.h"
#include "splitgraph.h"
#include "alignment.h"
#include "alignment/alignment.h"

void readIntVector(const char *file_name, int burnin, int max_count, IntVector &vec);

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

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

/*
Expand Down
2 changes: 1 addition & 1 deletion parsmultistate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "phylotree.h"
#include "tinatree.h"
#include "parsmultistate.h"
#include "alignment.h"
#include "alignment/alignment.h"

void doParsMultiState(Params &params) {
cout << "Here\n";
Expand Down
2 changes: 1 addition & 1 deletion pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//
//
#include "pattern.h"
#include "alignment.h"
#include "alignment/alignment.h"

Pattern::Pattern()
: vector<StateType>()
Expand Down
2 changes: 1 addition & 1 deletion pda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#include "ngs.h"
#include "parsmultistate.h"
#include "gss.h"
#include "maalignment.h" //added by MA
#include "alignment/maalignment.h" //added by MA
#include "ncbitree.h"
#include "ecopd.h"
#include "upperbounds.h"
Expand Down
4 changes: 2 additions & 2 deletions phyloanalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#include "phylosupertree.h"
#include "phylosupertreeplen.h"
#include "phyloanalysis.h"
#include "alignment.h"
#include "superalignment.h"
#include "alignment/alignment.h"
#include "alignment/superalignment.h"
#include "iqtree.h"
#include "phylotreemixlen.h"
#include "model/modelmarkov.h"
Expand Down
2 changes: 1 addition & 1 deletion phylokernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "phylotree.h"
//#include "vectorclass/vectorclass.h"
//#include "vectorclass/vectormath_exp.h"
#include "superalignment.h"
#include "alignment/superalignment.h"

#ifdef __SSE2__
inline Vec2d horizontal_add(Vec2d x[2]) {
Expand Down
4 changes: 2 additions & 2 deletions phylosupertree.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 "phylosupertree.h"
#include "superalignment.h"
#include "superalignmentpairwise.h"
#include "alignment/superalignment.h"
#include "alignment/superalignmentpairwise.h"
#include "msetsblock.h"
#include "myreader.h"
#include "phylotesting.h"
Expand Down
2 changes: 1 addition & 1 deletion phylosupertree.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "iqtree.h"
#include "supernode.h"
#include "superalignment.h"
#include "alignment/superalignment.h"


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

#include "phylosupertreeplen.h"
#include "superalignmentpairwiseplen.h"
#include "alignment/superalignmentpairwiseplen.h"
#include "model/partitionmodelplen.h"
#include <string.h>
#include "timeutil.h"
Expand Down
2 changes: 1 addition & 1 deletion phylosupertreeplen.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include "phylosupertree.h"
#include "model/partitionmodel.h"
#include "superalignmentpairwise.h"
#include "alignment/superalignmentpairwise.h"

/**
* this is to classify the cases which happen on the subtree
Expand Down
2 changes: 1 addition & 1 deletion phylotree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "phylotree.h"
#include "bionj.h"
//#include "rateheterogeneity.h"
#include "alignmentpairwise.h"
#include "alignment/alignmentpairwise.h"
#include <algorithm>
#include <limits>
#include "timeutil.h"
Expand Down
2 changes: 1 addition & 1 deletion phylotree.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
//#define EIGEN_TUNE_FOR_CPU_CACHE_SIZE (8*512*512)
//#include <Eigen/Core>
#include "mtree.h"
#include "alignment.h"
#include "alignment/alignment.h"
#include "model/modelsubst.h"
#include "model/modelfactory.h"
#include "phylonode.h"
Expand Down
2 changes: 1 addition & 1 deletion pllnni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#include "phylotree.h"
#include "pllnni.h"
#include "alignment.h"
#include "alignment/alignment.h"

/* program options */
int nni0;
Expand Down
2 changes: 1 addition & 1 deletion quartet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "phylotree.h"
#include "phylosupertree.h"
#include "model/partitionmodel.h"
#include "alignment.h"
#include "alignment/alignment.h"
#if 0 // (HAS-bla)
#include "tools.h"
#endif
Expand Down
2 changes: 1 addition & 1 deletion tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "timeutil.h"
#include "gzstream.h"
#include "MPIHelper.h"
#include "alignment.h"
#include "alignment/alignment.h"

VerboseMode verbose_mode;

Expand Down
2 changes: 1 addition & 1 deletion upperbounds.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
#include "iqtree.h"
#include "mexttree.h"
#include "alignment.h"
#include "alignment/alignment.h"
#include "phylotree.h"

class PhyloTree;
Expand Down

0 comments on commit 4052ba5

Please sign in to comment.