
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@nightingale-elements/nightingale-coloured-sequence
Advanced tools
Track that colors each base by a given function. The default function is hydrophobicity
Use this component to paint a track that uses the sequence to paint a color depending on each residue.
Useful to display hydrophobicity, isoelectric points, or any feature where a color can represent a residue.
<nightingale-coloured-sequence
sequence="EXAMPLESEQUENCE"
width="800"
height="40"
length="15"
display-start="7"
display-end="13"
highlight="3:10"
scale="hydrophobicity-scale"
></nightingale-coloured-sequence>
data: stringThe sequence to use for the track. As an alternative to the sequence attribute inherited from nightingale-sequence
scale: stringThe scale attribute is the mapping between a residue and a numeric value.
The value of this parameter could be either one of the predifined scales, or a custom scale indicating the values.
The list of predefined scales:
The format for the custom scale is a comma separated list of pairs. Where each pair is a [KEY]:[VALUE]. For example:
A:0.5,M:-3,P:3
If a residue in the sequence is not defined in the used scale, the value used will be 0.
color-range: stringThe color range attribute allow to define the colors to use when painting the values.
The component will use this range to create a scale that can be interpolated.
The default color_range is #ffdd00:-2,#0000FF:2 indicating that a value of -2 should be painted Yellow (#ffdd00) and
a value of 2 should be blue (#0000FF). And values in between will be interpolated.
The format requires at least 2 points, and if more than 2 are given, the interpolation would be calculated in between segments.
For example, #ffdd00:-2,white:0,#0000FF:2 where white is now representing the value0.
Notice that HTML color names are also supported, as in the example above.
This component inherits from NightingaleSequence.
FAQs
Track that colors each base by a given function. The default function is hydrophobicity
The npm package @nightingale-elements/nightingale-coloured-sequence receives a total of 1 weekly downloads. As such, @nightingale-elements/nightingale-coloured-sequence popularity was classified as not popular.
We found that @nightingale-elements/nightingale-coloured-sequence demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.