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