Skip to content

Commit 5fefe48

Browse files
committed
models: fix lowercase case in switch, #TASK-7626, #TASK-7549
1 parent 28b36d5 commit 5fefe48

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

biodata-models/src/main/java/org/opencb/biodata/models/clinical/interpretation/VariantClassification.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public static List<ClinicalAcmg> calculateAcmgClassification(ConsequenceType con
165165
if (StringUtils.isEmpty(score.getSource())) {
166166
continue;
167167
}
168+
// Be careful with the source names!, use lowercase to avoid problems
168169
switch (score.getSource().toLowerCase()) {
169170
case "sift": {
170171
if (score.getScore() <= 0.05) {
@@ -204,6 +205,7 @@ public static List<ClinicalAcmg> calculateAcmgClassification(ConsequenceType con
204205
if (StringUtils.isEmpty(score.getSource())) {
205206
continue;
206207
}
208+
// Be careful with the source names!, use lowercase to avoid problems
207209
switch (score.getSource().toLowerCase()) {
208210
case "cadd_scaled": {
209211
if (score.getScore() > 15.0) {
@@ -227,6 +229,7 @@ public static List<ClinicalAcmg> calculateAcmgClassification(ConsequenceType con
227229
if (StringUtils.isEmpty(score.getSource())) {
228230
continue;
229231
}
232+
// Be careful with the source names!, use lowercase to avoid problems
230233
switch (score.getSource().toLowerCase()) {
231234
case "gerp": {
232235
if (score.getScore() > 2.0) {
@@ -236,7 +239,8 @@ public static List<ClinicalAcmg> calculateAcmgClassification(ConsequenceType con
236239
}
237240
break;
238241
}
239-
case "phastCons": {
242+
// phastCons, make lowercase to phastcons
243+
case "phastcons": {
240244
if (score.getScore() >= 0.9) {
241245
pp3Evidences.add(score.getSource());
242246
} else if (score.getScore() <= 0.1) {

0 commit comments

Comments
 (0)