4.5.0 • Published 3 days ago

@nightingale-elements/nightingale-structure v4.5.0

Weekly downloads
-
License
-
Repository
github
Last release
3 days ago

protvista-structure

Published on NPM

A native web component wrapper around Mol*

Usage

<!-- With UniProt Accession -->
<nightingale-structure protein-accession="P06493" structure-id="4YC3" />
<!-- With a specific PDBe entry selected and the entry table being hidden -->
<nightingale-structure
  protein-accession="P06493"
  highlight="209:220"
  structure-id="4YC3"
  hide-table
/>

API Reference

Properties

protein-accession

A UniProt protein accession.

structure-id

The id of the structure to display for the provided accession. Can be a PDB ID (e.g. 1AAP) or an AlphaFoldDB ID (AF-P05067-F1).

highlight

This is a comma separated list of numerical ranges represented as a string e.g. "1-5,10-20". When available, it will highlight all the residues corresponding to the given sequence positions.

custom-download-url

Optional custom URL for downloading cif structure files. The lowercase PDB ID is appended to it, including .cif suffix.

CSS custom properties

--custom-structure-height

The optional height of the 3D structure. By default the value is set to 480px. This should be a valid CSS value for an element's height property.