Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/opencb/biodata into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfeSanahuja committed Aug 6, 2024
2 parents 8ce273a + 234ebdb commit b66f3ea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

<properties>
<!-- All dependency versions must be defined here -->
<java-common-libs.version>5.2.0-SNAPSHOT</java-common-libs.version>
<java-common-libs.version>5.3.0-SNAPSHOT</java-common-libs.version>

<jackson.version>2.14.3</jackson.version>
<collections.version>4.4</collections.version>
Expand Down

0 comments on commit b66f3ea

Please sign in to comment.