CMplot icon indicating copy to clipboard operation
CMplot copied to clipboard

methylation and demethylation manhattan points

Open LandiMi2 opened this issue 2 years ago • 4 comments

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?

LandiMi2 avatar Mar 10 '22 13:03 LandiMi2

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

YinLiLin avatar Mar 10 '22 14:03 YinLiLin

@YinLiLin on the one axis

LandiMi2 avatar Mar 10 '22 14:03 LandiMi2

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

LandiMi2 avatar Mar 10 '22 14:03 LandiMi2

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.

YinLiLin avatar Mar 12 '22 02:03 YinLiLin