Reusable Vue 3 + D3 visualization components for proteomics data.
npm install vizlyThe following packages must be present in the consuming application:
npm install vue@^3.5 d3@^7.9Import components directly by name:
import { CoveragePlot, LollipopPlot, DotMatrix } from 'vizly'A helper for modification type colors is also exported:
import { defaultModificationColors } from 'vizly'<CoveragePlot
:sequence="proteinSequence"
:items="peptideList"
:modificationColors="defaultModificationColors"
:showXAxis="true"
/>| Component | Description |
|---|---|
CoveragePlot |
Peptide coverage track with optional modification markers, color scaling, and row labels |
CoveragePlotGrouped |
Coverage track with peptides grouped by overlap |
CoveragePlotLine |
Minimal coverage track rendered as lines |
DotMatrix |
Matrix of modification dots per project and sequence position |
DotPlot |
Dot plot of mutations along the sequence |
StackedDotPlot |
Stacked dot plot of modifications per position |
LollipopPlot |
Lollipop plot for positional data with zoom/pan |
LinesChart |
Line chart of biophysical properties per residue |
SequenceAxis |
Shared sequence axis with zoom/pan controls |
NetworkComponent |
Force-directed protein network (Canvas-based) |
NetworkComponentD3 |
Force-directed protein network (SVG/D3-based) with residue labels and modification coloring |
All sequence-based components accept a sequence (String) prop and emit a zoomed event so multiple components can share a synchronized zoom state.
Interactive component documentation is available via Storybook:
npm run storybookTo build a static Storybook:
npm run build-storybooknpm install
npm run dev # dev server
npm run build # build library- Update
versioninpackage.json. - Run
npm run build. - Run
npm login. - Run
npm publish --access public.