View source: R/Visualize_Comethylation_Network.R
getModuleBED | R Documentation |
getModuleBED()
takes a data.frame
of regions with module
annotations, converts it to the BED file format suitable for viewing it on
the UCSC Genome Browser, and then saves it.
getModuleBED(
regions,
grey = FALSE,
save = TRUE,
file = "Modules.bed",
verbose = TRUE
)
regions |
A |
grey |
A |
save |
A |
file |
A |
verbose |
A |
getModuleBED()
is designed to be used in combination with getModules()
.
The BED file produced includes a header line to enable single-step viewing on
the UCSC Genome Browser. Each region is labeled by its RegionID
and
assigned module, and is colored by the module color. "Grey" (unassigned)
regions are excluded by default, but can be optionally included.
A BED file.
getModules()
to build a comethylation network and identify
modules of comethylated regions.
plotRegionDendro()
to visualize region similarity and module
assignments.
## Not run:
# Get Comethylation Modules
modules <- getModules(methAdj, power = sft$powerEstimate, regions = regions,
corType = "pearson", file = "Modules.rds")
# Visualize Comethylation Modules
plotRegionDendro(modules, file = "Region_Dendrograms.pdf")
BED <- getModuleBED(modules$regions, file = "Modules.bed")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.