Skip to content

SimpleGeneModelProps

Defined in: packages/components/src/components/GeneModel/types.ts:8

Property Type Default value Description
gene Annotation undefined The gene, with its transcripts and their exons/CDSs nested under children.
width? number 500 Width in pixels.
colorSeed? string "42" Seeds the gene’s colours.
showScale? boolean true Show a genomic-position ruler.
exonPopoverFn? (interval) => ReactNode every GFF3 field Popover content for a clicked exon/CDS.
viewport? Viewport the gene plus 10% padding either side The visible genomic window.
onViewportChange? (next) => void undefined Called with the next window on every pan/zoom.