This function is a wrapping of several functions called in through the steps to estimate differentially methylated regions (DMGs).
getDMGs(dmps, regions, ...)
# S4 method for pDMP,GRanges
getDMGs(
dmps,
regions,
chr = NULL,
colData,
gene_id_col = NULL,
gene_name_col = NULL,
by.coord = FALSE,
ignore.strand = TRUE,
type = "within",
only.hypo = FALSE,
only.hyper = FALSE,
num.cores = 1L,
countFilter = TRUE,
CountPerBp = NULL,
minCountPerIndv = 3,
maxGrpCV = NULL,
FilterLog2FC = TRUE,
pAdjustMethod = "BH",
pvalCutOff = 0.05,
MVrate = 0.98,
Minlog2FC = 0.5,
test = c("Wald", "LRT"),
scaling = 1L,
tasks = 0L,
saveAll = FALSE,
verbose = TRUE
)
An object from pDMP or InfDiv class, which are
generated by functions: getPotentialDIMP
and
estimateDivergence
, respectively.
A GRanges object with gene coordinates and gene IDs. A column named 'gene_id' carrying the gene ids should be included in the metacolumns. If the meta-column named 'gene_id' is not provided, then gene (region) ids will be created using the gene (region) coordinates.
Optional. A character string denoting the chromosome from
the regions (i.e., the seqnames
) where
the DMGs will be estimated.
The same as in glmDataSet
. A data frame with
one column named 'condition', which must be a factor with exactly two
levels. The rownames of colData individual samples. The row names of
colData must correspond to the column names of the count matrix.
Optional. An integer denoting the column from the GENES metacolumn where the gene ids are given.
Optional. An integer denoting the column from the GENES metacolumn where the gene 'name' are given.
logical(1). If TRUE, then the DMP are count per coordinate and not per gene id.
Same as for
findOverlaps-methods
.
logical(1). Whether to select only hypo-methylated or hyper-methylated cytosine sites.
The same
as in function countTest2
.
The same
as in function countTest2
.
The same
as in function countTest2
.
countTest2
, getDIMPatGenes
,
and glmDataSet
.