rnb.RnBSet.to.bedGraph {RnBeads} | R Documentation |
Exports the methylation data of an RnBSet
object to *.bedGraph
files.
rnb.RnBSet.to.bedGraph(rnb.set, out.dir = ".", reg.type = "sites", parameters = character(), digits = NULL)
rnb.set |
Dataset as an instance of class |
out.dir |
One-element |
reg.type |
Site or region type to be exported. |
parameters |
Named |
digits |
Optionally, number of significant digits after the decimal point to round methylation values to. If
specified, this parameter must be an |
The description of the BedGraph track format can be found here.
Each methylation site is an entry in the resulting bedGraph file. The Score column corresponds to a site's
methylation value in the interval [0,1]
.
(invisibly) a summary list containing information on the conversion step.
elements are filenames
(a table containing information on which sample has been written to what filename)
and assembly
(a string indicating the assembly used by rnb.set
).
Fabian Mueller
library(RnBeads.hg19) data(small.example.object) logger.start(fname=NA) rnb.RnBSet.to.bedGraph(rnb.set.example,tempdir())