c7c858d73c7c51702a358d57786ca7c2132cc2b4
tdreszer
  Mon Nov 22 13:05:06 2010 -0800
Standardize 'Antibody' to 'antibody' in cv hash, since this is the mdb term of record
diff --git src/hg/lib/mdb.c src/hg/lib/mdb.c
index 9e29f15..994663d 100644
--- src/hg/lib/mdb.c
+++ src/hg/lib/mdb.c
@@ -2154,30 +2154,36 @@
 // Those terms should contain label,description,searchable,cvDefined,hidden
 {
 static struct hash *cvHashOfTermTypes = NULL;
 
 // Establish cv hash of Term Types if it doesn't already exist
 if (cvHashOfTermTypes == NULL)
     {
     cvHashOfTermTypes = raReadWithFilter(cv_file(), "term","type","typeOfTerm");
     // Patch up an ugly inconsistency with 'cell'
     struct hash *cellHash = hashRemove(cvHashOfTermTypes,"cellType");
     if (cellHash)
         {
         hashAdd(cvHashOfTermTypes,"cell",cellHash);
         hashReplace(cellHash, "term", cloneString("cell")); // spilling memory of 'cellType' val
         }
+    struct hash *abHash = hashRemove(cvHashOfTermTypes,"Antibody");
+    if (abHash)
+        {
+        hashAdd(cvHashOfTermTypes,"antibody",abHash);
+        hashReplace(abHash, "term", cloneString("antibody")); // spilling memory of 'Antibody' val
+        }
     }
 
 
 return cvHashOfTermTypes;
 }
 
 struct slPair *mdbCvWhiteList(boolean searchTracks, boolean cvDefined)
 // returns the official mdb/controlled vocabulary terms that have been whitelisted for certain uses.
 // TODO: change to return struct that includes searchable!
 {
 struct slPair *whitePairs = NULL;
 
 // Get the list of term types from thew cv
 struct hash *termTypeHash = mdbCvTermTypeHash();
 struct hashCookie hc = hashFirst(termTypeHash);