07769f5e62216c125dc90df08dac7a90402c3fa4
markd
  Mon Jun 22 12:54:40 2015 -0700
add geneId to transmap gene table, with backwards compatibilty for current transmap tracks (RM 14574)

diff --git src/hg/lib/transMapSrc.c src/hg/lib/transMapSrc.c
index 258654a..b57ef80 100644
--- src/hg/lib/transMapSrc.c
+++ src/hg/lib/transMapSrc.c
@@ -1,29 +1,31 @@
 /* transMapSrc.c was originally generated by the autoSql program, which also 
  * generated transMapSrc.h and transMapSrc.sql.  This module links the database and
  * the RAM representation of objects. */
 
 /* Copyright (C) 2014 The Regents of the University of California 
  * See README in this or parent directory for licensing information. */
 
 #include "common.h"
 #include "linefile.h"
 #include "dystring.h"
 #include "jksql.h"
 #include "transMapSrc.h"
 
 
+char *transMapSrcCommaSepFieldNames = "db,id,chrom,chromStart,chromEnd,strand,ident,aligned";
+
 void transMapSrcStaticLoad(char **row, struct transMapSrc *ret)
 /* Load a row from transMapSrc table into ret.  The contents of ret will
  * be replaced at the next call to this function. */
 {
 
 safecpy(ret->db, sizeof(ret->db), row[0]);
 ret->id = row[1];
 ret->chrom = row[2];
 ret->chromStart = sqlUnsigned(row[3]);
 ret->chromEnd = sqlUnsigned(row[4]);
 ret->strand = row[5][0];
 ret->ident = sqlFloat(row[6]);
 ret->aligned = sqlFloat(row[7]);
 }
 
@@ -154,18 +156,18 @@
 fputc(sep,f);
 fprintf(f, "%g", el->aligned);
 fputc(lastSep,f);
 }
 
 /* -------------------------------- End autoSql Generated Code -------------------------------- */
 
 
 struct transMapSrc *transMapSrcQuery(struct sqlConnection *srcConn,
                                      char *table, char *srcDb, char *srcId)
 /* load a single transMapSrc object for an srcDb and srcId from a table,
  * or error if not found */
 {
 return sqlQueryObjs(srcConn, (sqlLoadFunc)transMapSrcLoad,
                     sqlQueryMust|sqlQuerySingle,
-                    "SELECT * FROM %s WHERE (db=\"%s\") and (id = \"%s\")",
-                    table, srcDb, srcId);
+                    "SELECT %-s FROM %s WHERE (db=\"%s\") and (id = \"%s\")",
+                    transMapSrcCommaSepFieldNames, table, srcDb, srcId);
 }