7e514a3e21033e87921d8c98bb4ac2e79caed9d1
tdreszer
  Thu May 9 12:50:15 2013 -0700
Initial check in of new hgGene section: Gene Alleles.  The ra file is not being checked in yet.
diff --git src/hg/hgGene/hgGene.h src/hg/hgGene/hgGene.h
index fd3c541..5506e7d 100644
--- src/hg/hgGene/hgGene.h
+++ src/hg/hgGene/hgGene.h
@@ -31,30 +31,32 @@
     boolean (*exists)(struct section *section, struct sqlConnection *conn,
     	char *geneId);
     /* Return TRUE if this section needs to be printed. */
 
     void (*print)(struct section *section, struct sqlConnection *conn,
     	char *geneId);
     /* Print section given connection to genome database. */
 
     /* Some section-specific data. */
     char *raFile;	/* Ra file to load additional info from. */
     void *items;	/* Some list of items. */
 
     /* Some FlyBase specific stuff. */
     char *flyBaseTable;	/* Which table to use. */
     char *rgdGeneTable;	/* Which table to use. */
+
+    void *extras;        // Contains any section specific stuff
     };
 
 struct section *sectionNew(struct hash *sectionRa, char *name);
 /* Create a section loading all common parts but the methods 
  * sectionRa. */
 
 struct section *linksSection(struct sqlConnection *conn, 
 	struct hash *sectionRa);
 /* Create links section. */
 
 struct section *otherOrgsSection(struct sqlConnection *conn, 
 	struct hash *sectionRa);
 /* Create other organisms section. */
 
 struct section *sequenceSection(struct sqlConnection *conn,
@@ -141,30 +143,35 @@
 	struct hash *sectionRa);
 /* Create Localization section. */
 
 struct section *transRegCodeMotifSection(struct sqlConnection *conn,
 	struct hash *sectionRa);
 /* Create dnaBindMotif section. */
 
 struct section *synonymSection(struct sqlConnection *conn,
 	struct hash *sectionRa);
 /* Create synonym (aka Other Names) section. */
 
 struct section *geneReviewsSection(struct sqlConnection *conn,
         struct hash *sectionRa);
 /* create geneReviews section - print out GeneReviews for this gene. */
 
+#define HGG_GENE_ALLELES "geneAlleles"
+struct section *allelesSection(struct sqlConnection *conn,
+        struct hash *sectionRa);
+// Create Common Gene Haplotype Alleles section.
+
 void prGRShortKg(struct sqlConnection *conn, char *itemName);
 /* print GeneReviews short label associated to this refGene item */
 
 #ifdef EXAMPLE
 struct section *xyzSection(struct sqlConnection *conn, 
 	struct hash *sectionRa);
 /* Create xyz section. */
 #endif /* EXAMPLE */
 
 /* -------- Helper functions ---------- */
 
 char *getGeneName(char *id, struct sqlConnection *conn);
 /* Return gene name associated with ID.  Freemem
  * this when done. */
 
@@ -218,30 +225,32 @@
 
 char *aliasString(char *id, struct sqlConnection *conn);
 /* return alias string as it would be printed in html, can free after use */
 
 /* -------- CGI Command Variables ---------- */
 #define hggDoPrefix "hgg_do_"	/* Prefix for all commands. */
 #define hggDoKgMethod "hgg_do_kgMethod"
 #define hggDoWikiTrack "hgg_do_wikiTrack"
 #define hggDoWikiAddComment "hgg_do_wikiAddComment"
 #define hggDoGetMrnaSeq "hgg_do_getMrnaSeq"
 #define hggDoGetProteinSeq "hgg_do_getProteinSeq"
 #define hggDoRnaFoldDisplay "hgg_do_rnaFoldDisplay"
 #define hggDoOtherProteinSeq "hgg_do_otherProteinSeq"
 #define hggDoOtherProteinAli "hgg_do_otherProteinAli"
 #define hggDoTxInfoDescription "hgg_do_txInfoDescription"
+#define hggAjaxSection         "ajaxSection"
+
 
 #define geneCgi "../cgi-bin/hgGene"
 
 /* -------- Commands ---------- */
 
 void doKgMethod();
 /* Present KG Method, Credits, and Data Use Restrictions. */
 
 void doWikiTrack(struct sqlConnection *conn);
 /* Put up wiki track editing controls */
 
 void doTxInfoDescription();
 /* Put up info on fields in txInfo table. */
 
 void doGetMrnaSeq(struct sqlConnection *conn, char *geneId, char *geneName);