ebi-webcomponents / nightingale

Data visualisation web components for the life sciences.
https://ebi-webcomponents.github.io/nightingale
MIT License
121 stars 38 forks source link

Can this function be used on DNA sequences #298

Open liuyongming0612 opened 2 months ago

liuyongming0612 commented 2 months ago

Great work, thanks for your contribution.

Can this function be used on DNA sequences? Visualizing a specific region of the genome also requires these functions.

gustavo-salazar commented 2 months ago

Hey there, Technically it is possible to use nightingale componets with DNA sequences, the components are agnostic if the sequence or features belong to a protein, DNA or RNA. However, the challenges to represent DNA are different than proteins. As with DNA the length of the sequence is likely way longer when trying to display chromosomes or genomes, and therefor the amount of features can be much bigger. Most of the components here are developed using SVG, and if the number of features is too big(e.g. displaying features for a full chromosome) the performance in the browser is affected and things like zooming and panning will be frustratingly slow.

But if your case is a gene with a few features to display, Nightingale component should be able to handle that scenario