a27219ced37a549f3b69bc79f07ea99a87439ecd braney Sat Feb 20 12:49:06 2021 -0800 Give user a chance to get non-short circuit hits if there's more than one short circuit choice (otherwise just go to position). Add ability to add trixSearch path to findSpecs. Add new find spec for hg38 gencodeV36 that only has canonical genes in it. diff --git src/hg/inc/hgFind.h src/hg/inc/hgFind.h index 9ddacbd..51c8afe 100644 --- src/hg/inc/hgFind.h +++ src/hg/inc/hgFind.h @@ -28,30 +28,31 @@ void hgPositionsHtml(char *db, struct hgPositions *hgp, char *hgAppName, struct cart *cart); /* Write multiple search results as HTML. */ struct hgPositions /* A bunch of positions in genome. */ { struct hgPositions *next; /* Next in list. */ char *query; /* Query string that led to positions. */ char *database; /* Name of database. Not allocated here. */ struct hgPosTable *tableList; /* List of tables. */ int posCount; /* Number of positions in all tables. */ struct hgPos *singlePos; /* If resolves to a single position, reference to that here. */ char *extraCgi; /* Extra info to embed in CGI requests to browser. */ boolean useAlias; /* Set if an alias is used */ + boolean shortCircuited; /* Is this a result of a short circuit? */ }; struct hgPosTable /* A collection of position lists, one for each type of position. */ { struct hgPosTable *next; /* Next table in list. */ char *name; /* Name of table. Not allocated here. */ char *description; /* Table description. No allocated here */ struct hgPos *posList; /* List of positions in this table. */ void (*htmlStart)(struct hgPosTable *table, FILE *f); /* Print preamble to positions. */ void (*htmlOnePos)(struct hgPosTable *table, struct hgPos *pos, FILE *f); /* Print one position. */ void (*htmlEnd)(struct hgPosTable *table, FILE *f); /* Print end. */ }; struct hgPos