Skip to content

Commit

Permalink
Merge pull request #268 from opencb/TASK-6266
Browse files Browse the repository at this point in the history
TASK-6266 - OpenCGA-Storage test failed on develop branch
  • Loading branch information
j-coll authored Jul 12, 2024
2 parents 228e478 + 6d83ad3 commit ba8dd86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,8 @@ private Variant newVariant(Variant variant, VariantKeyFields keyFields, Structur
normalizedVariant.getSv().setCiStartRight(sv.getCiStartRight());
normalizedVariant.getSv().setCiEndLeft(sv.getCiEndLeft());
normalizedVariant.getSv().setCiEndRight(sv.getCiEndRight());
normalizedVariant.getSv().setLeftSvInsSeq(sv.getLeftSvInsSeq());
normalizedVariant.getSv().setRightSvInsSeq(sv.getRightSvInsSeq());

// Variant will never have CopyNumber, because the Alternate is normalized from <CNxx> to <CNV>
normalizedVariant.getSv().setCopyNumber(keyFields.getCopyNumber());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,14 @@ public void testNormalizeSvToIndel() throws NonStandardCompliantSampleField {

}

@Test
public void testNormalizeWithInsSeq() throws NonStandardCompliantSampleField {
Variant variant = new Variant("1:799984<800001<800022:-:ACCACACCCACACAACACACA...TGTGGTGTGTGTGGTGTG");
Variant normVar = new VariantNormalizer().normalize(Collections.singletonList(variant), false).get(0);
assertEquals(variant, normVar);
assertEquals(variant.toString(), normVar.toString());
}

@Test
public void testNormalizeBND() throws NonStandardCompliantSampleField {
normalizeBnd(newVariant(101, 100, "", ".[9:10["), newVariant(100, 99, "A", "A[chr9:10["));
Expand Down

0 comments on commit ba8dd86

Please sign in to comment.