TrixTextSearchAdapter
Auto-generated from the config schema in the source — see the config guide for concepts. Provided by the trix plugin. View source.
Looks up search-box terms in a Trix index (.ix and .ixx) built by
jbrowse text-index.
Example usage
jbrowse text-index writes this entry into aggregateTextSearchAdapters for
you. The uri shorthand points at the .ix and the sibling .ixx is derived
from it, so the pair only needs spelling out when they are named against
convention. Written by hand, the string 'trix/hg38.ix' is the whole entry,
the same as { uri: 'trix/hg38.ix' }: a .ix implies this type, and
assemblyNames defaults to the track's own for a per-track index or to the
config's one assembly.
{
type: 'TrixTextSearchAdapter',
uri: 'trix/hg38.ix',
assemblyNames: ['hg38'],
}Config slots
TrixTextSearchAdapter has no uri shorthand — give it the location slots below. Slot types (fileLocation, frozen, ...) are explained in the config slot types reference. Slots a base configuration contributes are listed here too, so this table is the whole surface.
| Slot | Description |
|---|---|
ixFilePathfileLocation = { uri: 'out.ix', locationType: 'UriLocation' } | location of the Trix .ix index written by jbrowse text-index: the sorted term-to-feature table the search box reads. |
ixxFilePathfileLocation = { uri: 'out.ixx', locationType: 'UriLocation' } | location of the .ixx prefix index, which records where in the .ix each prefix begins, so a lookup takes a couple of range requests instead of a download of the whole index. |
assemblyNamesstringArray = [] | List of assemblies covered by text search adapter |
Related links
- Config guide: Supported file types
- Config guide: Text searching
- Developer guide: Text search adapters