eweitz / ideogram

Chromosome visualization for the web
https://eweitz.github.io/ideogram
Other
288 stars 72 forks source link

Tooltip modification for user-defined string or hyperlink #237

Closed cmixon closed 3 years ago

cmixon commented 3 years ago

The current tooltip visible in annotations-external-data.html shows gene name (with link to NCBI) and chromosome coordinates.

Could it be modified to also show a user-defined string or a link to another URL or a local file with additional information?

This modification would be useful to display technical information about the gene, such as clinical test names (user-defined string) and data sheets (link to local file or vendor's website).

eweitz commented 3 years ago

Hi @cmixon, excellent use case. This is done in the "Related genes" example via annotDescriptions in a tailored kit module. If you hover over a purple annotation there, you'll see links to associated interaction pathways -- i.e. data beyond the annotation name and coordinates.

Given your interest in reusing that functionality, I'll generalize it in the next two weeks or so, and integrate something like annotDescriptions into another live example. I will post updates here.

eweitz commented 3 years ago

I just updated Annotations, external data with an example showing how to modify tooltips to contain user-defined strings and links. See PR #254 for a screenshot, and specific changes needed.

Apologies for the delay on that, @cmixon. Let me know if more would help!