src/hg/hgTracks/hapmapTrack.c 1.46

1.46 2009/03/09 19:10:16 angie
For filter 'matches minor human allele', make sure the minor allele has been observed in at least one sample.
Index: src/hg/hgTracks/hapmapTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/hapmapTrack.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -b -B -U 4 -r1.45 -r1.46
--- src/hg/hgTracks/hapmapTrack.c	6 Mar 2009 23:19:40 -0000	1.45
+++ src/hg/hgTracks/hapmapTrack.c	9 Mar 2009 19:10:16 -0000	1.46
@@ -705,8 +705,9 @@
     if (sameString(orthoFilter[i], "matches major human allele") &&
 	summary->orthoAlleles[i] != summary->overallMajorAllele)
 	return TRUE;
     if (sameString(orthoFilter[i], "matches minor human allele") &&
+	summary->maxFreq > 0 &&  // make sure minor allele has been observed
 	summary->orthoAlleles[i] != summary->overallMinorAllele)
 	return TRUE;
     /* mismatches */
     if (sameString(orthoFilter[i], "matches neither human allele"))