File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
SequenceAnalysis/src/org/labkey/sequenceanalysis/run/analysis Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -376,10 +376,12 @@ else if ("D".equals(type))
376376 ref = sequence .getBaseString ().substring (basePriorToStart -1 , trueEnd );
377377 alt = sequence .getBaseString ().substring (basePriorToStart -1 , basePriorToStart );
378378
379- String predictedPindelAllele = ref + pindelAllele ;
379+ // Pindel reports the region over the deletion. so add the leading base to match the reference (VCF-style)
380+ // Our sequence based on coordinates should match what pindel reported
381+ String predictedPindelAllele = alt + pindelAllele ;
380382 if (!predictedPindelAllele .equals (ref ))
381383 {
382- throw new IllegalArgumentException ("Unexpected pindel allele: " + ref + " / " + predictedPindelAllele );
384+ throw new IllegalArgumentException ("Unexpected pindel allele: " + ref + " / " + predictedPindelAllele + " / " + pindelAllele );
383385 }
384386 }
385387
You can’t perform that action at this time.
0 commit comments