Fix bug in correct match counter

This commit is contained in:
eugenefischer
2022-09-21 15:59:23 -05:00
parent 817fe51708
commit 9ae38bf247

View File

@@ -106,7 +106,7 @@ public class Simulator implements GraphModificationFunctions {
//List<Integer> alphaVertices = new ArrayList<>(plateVtoAMap.keySet()); //This will work because LinkedHashMap preserves order of entry
List<Vertex> alphaVertices = new ArrayList<>();
//start with map of all alphas mapped to vertex values, get occupancy from the alphaWellCounts map
for (Integer seq: plateAtoVMap.keySet()) {
for (Integer seq : plateAtoVMap.keySet()) {
Vertex alphaVertex = new Vertex(SequenceType.CDR3_ALPHA, seq, alphaWellCounts.get(seq), plateAtoVMap.get(seq));
alphaVertices.add(alphaVertex);
}
@@ -236,7 +236,7 @@ public class Simulator implements GraphModificationFunctions {
//Integer target = graph.getEdgeTarget(e);
//The match map is all matches found, not just true matches!
matchMap.put(source.getSequence(), target.getSequence());
check = target.getOccupancy().equals(distCellsMapAlphaKey.get(source.getSequence()));
check = target.getSequence().equals(distCellsMapAlphaKey.get(source.getSequence()));
//check = plateVtoBMap.get(target).equals(distCellsMapAlphaKey.get(plateVtoAMap.get(source)));
if(check) {
trueCount++;