junjunlab / JunJunZai

A Package to Visualize Homer Output Results
Other
6 stars 0 forks source link

Color in heatmap #2

Closed Rong-ao closed 6 months ago

Rong-ao commented 6 months ago

Hi JunJun! In output heatmap of your package, I found the color of "bgPer" and "tgPer" bars are randomly chosen. What are the meaning of these 2 values? And how should I do if I want to keep these color consistant (not randomly changed) at each time I draw the plot?

junjunlab commented 6 months ago

tgPer means percentage of Targets Sequences with Motif, bgPer means percentage of Background Sequences with Motif. You can use set.seed() function before plotting heatmap to keep the color consistant.

Rong-ao commented 6 months ago

Thanks! It helped me a lot! :)