View source: R/Get_and_Filter_Regions.R
plotRegionTotals | R Documentation |
plotRegionTotals()
plots the total number of regions, width, and total
number of CpGs remaining after filtering by different combinations of
covMin
and methSD
in a line plot and then saves it as a .pdf.
plotRegionTotals(
regionTotals,
nBreaks = 4,
legend.position = c(1.08, 0.897),
save = TRUE,
file = "Region_Totals.pdf",
width = 11,
height = 11,
verbose = TRUE
)
regionTotals |
A |
nBreaks |
A |
legend.position |
A |
save |
A |
file |
A |
width |
A |
height |
A |
verbose |
A |
plotRegionTotals()
is designed to be used in combination with
getRegionTotals()
. A ggplot
object is produced and can be edited
outside of this function if desired.
A ggplot
object.
getRegions()
to generate the set of regions.
plotRegionStats()
, plotSDstats()
, and getRegionTotals()
for more help visualizing region characteristics and setting
cutoffs for filtering.
filterRegions()
for filtering regions by minimum coverage and
methylation standard deviation.
## Not run:
# Call Regions
regions <- getRegions(bs, file = "Unfiltered_Regions.txt")
plotRegionStats(regions, maxQuantile = 0.99,
file = "Unfiltered_Region_Plots.pdf")
plotSDstats(regions, maxQuantile = 0.99,
file = "Unfiltered_SD_Plots.pdf")
# Examine Region Totals at Different Cutoffs
regionTotals <- getRegionTotals(regions, file = "Region_Totals.txt")
plotRegionTotals(regionTotals, file = "Region_Totals.pdf")
# Filter Regions
regions <- filterRegions(regions, covMin = 10, methSD = 0.05,
file = "Filtered_Regions.txt")
plotRegionStats(regions, maxQuantile = 0.99,
file = "Filtered_Region_Plots.pdf")
plotSDstats(regions, maxQuantile = 0.99,
file = "Filtered_SD_Plots.pdf")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.