Neanderthals Programming Machines
    Wondering what’s next for npm?Check out our public roadmap! »

    protvista-sequence

    3.0.0 • Public • Published

    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

    Install

    npm i protvista-sequence

    DownloadsWeekly Downloads

    171

    Version

    3.0.0

    License

    ISC

    Unpacked Size

    41.2 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar