Volvox structural variants
assembly, tracks and view as props.
npm install @jbrowse/react-circular-genome-view2
The props are read once, on mount; to drive the view afterwards, see
show a track. It renders on the client only, so in Next.js
load it through next/dynamic with { ssr: false }.
Show source · 24 linesHide source · 24 lines
import { CircularGenomeView } from '@jbrowse/react-circular-genome-view2'
const assembly = {
name: 'volvox',
uri: 'https://jbrowse.org/genomes/volvox/volvox.2bit',
}
const tracks = [
{
trackId: 'volvox_sv',
name: 'Volvox breakends',
uri: 'https://jbrowse.org/code/jb2/main/test_data/volvox/volvox.dup.vcf.gz',
},
]
export default function Volvox() {
return (
<CircularGenomeView
assembly={assembly}
tracks={tracks}
view={{ tracks: ['volvox_sv'] }}
/>
)
}