JBrowse 2 · Circular Genome View examples

A picture first, then the view

A screenshot paints with the page; the engine loads near the viewport.

HG002 PacBio structural variants as chords around hg19

The poster is a screenshot of this page’s own live view, written by pnpm capture-poster. Why each part is there: a picture first, then the view.

Show source · 40 linesHide source · 40 lines
import { lazy } from 'react'

import { PosterFirst } from '@jbrowse/display-ui/embed'

const CircularGenomeView = lazy(async () => ({
  default: (await import('@jbrowse/react-circular-genome-view2'))
    .CircularGenomeView,
}))

export default function StaticFirstPaint() {
  return (
    <PosterFirst
      poster={{
        src: '/storybook/cgv/static-first-paint.png',
        width: 800,
        height: 406,
        crop: 'center',
      }}
      alt="HG002 PacBio structural variants as chords around hg19"
    >
      <CircularGenomeView
        assembly={{
          name: 'hg19',
          uri: 'https://jbrowse.org/genomes/hg19/fasta/hg19.fa.gz',
          refNameAliases: {
            uri: 'https://jbrowse.org/genomes/hg19/hg19_aliases.txt',
          },
        }}
        tracks={[
          {
            trackId: 'pacbio_sv_vcf',
            name: 'HG002 Pacbio SV (VCF)',
            uri: 'https://jbrowse.org/genomes/hg19/pacbio/hs37d5.HG002-SequelII-CCS.bnd-only.sv.vcf.gz',
          },
        ]}
        view={{ tracks: ['pacbio_sv_vcf'] }}
      />
    </PosterFirst>
  )
}