ae3969602106c0229160648f6ff6c87c3ad0de2d giardine Tue Dec 7 14:13:12 2010 -0800 Addition of wiki track and supporting tracks for microattribution reviews (part of the variome project) diff --git src/hg/hgc/hgc.h src/hg/hgc/hgc.h index a889095..b04cb99 100644 --- src/hg/hgc/hgc.h +++ src/hg/hgc/hgc.h @@ -19,30 +19,39 @@ #ifndef HDB_H #include "hdb.h" #endif #ifndef HPRINT_H #include "hPrint.h" #endif #ifndef CUSTOMTRACK_H #include "customTrack.h" #endif #ifndef WIKITRACK_H #include "wikiTrack.h" #endif + +#ifndef VARIOME_H +#include "variome.h" +#endif + +#ifndef BEDDETAIL_H +#include "bedDetail.h" +#endif + #include "hgdpGeo.h" #include "dnaMotif.h" extern struct cart *cart; /* User's settings. */ extern char *seqName; /* Name of sequence we're working on. */ extern int winStart, winEnd; /* Bounds of sequence. */ extern char *database; /* Name of mySQL database. */ extern char *organism; /* Colloquial name of organism. */ extern char *genome; /* common name, e.g. Mouse, Human */ extern char *scientificName; /* Scientific name of organism. */ extern struct hash *trackHash; /* A hash of all tracks - trackDb valued */ void hgcStart(char *title); /* Print out header of web page with title. Set @@ -329,30 +338,51 @@ void doCreateWikiItem(char *itemName, char *chrom, int winStart, int winEnd); /* handle create item clicks for wikiTrack */ void doAddWikiComments(char *itemName, char *chrom, int winStart, int winEnd); /* handle add comment item clicks for wikiTrack */ void doDeleteWikiItem(char *itemName, char *chrom, int winStart, int winEnd); /* handle delete item clicks for wikiTrack */ void offerLogin(int id, char *loginType, char *table); /* display login prompts to the wiki when user isn't already logged in */ void outputJavaScript(); /* java script functions used in the create item form */ +void doVariome (char *wikiItemId, char *chrom, int winStart, int winEnd); +/* handle item clicks on variome - may create new items */ + +void displayVariomeItem (struct variome *item, char *userName); +/* given an already fetched item, get the item description from + * the wiki. Put up edit form(s) if userName is not NULL + * separate from wikiTrack for form field differences and help + */ + +void doCreateVariomeItem (char *itemName, char *chrom, int winStart, int winEnd); +/* handle create item clicks for variome */ + +void doAddVariomeComments(char *wikiItemId, char *chrom, int winStart, int winEnd); +/* handle add comment item clicks for Variome Track */ + +void doDeleteVariomeItem(char *wikiItemId, char *chrom, int winStart, int winEnd); +/* handle delete item clicks for Variome Track */ + +void printWikiVariomeForm (struct bedDetail *item); +/* print the wiki annotation form for the variome track */ + void customMafClick(struct sqlConnection *conn, struct sqlConnection *conn2, struct trackDb *tdb); /* handle clicks on a custom maf */ void doEncodePeak(struct trackDb *tdb, struct customTrack *ct); /* details for encodePeak type tracks. */ void doEncodeFiveC(struct sqlConnection *conn, struct trackDb *tdb); /* Print details for 5C track */ void doHgdpGeo(struct trackDb *tdb, char *item); /* Show details page for HGDP SNP with population allele frequencies * plotted on a world map. */ void hgdpGeoImg(struct hgdpGeo *geo);