4c9ae67ea6e03ec3069cea012398793046e9ff2a
giardine
  Tue Sep 21 15:00:29 2010 -0700
Adds new track type bedDetail to custom and resident tracks, also adds pgSnp (personal genome SNPs) as custom track type.  bedDetail is bed4 to bed12, with 2 extra fields for an ID and description for hgc clicks.
diff --git src/hg/lib/trackDbCustom.c src/hg/lib/trackDbCustom.c
index 9af8268..687e88e 100644
--- src/hg/lib/trackDbCustom.c
+++ src/hg/lib/trackDbCustom.c
@@ -109,6 +109,18 @@
     hashAdd(bt->overrides, var, NULL);
 }
 
+//not needed?
+int bedDetailSizeFromType(char *type)
+/* parse bedSize from type line for bedDetail, assume 4 if none */
+{
+int ret = 4;  /* minimal expected */
+char *words[3];
+int wordCount = chopLine(cloneString(type), words);
+if (wordCount > 1)
+    ret = atoi(words[1]) - 2; /* trackDb has field count, we want bedSize */
+return ret;
+}
+
 void trackDbFieldsFromSettings(struct trackDb *bt)
 /* Update trackDb fields from settings hash */
 {
@@ -192,7 +204,7 @@
                    sameString("expRatio", s) || sameString("wigMaf", s) ||
 		   sameString("factorSource", s) || sameString("bed5FloatScore", s) ||
 		   sameString("bed6FloatScore", s) || sameString("altGraphX", s) ||
-		   sameString("bam", s));
+		   sameString("bam", s) || sameString("bedDetail", s));
 freeMem(t);
 return canPack;
 }