Fix for HMM optimization. If the two penalty arrays match exactly the function should return the end of the array instead of 0.
This commit is contained in:
parent
d828eba7f4
commit
348f2db7fd
|
|
@ -622,7 +622,7 @@ public class PairHMMIndelErrorModel {
|
||||||
if ( b1[i]!= b2[i])
|
if ( b1[i]!= b2[i])
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
return 0; // sanity check
|
return b1.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
private int computeFirstDifferingPosition(double[] b1, double[] b2) {
|
private int computeFirstDifferingPosition(double[] b1, double[] b2) {
|
||||||
|
|
@ -633,7 +633,7 @@ public class PairHMMIndelErrorModel {
|
||||||
if ( b1[i]!= b2[i])
|
if ( b1[i]!= b2[i])
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
return 0; // sanity check
|
return b1.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
private final static double[] getHaplotypeLikelihoods(final int numHaplotypes, final int readCounts[], final double readLikelihoods[][]) {
|
private final static double[] getHaplotypeLikelihoods(final int numHaplotypes, final int readCounts[], final double readLikelihoods[][]) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue