fixing merge conflict.
This commit is contained in:
commit
e973ca2010
|
|
@ -528,10 +528,10 @@ public class PairHMMIndelErrorModel {
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
byte[] readBases = Arrays.copyOfRange(unclippedReadBases,numStartClippedBases,
|
final byte[] readBases = Arrays.copyOfRange(unclippedReadBases,numStartClippedBases,
|
||||||
unclippedReadBases.length-numEndClippedBases);
|
unclippedReadBases.length-numEndClippedBases);
|
||||||
|
|
||||||
byte[] readQuals = Arrays.copyOfRange(unclippedReadQuals,numStartClippedBases,
|
final byte[] readQuals = Arrays.copyOfRange(unclippedReadQuals,numStartClippedBases,
|
||||||
unclippedReadBases.length-numEndClippedBases);
|
unclippedReadBases.length-numEndClippedBases);
|
||||||
|
|
||||||
int j=0;
|
int j=0;
|
||||||
|
|
@ -540,6 +540,7 @@ public class PairHMMIndelErrorModel {
|
||||||
double[][] matchMetricArray = null, XMetricArray = null, YMetricArray = null;
|
double[][] matchMetricArray = null, XMetricArray = null, YMetricArray = null;
|
||||||
byte[] previousHaplotypeSeen = null;
|
byte[] previousHaplotypeSeen = null;
|
||||||
double[] previousGOP = null;
|
double[] previousGOP = null;
|
||||||
|
double[] previousGCP = null;
|
||||||
int startIdx;
|
int startIdx;
|
||||||
for (Allele a: haplotypeMap.keySet()) {
|
for (Allele a: haplotypeMap.keySet()) {
|
||||||
|
|
||||||
|
|
@ -555,7 +556,7 @@ public class PairHMMIndelErrorModel {
|
||||||
long indStart = start - haplotype.getStartPosition();
|
long indStart = start - haplotype.getStartPosition();
|
||||||
long indStop = stop - haplotype.getStartPosition();
|
long indStop = stop - haplotype.getStartPosition();
|
||||||
|
|
||||||
byte[] haplotypeBases = Arrays.copyOfRange(haplotype.getBases(),
|
final byte[] haplotypeBases = Arrays.copyOfRange(haplotype.getBases(),
|
||||||
(int)indStart, (int)indStop);
|
(int)indStart, (int)indStop);
|
||||||
|
|
||||||
double readLikelihood;
|
double readLikelihood;
|
||||||
|
|
@ -572,13 +573,14 @@ public class PairHMMIndelErrorModel {
|
||||||
if (previousHaplotypeSeen == null)
|
if (previousHaplotypeSeen == null)
|
||||||
startIdx = 0;
|
startIdx = 0;
|
||||||
else {
|
else {
|
||||||
int s1 = computeFirstDifferingPosition(haplotypeBases, previousHaplotypeSeen);
|
final int s1 = computeFirstDifferingPosition(haplotypeBases, previousHaplotypeSeen);
|
||||||
int s2 = computeFirstDifferingPosition(currentContextGOP, previousGOP);
|
final int s2 = computeFirstDifferingPosition(currentContextGOP, previousGOP);
|
||||||
startIdx = Math.min(s1,s2);
|
final int s3 = computeFirstDifferingPosition(currentContextGCP, previousGCP);
|
||||||
|
startIdx = Math.min(Math.min(s1, s2), s3);
|
||||||
}
|
}
|
||||||
previousHaplotypeSeen = haplotypeBases.clone();
|
previousHaplotypeSeen = haplotypeBases.clone();
|
||||||
previousGOP = currentContextGOP.clone();
|
previousGOP = currentContextGOP.clone();
|
||||||
|
previousGCP = currentContextGCP.clone();
|
||||||
|
|
||||||
|
|
||||||
readLikelihood = computeReadLikelihoodGivenHaplotypeAffineGaps(haplotypeBases, readBases, readQuals,
|
readLikelihood = computeReadLikelihoodGivenHaplotypeAffineGaps(haplotypeBases, readBases, readQuals,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue