eweitz / ideogram

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

Enable custom colors for chromosome arms and centromeres #280

Closed eweitz closed 3 years ago

eweitz commented 3 years ago

This adds a configuration option to specify the interior fill color of arms and centromeres for chromosomes in the unbanded view. This aims to satisfy the user feature request in #278.

The new option is chrFillColor. You can customize chromosome arm color by specifying it as a string, e.g. chrFillColor: 'green'. Or you can chromosome arm and centromere colors by specifying it as object, e.g. chrFillColor: {arm: '#AEA', centromere: '#EEA '}.

Below is how the latter looks, for the human genome.

Color_chromosomes_full__Ideogram_2021-08-18