4bb9e8caea515342ba98d3871da76cd4ec69916f chmalee Fri May 1 14:10:00 2026 -0700 Initial myVariants implementation: a form on hgTracks where users can enter item details in one of three ways: hgvs/item search, simple bed form, advanced bed form where additional non-bed fields can dynamically created. Allows changing the color of items, writing descriptions, and editing the items after creation. Show overlaps with hardcoded tracks when hgc page is open (not in the hgc dialog). Next commit has implementation of sharing these tracks with other users diff --git src/hg/inc/hgFind.h src/hg/inc/hgFind.h index 74817ab4a2f..bb8288ee284 100644 --- src/hg/inc/hgFind.h +++ src/hg/inc/hgFind.h @@ -95,30 +95,42 @@ * See http://varnomen.hgvs.org/ * If search term is a pseudo hgvs term like GeneName AminoAcidPosition (RUNX2 Arg155) and * matches more than one transcript, fill out the hgp with the potential matches so the user * can choose where to go, otherwise return a singlePos */ void fixSinglePos(struct hgPositions *hgp); /* Fill in posCount and if proper singlePos fields of hgp * by going through tables... */ boolean parseAndResolvePosition(char **inpPos, char *db, struct hgPositions *inpHgPos, int *relStart, int *relEnd, boolean *relativeFlag, boolean *singleBaseSpec); /* If inpPos is a valid chromosome position string for db, fill out the associated * hgPos, relative start and stop, and return TRUE. Otherwise return FALSE so our regular * search code can deal with item name */ +void fixSinglePos(struct hgPositions *hgp); +/* Fill in posCount and if proper singlePos fields of hgp + * by going through tables... */ + +boolean matchesHgvs(struct cart *cart, char *db, char *term, struct hgPositions *hgp, + boolean measureTiming); +/* Return TRUE if the search term looks like a variant encoded using the HGVS nomenclature + * See http://varnomen.hgvs.org/ + * If search term is a pseudo hgvs term like GeneName AminoAcidPosition (RUNX2 Arg155) and + * matches more than one transcript, fill out the hgp with the potential matches so the user + * can choose where to go, otherwise return a singlePos */ + struct hgPositions *hgPositionsFind(char *db, char *query, char *extraCgi, char *hgAppName, struct cart *cart, boolean multiTerm, boolean measureTiming, struct searchCategory *categories); /* Return container of tracks and positions (if any) that match term. */ struct hgPositions *hgFindSearch(struct cart *cart, char **pPosition, char **retChrom, int *retStart, int *retEnd, char *hgAppName, struct dyString *dyWarn, struct searchCategory *categories); /* If *pPosition is a search term, then try to resolve it to genomic position(s). * If unable to find a unique position then revert pPosition to lastPosition (or default position). * Return a container of matching tables and positions. Warnings/errors are appended to dyWarn. */ void hgPositionsHtml(char *db, struct hgPositions *hgp, char *hgAppName, struct cart *cart); /* Write multiple search results as HTML. */ void hgPosFree(struct hgPos **pEl);