Hi Stephen,
I don't think you require a trix file in your case as you are just
trying to make the name and name2 fields searchable. For that you can
just build the bigBed the way you did, add the searchIndex trackDb
setting as you did, and then add this stanza to the trackDb file, as a
separate stanza from what you have now:
searchName geneannotation
searchTable geneannotation
searchType bigBed
searchDescription Gene Annotation
termRegex ... # optional regular expression if all of the fields can
match a particular expression, otherwise you don't need this line at
all
This is understandably very confusing because all of our documentation
for making bigBeds searchable assumes a track hub is being built, but
since you are adding tracks directly to the database you don't need
that. I am unclear on if you need one stanza per field of the bigBed
that you have indexed, perhaps try starting with just one and see what
happens.
You could use a trix file in addition to what you have if you wanted
some text other than what's in the bigBed to be searchable. For that,
you did everything correctly, you just again would need a search
stanza like I wrote above. In general, for native tracks, you need a
search stanza so the settings get into the hgFindSpec table, and then
if the native track is a bigBed, you also need to have built the
bigBed index when running bedToBigBed (you did this already) AND you
need to have the searchIndex trackDb setting in the bigBeds trackDb
stanza. Native tracks are just a different beast than track hubs. For
more examples of search stanzas you can look through the various
trackDb.ra files for "searchName" or "searchTable" settings:
https://github.com/ucscGenomeBrowser/kent/tree/master/src/hg/makeDb/trackDb
Let us know if you have any further questions,
Christopher Lee
UCSC Genomics Institute
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "UCSC Genome Browser Mirror-Specific Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
genome-mirro...@soe.ucsc.edu.
> To view this discussion on the web visit
https://groups.google.com/a/soe.ucsc.edu/d/msgid/genome-mirror/CANfqxbiJ5DW5RRSNY-gShhkZvFYk9fWfukHWaL_4Y3dgusZuAw%40mail.gmail.com.