Add plate well concentrations to output data

This commit is contained in:
2022-02-20 01:53:34 -06:00
parent c96b7237e9
commit 5d0e60708c
4 changed files with 14 additions and 10 deletions

View File

@@ -159,7 +159,7 @@ public class Simulator {
SimpleWeightedGraph<Integer, DefaultWeightedEdge> graph = data.getGraph();
//Filter by overlap size
if(verbose){System.out.println("Eliminating edges with weights less than" + minOverlapPercent.toString() +
if(verbose){System.out.println("Eliminating edges with weights less than " + minOverlapPercent.toString() +
" percent of vertex occupancy value.");}
filterByOverlapSize(graph, alphaWellCounts, betaWellCounts, plateVtoAMap, plateVtoBMap, minOverlapPercent);
if(verbose){System.out.println("Edges with weights too far below vertex occupancy values set to 0.0");}
@@ -240,13 +240,18 @@ public class Simulator {
BigDecimal attemptRateTrunc = new BigDecimal(attemptRate, mc);
double pairingErrorRate = (double) falseCount / (trueCount + falseCount);
BigDecimal pairingErrorRateTrunc = new BigDecimal(pairingErrorRate, mc);
Integer[] wellConcentrations = data.getWellConcentrations();
String concentrations = wellConcentrations[0].toString();
for (int i = 1; i < wellConcentrations.length; i++) {
concentrations = concentrations.concat(", "+ wellConcentrations[i].toString());
//make list of well concentrations
List<Integer> wellConcentrations = Arrays.asList(data.getWellConcentrations());
//make string out of concentrations list
StringBuilder concen = new StringBuilder();
for(Integer i: wellConcentrations){
concen.append(i.toString());
concen.append(" ");
}
String concenString = concen.toString();
List<String> comments = new ArrayList<>();
comments.add("T cell counts in sample plate wells: " + concentrations);
comments.add("T cell counts in sample plate wells: " + concenString);
comments.add("Total alphas found: " + alphaCount);
comments.add("Total betas found: " + betaCount);
comments.add("High overlap threshold: " + highThreshold);