Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including protvista-sequence with all npm packages installed. Try it out:

require("d3/package.json"); // d3 is a peer dependency. var protvistaSequence = require("protvista-sequence")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

protvista-sequence v2.18.0

Sequence component for the ProtVista tool

protvista-sequence

Published on NPM

This custom element displays the sequence in the selected region if the zoom level allows it, otherwise it displays the axis legend of the selected region. As it inherits from , it supports highlighting.

Demo

Usage

Setting sequence through property

<protvista-sequence length="456" />
const protvistaSequence = document.querySelectAll('#my-protvista-sequence-id');
protvistaSequence.sequence = proteinSequence;

Setting sequence through attribute

<protvista-sequence length="456" sequence="RFQAEGSLKK..." />

API Reference

Properties

sequence: string

The sequence to display

length: number

The protein or nucleic acid sequence length.

also see protvista-zoomable

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free