YinLiLin / CMplot

📊 Circular and Rectangular Manhattan Plot
502 stars 111 forks source link

methylation and demethylation manhattan points #63

Open LandiMi2 opened 2 years ago

LandiMi2 commented 2 years ago

Hey, @YinLiLin Awesome package with colourful plots!

I am using this package to plot differential methylation. I have points that are hypermethylated (positive values) and de-methylated (negative values) as seen below. I have drawn a manhattan plot with these and now I was to highlight significant points separate colours, say green from + and red for - to see how they are distributed in the chromosomes

meth.site  chr    start    pvalue   meth.diff
  1:         1 Chr1      161 0.7348564   4.6153846
  2:         2 Chr1      310 0.9769043   0.4444444
  3:         3 Chr1      311 0.9322884  -1.8633540
  4:         4 Chr1      500 0.4369119  -9.6774194 

is this possible with this package?

YinLiLin commented 2 years ago

Thank you for using CMplot. may i know whether you plan to plot those two differential methylations in one axis or separated axis?

LandiMi2 commented 2 years ago

@YinLiLin on the one axis

LandiMi2 commented 2 years ago

@YinLiLin or even what flag should I use to have separate axis top and bottom

YinLiLin commented 2 years ago

you can try "CMplot(,..., multracks=TRUE)", but at this case, please remember to adjust 'pvalue' to 'meth.diff' scale by "-log10()" function prior to plotting.