f09e062ead54042b3f2b20ea4f4addc21633625e
cline
  Mon Sep 19 17:16:29 2011 -0700
Changed in response to Redmine #5290 (tRNA and Rfam genes being represented poorly by kgXref).  The kgXref table now has two new fields: one for the tRNA name (which can be used to cross-reference the track items to tRNA Genes items), and one for the Rfam accession (which can be used for links to the appropriate Rfam model page).  txGeneXref fills in both of these fields, and splices the sequence names appropriately to pull out half-meaningful gene symbols and descriptions
diff --git src/hg/inc/kgXref.h src/hg/inc/kgXref.h
index b7e6c44..79a96d8 100644
--- src/hg/inc/kgXref.h
+++ src/hg/inc/kgXref.h
@@ -1,37 +1,38 @@
 /* kgXref.h was originally generated by the autoSql program, which also 
  * generated kgXref.c and kgXref.sql.  This header links the database and
  * the RAM representation of objects. */
 
 #ifndef KGXREF_H
 #define KGXREF_H
 
-#define KGXREF_NUM_COLS 9
+#define KGXREF_NUM_COLS 10
 
 struct kgXref
 /* Link together a Known Gene ID and a gene alias */
     {
     struct kgXref *next;  /* Next in singly linked list. */
     char *kgID;	/* Known Gene ID */
     char *mRNA;	/* mRNA ID */
     char *spID;	/* SWISS-PROT protein Accession number */
     char *spDisplayID;	/* SWISS-PROT display ID */
     char *geneSymbol;	/* Gene Symbol */
     char *refseq;	/* RefSeq ID */
     char *protAcc;	/* NCBI protein Accession number */
     char *description;	/* Description */
     char *rfamAcc;	/* Rfam accession number */
+    char *tRnaName;	/* Name from the tRNA track */
     };
 
 void kgXrefStaticLoad(char **row, struct kgXref *ret);
 /* Load a row from kgXref table into ret.  The contents of ret will
  * be replaced at the next call to this function. */
 
 struct kgXref *kgXrefLoad(char **row);
 /* Load a kgXref from row fetched with select * from kgXref
  * from database.  Dispose of this with kgXrefFree(). */
 
 struct kgXref *kgXrefLoadAll(char *fileName);
 /* Load all kgXref from whitespace-separated file.
  * Dispose of this with kgXrefFreeList(). */
 
 struct kgXref *kgXrefLoadAllByChar(char *fileName, char chopper);