a4998f3f787d1a05c140df1591463e1ce7fb7465
max
  Sun Sep 28 04:57:39 2014 -0700
fixing gbib bug in vai, refs #11957
diff --git src/lib/annoAssembly.c src/lib/annoAssembly.c
index 5551ee0..84cf412 100644
--- src/lib/annoAssembly.c
+++ src/lib/annoAssembly.c
@@ -2,32 +2,32 @@
 
 /* Copyright (C) 2013 The Regents of the University of California 
  * See README in this or parent directory for licensing information. */
 
 #include "annoAssembly.h"
 #include "dnaseq.h"
 #include "obscure.h"
 #include "twoBit.h"
 
 struct annoAssembly *annoAssemblyNew(char *name, char *twoBitPath)
 /* Return an annoAssembly with open twoBitFile. */
 {
 struct annoAssembly *aa;
 AllocVar(aa);
 aa->name = cloneString(name);
-aa->tbf = twoBitOpen(twoBitPath);
-aa->twoBitPath = cloneString(twoBitPath);
+aa->twoBitPath = hReplaceGbdb(twoBitPath);
+aa->tbf = twoBitOpen(aa->twoBitPath);
 aa->curSeq = NULL;
 return aa;
 }
 
 struct slName *annoAssemblySeqNames(struct annoAssembly *aa)
 /* Return a list of sequence names in this assembly. */
 {
 struct slName *seqNames = twoBitSeqNames(aa->twoBitPath);
 slSort(&seqNames, slNameCmp);
 return seqNames;
 }
 
 uint annoAssemblySeqSize(struct annoAssembly *aa, char *seqName)
 /* Return the number of bases in seq which must be in aa's twoBitFile. */
 {