From 9ae38bf2473df36279ad446603b142c0354dff69 Mon Sep 17 00:00:00 2001 From: eugenefischer <66030419+eugenefischer@users.noreply.github.com> Date: Wed, 21 Sep 2022 15:59:23 -0500 Subject: [PATCH] Fix bug in correct match counter --- src/main/java/Simulator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/Simulator.java b/src/main/java/Simulator.java index 5fb414b..08761c7 100644 --- a/src/main/java/Simulator.java +++ b/src/main/java/Simulator.java @@ -106,7 +106,7 @@ public class Simulator implements GraphModificationFunctions { //List alphaVertices = new ArrayList<>(plateVtoAMap.keySet()); //This will work because LinkedHashMap preserves order of entry List 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++;