Skip to content

BlastHitDistributionProps

Defined in: packages/components/src/components/BlastHitDistribution/types.ts:62

Property Type Default value Description Inherited from
hits BlastHit[] undefined - SimpleBlastHitDistributionProps.hits
queryLength number undefined Length of the query sequence: the extent of the x-axis. SimpleBlastHitDistributionProps.queryLength
queryName? string undefined Name shown on the ruler. SimpleBlastHitDistributionProps.queryName
width? number 800 Width in pixels. SimpleBlastHitDistributionProps.width
showScale? boolean true Show a query-position ruler. SimpleBlastHitDistributionProps.showScale
metric? BlastMetric "evalue" Which field colours the hits. SimpleBlastHitDistributionProps.metric
hitPopoverFn? (hit) => ReactNode ids, coordinates and all three metrics Popover content for a clicked hit. SimpleBlastHitDistributionProps.hitPopoverFn
viewport? Viewport the whole query The visible window along the query. SimpleBlastHitDistributionProps.viewport
onViewportChange? (next) => void undefined Called with the next window on every pan/zoom. SimpleBlastHitDistributionProps.onViewportChange
selection? HitSelection none The selected hits. SimpleBlastHitDistributionProps.selection
onSelectionChange? (next) => void undefined Called with the next selection when a hit is clicked (which toggles it). SimpleBlastHitDistributionProps.onSelectionChange
defaultMetric? BlastMetric "evalue" Seeds the metric when uncontrolled. -
onMetricChange? (next) => void undefined Called when the metric selector changes. -
metricStore? StoreController<BlastMetric> undefined Keeps the metric in an external store. -
defaultViewport? Viewport undefined Seeds the visible window when uncontrolled. -
viewportStore? StoreController<Viewport> undefined Keeps the visible window in an external store. -
defaultSelection? HitSelection undefined Seeds the selection when uncontrolled. -
selectionStore? StoreController<HitSelection> undefined Keeps the selection in an external store. -