react-msaview
v8.4.1
Published
Readme
react-msaview
A React component for viewing multiple sequence alignments: a phylogenetic tree rendered alongside a protein or DNA alignment, with protein domain annotations, many color schemes, and SVG export.
Install
The viewer shares mobx, mobx-state-tree and MUI with @jbrowse/core and needs
one copy of each, so the install line pins those majors to what your
@jbrowse/core depends on. The
usage & embedding guide has
the install line.
Quick start
import { MSAViewer } from 'react-msaview'
export default function App() {
// backticks (template literal) so the \n become real newlines
return (
<MSAViewer
msa={`>human\nMKAANSE\n>mouse\nMKA-NSE`}
tree="(human:0.1,mouse:0.2);"
colorScheme="clustal"
/>
)
}MSAViewer creates the model, measures width, and applies the theme for you.
For full control, use the MSAModelF / MSAView model-based API described in
the usage & embedding guide.
Docs & links
- Usage & embedding guide: props, model API, UMD bundle, R
- Live examples: runnable snippets
- Model API reference
- Main repository
- CLI: domain and exon GFFs, plus headless SVG export
- msa-parsers: standalone parsing library
- ProteinBrowser: protein analysis suite built on this viewer
