jokergoo / ComplexHeatmap

Make Complex Heatmaps
https://jokergoo.github.io/ComplexHeatmap-reference/book/
Other
1.31k stars 228 forks source link

Is it possible to have barplot annotation with different colours on different rows in OncoPrint? #1215

Open deyanyosifov opened 4 weeks ago

deyanyosifov commented 4 weeks ago

Hi, and thank you for the package. I have the following problem (wish). I have succeeded to make an OncoPrint with a bar annotation on the right side (the OncoPrint and the annotation as separate objects, then joining them in a list and plotting them together using draw()). It works fine but now I want to use different colours for the bars on different rows depending on whether the respective row depicts a mutation, chromosome gain or chromosome loss (this is what the main oncoPrint displays and I use different colours there). Whatever I tried, colour changes affect all of the bars on all rows. How can I define different colours for different rows if it is at all possible?