Add plate well concentrations to output data
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user