clean up metadata

This commit is contained in:
eugenefischer
2022-09-27 12:15:12 -05:00
parent 2bf2a9f5f7
commit d71a99555c
2 changed files with 42 additions and 29 deletions

View File

@@ -10,26 +10,33 @@ public class MatchingResult {
private final List<String> headers;
private final List<List<String>> allResults;
private final Map<String, String> matchMap;
private final Duration time;
public MatchingResult(Map<String, String> metadata, List<String> headers,
List<List<String>> allResults, Map<String, String>matchMap, Duration time){
List<List<String>> allResults, Map<String, String>matchMap){
/*
* POSSIBLE KEYS FOR METADATA MAP ARE:
* sample plate filename *
* graph filename *
* matching weight *
* well populations *
* total alphas found *
* total betas found *
* high overlap threshold *
* low overlap threshold *
* maximum occupancy difference *
* minimum overlap percent *
* sequence read depth *
* sequence read error rate *
* read error collision rate *
* total alphas read from plate *
* total betas read from plate *
* alphas in graph (after pre-filtering) *
* betas in graph (after pre-filtering) *
* high overlap threshold for pairing *
* low overlap threshold for pairing *
* maximum occupancy difference for pairing *
* minimum overlap percent for pairing *
* pairing attempt rate *
* correct pairing count *
* incorrect pairing count *
* pairing error rate *
* simulation time (seconds)
* time to generate graph (seconds) *
* time to pair sequences (seconds) *
* total simulation time (seconds) *
*/
this.metadata = metadata;
this.comments = new ArrayList<>();
@@ -39,8 +46,6 @@ public class MatchingResult {
this.headers = headers;
this.allResults = allResults;
this.matchMap = matchMap;
this.time = time;
}
public Map<String, String> getMetadata() {return metadata;}
@@ -61,9 +66,9 @@ public class MatchingResult {
return matchMap;
}
public Duration getTime() {
return time;
}
// public Duration getTime() {
// return time;
// }
public String getPlateFilename() {
return metadata.get("sample plate filename");
@@ -84,20 +89,20 @@ public class MatchingResult {
}
public Integer getAlphaCount() {
return Integer.parseInt(metadata.get("total alpha count"));
return Integer.parseInt(metadata.get("total alphas read from plate"));
}
public Integer getBetaCount() {
return Integer.parseInt(metadata.get("total beta count"));
return Integer.parseInt(metadata.get("total betas read from plate"));
}
public Integer getHighOverlapThreshold() { return Integer.parseInt(metadata.get("high overlap threshold"));}
public Integer getHighOverlapThreshold() { return Integer.parseInt(metadata.get("high overlap threshold for pairing"));}
public Integer getLowOverlapThreshold() { return Integer.parseInt(metadata.get("low overlap threshold"));}
public Integer getLowOverlapThreshold() { return Integer.parseInt(metadata.get("low overlap threshold for pairing"));}
public Integer getMaxOccupancyDifference() { return Integer.parseInt(metadata.get("maximum occupancy difference"));}
public Integer getMaxOccupancyDifference() { return Integer.parseInt(metadata.get("maximum occupancy difference for pairing"));}
public Integer getMinOverlapPercent() { return Integer.parseInt(metadata.get("minimum overlap percent"));}
public Integer getMinOverlapPercent() { return Integer.parseInt(metadata.get("minimum overlap percent for pairing"));}
public Double getPairingAttemptRate() { return Double.parseDouble(metadata.get("pairing attempt rate"));}
@@ -107,6 +112,6 @@ public class MatchingResult {
public Double getPairingErrorRate() { return Double.parseDouble(metadata.get("pairing error rate"));}
public String getSimulationTime() { return metadata.get("simulation time (seconds)"); }
public String getSimulationTime() { return metadata.get("total simulation time (seconds)"); }
}