Skip to content

Commit 989b12c

Browse files
authored
Merge pull request #165 from PolinaBevad/f_fix_strong_somatic_absent_v2ref
Fixes StrongSomatic output when ref variant is absent
2 parents 686ff4b + d5591ec commit 989b12c

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/main/java/com/astrazeneca/vardict/VarDict.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -619,15 +619,10 @@ && isGoodVar(v1.var.get(n), v1.ref, v1.var.get(n).varType(), splice, conf)) {
619619
int rrc = v2r != null && v2r.rrc != 0 ? v2r.rrc : 0;
620620
tvf = join("\t", tcov, 0, rfc, rrc, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
621621
} else if (v2.ref != null) {
622-
// TODO: This "if" will never be run
623-
if (v2.ref == null) {
624-
Variant v2m = getVarMaybe(v2, var, 0);
625-
int tcov = v2m != null && v2m.tcov != 0 ? v2m.tcov : 0;
626-
tvf = joinEmptyVariantWithTcov(tcov);
627-
} else {
628-
Variant v2ref = v2.ref;
629-
tvf = joinVariantWithNM(v2ref);
630-
}
622+
Variant v2ref = v2.ref;
623+
tvf = joinVariantWithNM(v2ref);
624+
} else {
625+
tvf = joinEmptyVariantWithTcov(0);
631626
}
632627
String type = "StrongSomatic";
633628
jregex.Matcher mm = MINUS_NUM_NUM.matcher(nt);

0 commit comments

Comments
 (0)