eweitz / ideogram

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

Enable highlighting one or more chromosomes #228

Closed eweitz closed 4 years ago

eweitz commented 4 years ago

This adds support for highlighting one or more chromosomes. This can visually emphasize a single chromosome (e.g. MT) or distinguish sets of chromosomes. The former use case derives from #224, which motivated this new functionality.

The new highlight method takes a list of chromosome names and an optional color. The corresponding unhighlight method takes an optional list of chromosomes. Two new examples -- "Highlights, basic" and "Highlights, groups" -- showcase the enhancement with reusable code.

highlights_basic_example_ideogram highlights_groups_example_ideogram