Closed YannLeGuen closed 3 years ago
Thanks for the feedback. Could you please give a copy of the script you ran for this issue?
I think the behavior is easy to reproduce.
You can use any file with several traits then assign a color to each SNP depending on a condition. Let's say that you randomly assign one value among red, blue, green, orange to each SNP.
Then for each trait you want to color the SNP only when it pass suggestive level. You can write:
colors <- list(
dfb$GeneC[dfb[trait1]<1e-5],
dfb$GeneC[dfb[trait2]<1e-5],
dfb$GeneC[dfb[trait3]<1e-5],
dfb$GeneC[dfb[trait4]<1e-5]
)
Assuming you dfb dataframe as a column GeneC corresponding to the color of each SNP.
Then try to assign highlight.text.col = colors in CMplot and you will get the error above.
Hi, It appears that the specifications for highlight.tex.col and highlight.col are incorrect.
These actually cannot accept a list.
Thus, the color by dot can't be specified with multracks=T, only one vector of color can be specified and this is the same for all subplots. Could you please correct this issue or point me towards the part of your code to change?