Another round of FindBugs fixes. Inefficient use of keySet iterator instead of entrySet iterator.
This commit is contained in:
parent
5db3bd6fd2
commit
a9472c1980
|
|
@ -77,10 +77,10 @@ public class LikelihoodCalculationEngine {
|
||||||
PairHMM.initializeArrays(matchMetricArray, XMetricArray, YMetricArray, X_METRIC_LENGTH);
|
PairHMM.initializeArrays(matchMetricArray, XMetricArray, YMetricArray, X_METRIC_LENGTH);
|
||||||
|
|
||||||
// for each sample's reads
|
// for each sample's reads
|
||||||
for( final String sample : perSampleReadList.keySet() ) {
|
for( final Map.Entry<String, ArrayList<GATKSAMRecord>> sampleEntry : perSampleReadList.entrySet() ) {
|
||||||
//if( DEBUG ) { System.out.println("Evaluating sample " + sample + " with " + perSampleReadList.get( sample ).size() + " passing reads"); }
|
//if( DEBUG ) { System.out.println("Evaluating sample " + sample + " with " + perSampleReadList.get( sample ).size() + " passing reads"); }
|
||||||
// evaluate the likelihood of the reads given those haplotypes
|
// evaluate the likelihood of the reads given those haplotypes
|
||||||
computeReadLikelihoods( haplotypes, perSampleReadList.get(sample), sample, matchMetricArray, XMetricArray, YMetricArray );
|
computeReadLikelihoods( haplotypes, sampleEntry.getValue(), sampleEntry.getKey(), matchMetricArray, XMetricArray, YMetricArray );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue