org.opencb.biodata.models.clinical.interpretation.InterpretationFindingStats Maven / Gradle / Ivy
The newest version!
package org.opencb.biodata.models.clinical.interpretation;
import java.util.HashMap;
import java.util.Map;
public class InterpretationFindingStats {
private int numVariants;
private Map tierCount;
private Map statusCount;
private Map geneCount;
public InterpretationFindingStats() {
}
public InterpretationFindingStats(int numVariants, Map tierCount, Map statusCount,
Map geneCount) {
this.numVariants = numVariants;
this.tierCount = tierCount;
this.statusCount = statusCount;
this.geneCount = geneCount;
}
public static InterpretationFindingStats init() {
Map variantStatusCount = new HashMap<>();
for (ClinicalVariant.Status value : ClinicalVariant.Status.values()) {
variantStatusCount.put(value, 0);
}
return new InterpretationFindingStats(0, new HashMap<>(), variantStatusCount, new HashMap<>());
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("InterpretationStats{");
sb.append("numVariants=").append(numVariants);
sb.append(", tierCount=").append(tierCount);
sb.append(", statusCount=").append(statusCount);
sb.append(", geneCount=").append(geneCount);
sb.append('}');
return sb.toString();
}
public int getNumVariants() {
return numVariants;
}
public InterpretationFindingStats setNumVariants(int numVariants) {
this.numVariants = numVariants;
return this;
}
public Map getTierCount() {
return tierCount;
}
public InterpretationFindingStats setTierCount(Map tierCount) {
this.tierCount = tierCount;
return this;
}
public Map getStatusCount() {
return statusCount;
}
public InterpretationFindingStats setStatusCount(Map statusCount) {
this.statusCount = statusCount;
return this;
}
public Map getGeneCount() {
return geneCount;
}
public InterpretationFindingStats setGeneCount(Map geneCount) {
this.geneCount = geneCount;
return this;
}
}