From 1df86f01dfb9f71f472e4e10cd73caa4db56c27c Mon Sep 17 00:00:00 2001 From: efischer Date: Sat, 5 Mar 2022 12:02:58 -0600 Subject: [PATCH] parameterized sequence indices --- src/main/java/Simulator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/Simulator.java b/src/main/java/Simulator.java index 8bf462b..1c62872 100644 --- a/src/main/java/Simulator.java +++ b/src/main/java/Simulator.java @@ -23,6 +23,7 @@ public class Simulator implements GraphModificationFunctions { private static final int cdr1AlphaIndex = 2; private static final int cdr1BetaIndex = 3; + //Make the graph needed for matching CDR3s public static GraphWithMapData makeGraph(CellSample cellSample, Plate samplePlate, boolean verbose) { Instant start = Instant.now(); @@ -34,7 +35,7 @@ public class Simulator implements GraphModificationFunctions { if(verbose){System.out.println("Making cell maps");} //HashMap keyed to Alphas, values Betas - Map distCellsMapAlphaKey = makeSequenceToSequenceMap(distinctCells, 0, 1); + Map distCellsMapAlphaKey = makeSequenceToSequenceMap(distinctCells, cdr3AlphaIndex, cdr3BetaIndex); if(verbose){System.out.println("Cell maps made");} if(verbose){System.out.println("Making well maps");}