diff --git a/src/main/java/InteractiveInterface.java b/src/main/java/InteractiveInterface.java index 9293cfd..b4bf965 100644 --- a/src/main/java/InteractiveInterface.java +++ b/src/main/java/InteractiveInterface.java @@ -227,16 +227,14 @@ public class InteractiveInterface { Plate samplePlate; PlateFileWriter writer; if(exponential){ - samplePlate = new Plate(numWells, dropOutRate, populations); - samplePlate.fillWellsExponential(cellFile, cells.getCells(), lambda); + samplePlate = new Plate(cells, cellFile, numWells, populations, dropOutRate, lambda, true); writer = new PlateFileWriter(filename, samplePlate); } else { if (poisson) { stdDev = Math.sqrt(cells.getCellCount()); //gaussian with square root of elements approximates poisson } - samplePlate = new Plate(numWells, dropOutRate, populations); - samplePlate.fillWells(cellFile, cells.getCells(), stdDev); + samplePlate = new Plate(cells, cellFile, numWells, populations, dropOutRate, stdDev, false); writer = new PlateFileWriter(filename, samplePlate); } System.out.println("Writing Sample Plate to file");