c4cea1c78550bad81a6dfd43b54fd3ed796aa8dd
kent
  Wed Mar 27 01:45:26 2013 -0700
Small conservative change to gff/gtf reader, just to count # of each feature in file.
diff --git src/lib/gff.c src/lib/gff.c
index 14309e4..1a9ca8a 100644
--- src/lib/gff.c
+++ src/lib/gff.c
@@ -268,30 +268,32 @@
     AllocVar(el);
     hel = hashAdd(gff->sourceHash, words[1], el);
     el->name = hel->name;
     slAddHead(&gff->sourceList, el);
     }
 gl->source = hel->name;
 
 if ((hel = hashLookup(gff->featureHash, words[2])) == NULL)
     {
     struct gffFeature *el;
     AllocVar(el);
     hel = hashAdd(gff->featureHash, words[2], el);
     el->name = hel->name;
     slAddHead(&gff->featureList, el);
     }
+struct gffFeature *feature = hel->val;
+feature->count += 1;
 gl->feature = hel->name;
 
 if (!isdigit(words[3][0]) || !isdigit(words[4][0]))
    gffSyntaxError(fileName, lineIx, "col 3 or 4 not a number ");	
 gl->start = atoi(words[3])-1 + baseOffset;
 gl->end = atoi(words[4]) + baseOffset;
 gl->score = atof(words[5]);
 gl->strand = words[6][0];
 gl->frame = words[7][0];
 
 if (wordCount >= 9)
     {
     if (!gff->typeKnown)
 	{
 	gff->typeKnown = TRUE;