2.9.4 • Published 3 months ago

ncats-protvista-uniprot v2.9.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

protvista-uniprot

A Web Component which uses Nightingale components to display protein sequence information.

Image of protvista-uniprot

Usage

Importing as a module

import ProtvistaUniprot from 'protvista-uniprot';
...
window.customElements.define('protvista-uniprot', ProtvistaUniprot);

You can then use it like this:

<protvista-uniprot accession="P05067" />

Dependencies

The component relies on d3 which is set as a global variable and needs to be added to your project.

<script src="https://d3js.org/d3.v4.min.js" charset="utf-8" defer></script>

or via CDN

See here

API

  • accession: String
  • config?: Array see below
  • notooltip?: Boolean(false)
  • nostructure?: Boolean(false)

Development

Run yarn install to install dependencies and yarn start to start the local server.

Configuration

You can pass your own configuration to the component using the config attribute/property.

{
  "categories": [
    {
      "name": string,
      "label": string,
      "trackType": protvista-track|protvista-variation-graph|protvista-variation,
      "adapter": protvista-feature-adapter|protvista-structure-adapter|protvista-proteomics-adapter|protvista-variation-adapter,
      "url": string,
      "tracks": [
        {
          "name": string,
          "label": string,
          "filter": string,
          "trackType": "protvista-track|protvista-variation-graph|protvista-variation",
          "tooltip": string
        }
      ]
    }
  ]
}

Events

Custom protvista-event are emitted:

  • when at least one of the track returns data
detail: {
    hasData: true
}
2.9.4

3 months ago

2.9.2

3 months ago

2.9.1

3 months ago

2.9.3

3 months ago

2.8.50

1 year ago

2.8.41

1 year ago

2.8.40

1 year ago

2.8.45

1 year ago

2.8.44

1 year ago

2.8.43

1 year ago

2.8.42

1 year ago

2.8.49

1 year ago

2.8.48

1 year ago

2.8.47

1 year ago

2.8.46

1 year ago

2.8.39

2 years ago

2.8.34

2 years ago

2.8.38

2 years ago

2.8.37

2 years ago

2.8.36

2 years ago

2.8.35

2 years ago

2.8.32

2 years ago

2.8.31

2 years ago

2.8.30

2 years ago

2.8.29

2 years ago

2.8.28

2 years ago

2.8.27

2 years ago

2.8.26

2 years ago

2.8.25

2 years ago

2.8.24

2 years ago

2.8.23

2 years ago

2.8.22

2 years ago

2.8.21

2 years ago

2.8.20

2 years ago

2.8.19

2 years ago

2.8.18

2 years ago

2.8.17

2 years ago

2.8.14

2 years ago

2.8.13

2 years ago

2.8.12

2 years ago

2.8.11

2 years ago

2.8.10

2 years ago

2.8.9

2 years ago

2.8.8

2 years ago

2.8.7

2 years ago

2.8.6

2 years ago

2.8.5

2 years ago