Searching by name
A trix index finds a gene by name.
jbrowse text-index --file genes.gff3.gz --fileId gff3tabix_genes
loc takes a name the index finds, and opens the track it was found in. Each
--fileId must match the runtime trackId. An index for one track goes on that
track instead, as textSearching: { textSearchAdapter: { uri } }.
Show source · 25 linesHide source · 25 lines
import { LinearGenomeView } from '@jbrowse/react-linear-genome-view2'
export default function SearchByName() {
return (
<LinearGenomeView
assembly={{
name: 'volvox',
uri: 'https://jbrowse.org/genomes/volvox/volvox.2bit',
}}
aggregateTextSearchAdapters={[
{
uri: 'https://jbrowse.org/code/jb2/main/test_data/volvox/storybook_data/volvox.ix',
},
]}
tracks={[
{
trackId: 'gff3tabix_genes',
name: 'Volvox genes',
uri: 'https://jbrowse.org/code/jb2/main/test_data/volvox/volvox.sort.gff3.gz',
},
]}
view={{ loc: 'EDEN' }}
/>
)
}