Shicheng-Guo / edmr

Automatically exported from code.google.com/p/edmr
MIT License
2 stars 1 forks source link

myDMR to BED or BEDgraph #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I just would like to know if there is a simple way to write a BDE file from 
"myDMR" object?

Regards,

Original issue reported on code.google.com by noh...@gmail.com on 5 Dec 2013 at 10:48

GoogleCodeExporter commented 9 years ago
dmr.output <- data.frame(seqnames=seqnames(mydmr),
  starts=start(mydmr)-1,
  ends=end(mydmr),
  names=c(rep(".", length(mydmr))),
  scores=c(rep(".", length(mydmr))),
  strands=strand(mydmr),
  mean.meth.diff=elementMetadata(mydmr)$mean.meth.diff,
  num.cpgs=elementMetadata(mydmr)$num.CpGs,
  num.dmcs=elementMetadata(mydmr)$num.DMCs,
  dmr.pvalue=elementMetadata(mydmr)$DMR.pvalue,
  dmr.qvalue=elementMetadata(mydmr)$DMR.qvalue)

Original comment by steich...@gmail.com on 30 May 2014 at 4:35