Skip to content

Commit

Permalink
fix indexing error in beagle tree likellihood fixes #1168
Browse files Browse the repository at this point in the history
  • Loading branch information
jordandouglas committed Sep 23, 2024
1 parent c520aaf commit e6fd752
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ private int traverse(Node node, int[] operatorNumber, boolean flip) {
matrixUpdateIndices[eigenIndex][updateCount] = matrixBufferHelper.getOffsetIndex(nodeNum);

if (substitutionModel.canReturnComplexDiagonalization()) {
for (int i = 0; i < m_siteModel.getCategoryCount(); i++) {
for (int i = 0; i < this.categoryCount; i++) {
final double jointBranchRate = m_siteModel.getRateForCategory(i, node) * branchRate;
substitutionModel.getTransitionProbabilities(node, node.getParent().getHeight(), node.getHeight(), jointBranchRate, probabilities);
//System.out.println(node.getNr() + " " + Arrays.toString(m_fProbabilities));
Expand Down

0 comments on commit e6fd752

Please sign in to comment.