709fe2b919636225cb13fb2d95cf177702346bd1 angie Wed Apr 25 15:50:25 2012 -0700 Feature #6152 (Variant Annotation Tool): Added region type and positioninputs to UI -- and it actually executes some queries now! diff --git src/hg/inc/hdb.h src/hg/inc/hdb.h index 6e27196..7c7405f 100644 --- src/hg/inc/hdb.h +++ src/hg/inc/hdb.h @@ -803,30 +803,35 @@ /* Make directory name from organism name - getting * rid of dots and spaces. */ struct hash *hgReadRa(char *genome, char *database, char *rootDir, char *rootName, struct hash **retHashOfHash); /* Read in ra in root, root/org, and root/org/database. * Returns a list of hashes, one for each ra record. Optionally * if retHashOfHash is non-null it returns there a * a hash of hashes keyed by the name field in each * ra sub-hash. */ char *addCommasToPos(char *db, char *position); /* add commas to the numbers in a position * returns pointer to static */ +boolean parsePosition(char *position, char **retChrom, uint *retStart, uint *retEnd); +/* If position is word:number-number (possibly with commas & whitespace), + * set retChrom, retStart (subtracting 1) and retEnd, and return TRUE. + * Otherwise return FALSE and leave rets unchanged. */ + struct grp* hLoadGrps(char *db); /* load the grp tables using the list configured in hg.conf, returning a list * sorted by priority. */ int hGetMinIndexLength(char *db); /* get the minimum index size for the given database that won't smoosh * together chromNames such that any group of smooshed entries has a * cumulative size greater than the the largest chromosome. Allow one * exception cuz we're nice */ int chrStrippedCmp(char *chrA, char *chrB); /* compare chrom names after stripping chr, Scaffold_ or ps_ prefix */ int chrNameCmp(char *str1, char *str2);