dabedeaeebf67951bfa2dca34301aaf8a404ec4e
braney
  Wed Jan 14 14:11:09 2015 -0800
add fieldCount to output of bigBedInfo
diff --git src/utils/bigBedInfo/bigBedInfo.c src/utils/bigBedInfo/bigBedInfo.c
index 16f6eb2..df34d98 100644
--- src/utils/bigBedInfo/bigBedInfo.c
+++ src/utils/bigBedInfo/bigBedInfo.c
@@ -40,30 +40,31 @@
 };
 
 void printLabelAndLongNumber(char *label, long long l)
 /* Print label: 1,234,567 format number */
 {
 printf("%s: ", label);
 printLongWithCommas(stdout, l);
 printf("\n");
 }
 
 void bigBedInfo(char *fileName)
 /* bigBedInfo - Show information about a bigBed file.. */
 {
 struct bbiFile *bbi = bigBedFileOpen(fileName);
 printf("version: %d\n", bbi->version);
+printf("fieldCount: %d\n", bbi->fieldCount);
 printf("hasHeaderExtension: %s\n", (bbi->extensionOffset != 0 ? "yes" : "no"));
 printf("isCompressed: %s\n", (bbi->uncompressBufSize > 0 ? "yes" : "no"));
 printf("isSwapped: %d\n", bbi->isSwapped);
 printf("extraIndexCount: %d\n", bbi->extraIndexCount);
 if (optionExists("extraIndex"))
     {
     struct slName *el, *list = bigBedListExtraIndexes(bbi);
     for (el = list; el != NULL; el = el->next)
 	{
 	int fieldIx = 0;
 	struct bptFile *bpt = bigBedOpenExtraIndex(bbi, el->name, &fieldIx);
         printf("    %s (field %d) with %lld items\n", el->name, fieldIx, (long long)bpt->itemCount);
 	}
     }
 printLabelAndLongNumber("itemCount", bigBedItemCount(bbi));