From 5c1148b2285c0e0777b3bb9a37e1503c15323da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20T=C3=A1rraga=20Gim=C3=A9nez?= Date: Tue, 1 Sep 2020 10:23:15 +0200 Subject: [PATCH] models: update ClinicalVariant object, #189 --- .../interpretation/ClinicalVariant.java | 45 ++++++++++++------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/biodata-models/src/main/java/org/opencb/biodata/models/clinical/interpretation/ClinicalVariant.java b/biodata-models/src/main/java/org/opencb/biodata/models/clinical/interpretation/ClinicalVariant.java index 39bbd127a..64af68e19 100644 --- a/biodata-models/src/main/java/org/opencb/biodata/models/clinical/interpretation/ClinicalVariant.java +++ b/biodata-models/src/main/java/org/opencb/biodata/models/clinical/interpretation/ClinicalVariant.java @@ -30,9 +30,10 @@ public class ClinicalVariant extends Variant { - private double deNovoQualityScore; private List evidences; + private List interpretationMethodNames; private List comments; + private String discussion; private Status status; @@ -41,7 +42,7 @@ public class ClinicalVariant extends Variant { public enum Status { NOT_REVIEWED, - UNDER_REVIEW, + REVIEW_REQUESTED, REVIEWED, DISCARDED, REPORTED @@ -52,16 +53,17 @@ public ClinicalVariant() { } public ClinicalVariant(VariantAvro avro) { - this(avro, 0.0, new ArrayList<>(), new ArrayList<>(), Status.NOT_REVIEWED, new HashMap<>()); + this(avro, new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), "", Status.NOT_REVIEWED, new HashMap<>()); } - public ClinicalVariant(VariantAvro avro, double deNovoQualityScore, List evidences, - List comments, Status status, Map attributes) { + public ClinicalVariant(VariantAvro avro, List evidences, List interpretationMethodNames, + List comments, String discussion, Status status, Map attributes) { super(avro); - this.deNovoQualityScore = deNovoQualityScore; this.evidences = evidences; + this.interpretationMethodNames = interpretationMethodNames; this.comments = comments; + this.discussion = discussion; this.status = status; this.attributes = attributes; } @@ -69,31 +71,31 @@ public ClinicalVariant(VariantAvro avro, double deNovoQualityScore, List