519e0946826199d1d9792fa8df5972843fce021c
angie
  Tue Aug 9 14:39:38 2011 -0700
Feature #2821 (VCF parser): improved representation of alleles:parse ref and comma-sep'd alt allele string into count and array
inside record, so callers don't all have to parse the comma-sep'd
alternate allele string.

diff --git src/lib/tests/vcfParseTest.c src/lib/tests/vcfParseTest.c
index 3670a48..38f1e7e 100644
--- src/lib/tests/vcfParseTest.c
+++ src/lib/tests/vcfParseTest.c
@@ -30,31 +30,31 @@
 {
 struct vcfFile *vcff = vcfTabixFileMayOpen(fileOrUrl, seqName, start, end, 100);
 if (vcff == NULL)
     errAbort("Failed to parse \"%s\" and/or its index file \"%s.tbi\"", fileOrUrl, fileOrUrl);
 int recCount = slCount(vcff->records);
 printf("Finished parsing \"%s\" items in %s:%d-%d, got %d data rows\n",
        fileOrUrl, seqName, start+1, end, recCount);
 if (recCount > 0)
     printf("First (up to) 100 rows in range:\n");
 int i = 0;
 struct vcfRecord *rec = vcff->records;
 while (rec != NULL && i < 100)
     {
     printf("%s\t%d\t%d\t%s:%s/%s\t%s\n",
 	   rec->chrom, rec->chromStart, rec->chromEnd,
-	   rec->name, rec->ref, rec->alt, rec->qual);
+	   rec->name, rec->alleles[0], rec->alleles[1], rec->qual);
     rec = rec->next;
     i++;
     }
 vcfFileFree(&vcff);
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 optionInit(&argc, argv, options);
 if (argc != 5)
     usage();
 vcfParseTest(argv[1], argv[2], sqlUnsigned(argv[3]), sqlUnsigned(argv[4]));
 return 0;
 }