Add sequence dropout rate to metadata output
This commit is contained in:
@@ -15,6 +15,7 @@ public class GraphWithMapData implements java.io.Serializable {
|
||||
private final Integer[] wellPopulations;
|
||||
private final int alphaCount;
|
||||
private final int betaCount;
|
||||
private final double dropoutRate;
|
||||
private final int readDepth;
|
||||
private final double readErrorRate;
|
||||
private final double errorCollisionRate;
|
||||
@@ -30,7 +31,7 @@ public class GraphWithMapData implements java.io.Serializable {
|
||||
|
||||
public GraphWithMapData(SimpleWeightedGraph graph, Integer numWells, Integer[] wellConcentrations,
|
||||
Map<String, String> distCellsMapAlphaKey, Integer alphaCount, Integer betaCount,
|
||||
Integer readDepth, Double readErrorRate, Double errorCollisionRate,
|
||||
Double dropoutRate, Integer readDepth, Double readErrorRate, Double errorCollisionRate,
|
||||
Double realSequenceCollisionRate, Duration time){
|
||||
|
||||
// Map<Integer, Integer> plateVtoAMap,
|
||||
@@ -49,6 +50,7 @@ public class GraphWithMapData implements java.io.Serializable {
|
||||
// this.plateBtoVMap = plateBtoVMap;
|
||||
// this.alphaWellCounts = alphaWellCounts;
|
||||
// this.betaWellCounts = betaWellCounts;
|
||||
this.dropoutRate = dropoutRate;
|
||||
this.readDepth = readDepth;
|
||||
this.readErrorRate = readErrorRate;
|
||||
this.errorCollisionRate = errorCollisionRate;
|
||||
@@ -127,4 +129,6 @@ public class GraphWithMapData implements java.io.Serializable {
|
||||
}
|
||||
|
||||
public Double getRealSequenceCollisionRate() { return realSequenceCollisionRate; }
|
||||
|
||||
public Double getDropoutRate() { return dropoutRate; }
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ public class Simulator implements GraphModificationFunctions {
|
||||
Duration time = Duration.between(start, stop);
|
||||
//create GraphWithMapData object
|
||||
GraphWithMapData output = new GraphWithMapData(graph, numWells, samplePlate.getPopulations(), distCellsMapAlphaKey,
|
||||
alphaCount, betaCount, readDepth, readErrorRate, errorCollisionRate, realSequenceCollisionRate, time);
|
||||
alphaCount, betaCount, samplePlate.getError(), readDepth, readErrorRate, errorCollisionRate, realSequenceCollisionRate, time);
|
||||
//Set source file name in graph to name of sample plate
|
||||
output.setSourceFilename(samplePlate.getFilename());
|
||||
//return GraphWithMapData object
|
||||
@@ -305,6 +305,7 @@ public class Simulator implements GraphModificationFunctions {
|
||||
|
||||
Map<String, String> metadata = new LinkedHashMap<>();
|
||||
metadata.put("sample plate filename", data.getSourceFilename());
|
||||
metadata.put("sequence dropout rate", data.getDropoutRate().toString());
|
||||
metadata.put("graph filename", dataFilename);
|
||||
metadata.put("MWM algorithm type", algoType);
|
||||
metadata.put("matching weight", totalMatchingWeight.toString());
|
||||
|
||||
Reference in New Issue
Block a user