Skip to content

Instantly share code, notes, and snippets.

@kgori
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kgori/48da26c304d8745f5c73 to your computer and use it in GitHub Desktop.
Save kgori/48da26c304d8745f5c73 to your computer and use it in GitHub Desktop.
pll.h patch
diff --git a/src/pll.h b/src/pll.h
index 6941efb..572179c 100644
--- a/src/pll.h
+++ b/src/pll.h
@@ -123,7 +123,7 @@ extern "C" {
#define PLL_BADREAR -1
-#define PLL_NUM_BRANCHES 50
+#define PLL_NUM_BRANCHES 5000
#define PLL_TRUE 1
#define PLL_FALSE 0
@@ -1704,6 +1704,7 @@ extern int pllGetTransitionMatrix (pllInstance * tr, partitionList * pr, nodeptr
extern void pllGetTransitionMatrix2 (pllInstance * tr, partitionList * pr, int model, nodeptr p, double * outBuffer);
extern int pllGetCLV (pllInstance * tr, partitionList * pr, nodeptr p, int partition, double * outProbs);
extern int pllTopologyPerformNNI(pllInstance * tr, nodeptr p, int swap);
+extern double pllTestNNILikelihood (pllInstance * tr, partitionList * pr, nodeptr p, int swapType);
/* TBR moves */
extern int pllTbrRemoveBranch(pllInstance * tr, partitionList * pr, nodeptr p);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment