3ec9dec14cfbbe94f51eb94dd0cc861cad375f97
braney
  Tue Apr 17 18:58:18 2012 -0700
ongoing work on #6152.   Now with non-synonymous changes!  (well, at least with respect to the genomic DNA)
diff --git src/hg/lib/variant.c src/hg/lib/variant.c
index 5e7ebb9..90555b0 100644
--- src/hg/lib/variant.c
+++ src/hg/lib/variant.c
@@ -37,24 +37,25 @@
 	{
 	*nextAlleleString = 0;
 	nextAlleleString++;
 	}
 
     // this check probably not right, could be different per allele
     int alleleStringLength = strlen(thisAlleleString);
     if (alleleStringLength != alleleLength)
 	errAbort("length of allele number %d is %d, should be %d", 
 	    alleleNumber, alleleStringLength, alleleLength);
 
     // we have a new allele!
     struct allele *allele;
     AllocVar(allele);
     slAddHead(&variant->alleles, allele);
+    allele->variant = variant;
     allele->length = alleleStringLength;
     allele->sequence = cloneString(thisAlleleString);
     }
 
 slReverse(&variant->alleles);
 
 return variant;
 }