Skip to content

Commit

Permalink
Removed a line in FlowBasedAnnotation that contained a bug and thus w…
Browse files Browse the repository at this point in the history
…as meaningless (#8421)
  • Loading branch information
ilyasoifer authored Jul 20, 2023
1 parent 7d900f5 commit 32933b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,6 @@ protected void variantType(final VariantContext vc, final LocalContext localCont
if ((localContext.hmerIndelLength.get(i)==null) || (localContext.hmerIndelLength.get(i)==0)){
isHmer=false;
}
if ((localContext.hmerIndelLength.get(i)==1) && (localContext.indel.equals(C_DELETE))){ // new definition 1->0 has hmer indel 1
isHmer=false;
}

}

if (isHmer){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public class FlowAnnotatorUnitTest extends GATKBaseTest {
new HmerIndelNuc(),
new HmerMotifs(),
new GcContent(),
new CycleSkipStatus()
new CycleSkipStatus(),
new VariantType()
};

@DataProvider(name = "testData")
Expand Down Expand Up @@ -55,9 +56,9 @@ public Object[][] getTestData() {
"NA", "", "0", "", "GTATC", "ACATC", "0.3", "cycle-skip", "snp"
},
{
// not hmer indel
// hmer indel (1->0)
"TATCT CA TTGACCAA", "C",
"del", "1", "1", "A", "ATCTC", "TTGAC", "0.3", "NA", "non-h-indel"
"del", "1", "1", "A", "ATCTC", "TTGAC", "0.3", "NA", "h-indel"
},
{
// del hmer indel
Expand Down Expand Up @@ -99,7 +100,7 @@ public void testBasic(final String refBases, final String altAllele,
// check that all expected attributes are there
String[] testResults = {indelClass, indelLength, hmerIndelLength, hmerIndelNuc,
leftMotif, rightMotif, gcContent, cycleskipStatus, variantType};
for ( int n = 0 ; n < 8 ; n++ ) {
for ( int n = 0 ; n < 9 ; n++ ) {
String key = expectedAttrs.get(n);
String elem = testResults[n];
String keyMsg = "on " + key + " " + msg;
Expand Down

0 comments on commit 32933b4

Please sign in to comment.