Aggregate text searching
One trix index spanning every track.
jbrowse text-index --file genes.gff3.gz --fileId gff3tabix_genes \
--file vars.vcf.gz --fileId volvox_vars
--fileId must match the runtime trackId, and each one pairs with the
--file in the same position.
View source — 29 lines
import {
JBrowseLinearGenomeView,
useCreateViewState,
} from '@jbrowse/react-linear-genome-view2'
export default function AggregateTextSearch() {
const state = useCreateViewState({
assembly: {
name: 'volvox',
uri: 'https://jbrowse.org/genomes/volvox/volvox.2bit',
},
aggregateTextSearchAdapters: [
{
type: 'TrixTextSearchAdapter',
uri: 'https://jbrowse.org/code/jb2/main/test_data/volvox/storybook_data/volvox.ix',
assemblyNames: ['volvox'],
},
],
tracks: [
{
trackId: 'gff3tabix_genes',
name: 'Volvox genes',
uri: 'https://jbrowse.org/code/jb2/main/test_data/volvox/volvox.sort.gff3.gz',
},
],
location: 'ctgA:1..800',
})
return state ? <JBrowseLinearGenomeView viewState={state} /> : null
}