This custom element displays a matrix of amino-acid changes at a given position on the protein sequence. The advantage of a matrix-based approach is that even with a large number of variants (every single amino-acid change per location) the space taken by the visualisation on the screen doesn't change.
<protvista-variation length="270"></protvista-variation>
const track = document.querySelector('#my-track-id');
track.data = myDataObject
<protvista-variation length="770">
<protvista-variation-adapter>
<data-loader>
<source src="https://www.ebi.ac.uk/proteins/api/variation/P05067" />
</data-loader>
</protvista-variation-adapter>
</protvista-variation>
{
sequence: string,
variants: [{
accession: String,
start: Number,
end: Number,
color?: String,
tooltipContent?: String
}]
}
The height of the visualisation (in px).