plotCpGtotals | R Documentation |
plotCpGtotals()
plots the number of CpGs remaining after filtering by
different combinations of cov
and perSample
in a line plot and
then saves it as a pdf.
plotCpGtotals(
CpGtotals,
nBreaks = 4,
legend.position = c(1.08, 0.73),
save = TRUE,
file = "CpG_Totals.pdf",
width = 11,
height = 4.25,
verbose = TRUE
)
CpGtotals |
A |
nBreaks |
A |
legend.position |
A |
save |
A |
file |
A |
width |
A |
height |
A |
verbose |
A |
plotCpGtotals()
is designed to be used in combination with
getCpGtotals()
. A ggplot
object is produced and can be edited outside
of this function if desired.
A ggplot
object.
getCpGs()
to generate the BSseq object
from individual Bismark CpG reports.
getCpGtotals()
to generate CpGtotals
.
filterCpGs()
to filter the BSseq object.
## Not run:
# Read Bismark CpG Reports
colData <- read.xlsx("sample_info.xlsx", rowNames = TRUE)
bs <- getCpGs(colData, file = "Unfiltered_BSseq.rds")
# Examine CpG Totals at Different Cutoffs
CpGtotals <- getCpGtotals(bs, file = "CpG_Totals.txt")
plotCpGtotals(CpGtotals, file = "CpG_Totals.pdf")
# Filter BSseq Object
bs <- filterCpGs(bs, cov = 2, perSample = 0.75, file = "Filtered_BSseq.rds")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.