Check that we're biallelic before calling isSNP()

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2127 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2009-11-23 20:20:48 +00:00
parent 5744a1d968
commit ed4cf3de57
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ public class SNPClusterWalker extends RefWalker<GenomeLoc, GenomeLoc> {
public GenomeLoc map(RefMetaDataTracker tracker, ReferenceContext ref, AlignmentContext context) {
Variation snp = (Variation)tracker.lookup("snps", null);
return (snp != null && snp.isSNP()) ? context.getLocation() : null;
return (snp != null && snp.isBiallelic() && snp.isSNP()) ? context.getLocation() : null;
}
public void onTraversalDone(GenomeLoc sum) {