Add plate well concentrations to output data
This commit is contained in:
Binary file not shown.
@@ -28,6 +28,11 @@ public class Plate {
|
|||||||
this.sourceFile = sourceFileName;
|
this.sourceFile = sourceFileName;
|
||||||
this.wells = wells;
|
this.wells = wells;
|
||||||
this.size = wells.size();
|
this.size = wells.size();
|
||||||
|
List<Integer> concentrations = new ArrayList<>();
|
||||||
|
for (List<Integer[]> w: wells) {
|
||||||
|
concentrations.add(w.size());
|
||||||
|
}
|
||||||
|
concentrations.toArray(this.concentrations);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void fillWellsExponential(String sourceFileName, List<Integer[]> cells, double lambda){
|
public void fillWellsExponential(String sourceFileName, List<Integer[]> cells, double lambda){
|
||||||
|
|||||||
@@ -240,18 +240,18 @@ public class Simulator {
|
|||||||
BigDecimal attemptRateTrunc = new BigDecimal(attemptRate, mc);
|
BigDecimal attemptRateTrunc = new BigDecimal(attemptRate, mc);
|
||||||
double pairingErrorRate = (double) falseCount / (trueCount + falseCount);
|
double pairingErrorRate = (double) falseCount / (trueCount + falseCount);
|
||||||
BigDecimal pairingErrorRateTrunc = new BigDecimal(pairingErrorRate, mc);
|
BigDecimal pairingErrorRateTrunc = new BigDecimal(pairingErrorRate, mc);
|
||||||
//make list of well concentrations
|
//get list of well concentrations
|
||||||
List<Integer> wellConcentrations = Arrays.asList(data.getWellConcentrations());
|
List<Integer> wellConcentrations = Arrays.asList(data.getWellConcentrations());
|
||||||
//make string out of concentrations list
|
//make string out of concentrations list
|
||||||
StringBuilder concen = new StringBuilder();
|
StringBuilder concentrationStringBuilder = new StringBuilder();
|
||||||
for(Integer i: wellConcentrations){
|
for(Integer i: wellConcentrations){
|
||||||
concen.append(i.toString());
|
concentrationStringBuilder.append(i.toString());
|
||||||
concen.append(" ");
|
concentrationStringBuilder.append(" ");
|
||||||
}
|
}
|
||||||
String concenString = concen.toString();
|
String concentrationString = concentrationStringBuilder.toString();
|
||||||
|
|
||||||
List<String> comments = new ArrayList<>();
|
List<String> comments = new ArrayList<>();
|
||||||
comments.add("T cell counts in sample plate wells: " + concenString);
|
comments.add("T cell counts in sample plate wells: " + concentrationString);
|
||||||
comments.add("Total alphas found: " + alphaCount);
|
comments.add("Total alphas found: " + alphaCount);
|
||||||
comments.add("Total betas found: " + betaCount);
|
comments.add("Total betas found: " + betaCount);
|
||||||
comments.add("High overlap threshold: " + highThreshold);
|
comments.add("High overlap threshold: " + highThreshold);
|
||||||
|
|||||||
Reference in New Issue
Block a user