Description Usage Arguments Value Author(s) See Also Examples
This function verifies whether a set of pottential DMRs (e.g. genes, transposons, CpG islands) are differentially methylated or not.
1 2 3 | filterDMRs(methylationData1, methylationData2, potentialDMRs, context = "CG",
test = "fisher", pValueThreshold = 0.01, minCytosinesCount = 4,
minProportionDifference = 0.4, minReadsPerCytosine = 3, cores = 1)
|
methylationData1 |
the methylation data in condition 1
(see |
methylationData2 |
the methylation data in condition 2
(see |
potentialDMRs |
a |
context |
the context in which the DMRs are computed ( |
test |
the statistical test used to call DMRs ( |
pValueThreshold |
DMRs with p-values (when performing the statistical
test; see |
minCytosinesCount |
DMRs with less cytosines in the specified context
than |
minProportionDifference |
DMRs where the difference in methylation
proportion between the two conditions is lower than
|
minReadsPerCytosine |
DMRs with the average number of reads lower than
|
cores |
the number of cores used to compute the DMRs. |
a GRanges
object with 11 metadata columns that contain
the DMRs; see computeDMRs
.
Nicolae Radu Zabet
DMRsNoiseFilterCG
, computeDMRs
,
analyseReadsInsideRegionsForCondition
and mergeDMRsIteratively
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # load the methylation data
data(methylationDataList)
# load the gene annotation data
data(GEs)
#select the genes
genes <- GEs[which(GEs$type == "gene")]
# the regions where to compute the DMRs
regions <- GRanges(seqnames = Rle("Chr3"), ranges = IRanges(1,1E5))
genes <- genes[overlapsAny(genes, regions)]
# filter genes that are differntially methylated in the two conditions
DMRsGenesCG <- filterDMRs(methylationDataList[["WT"]],
methylationDataList[["met1-3"]], potentialDMRs = genes,
context = "CG", test = "score", pValueThreshold = 0.01,
minCytosinesCount = 4, minProportionDifference = 0.4,
minReadsPerCytosine = 3, cores = 1)
|
Loading required package: GenomicRanges
Loading required package: stats4
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: ‘BiocGenerics’
The following objects are masked from ‘package:parallel’:
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from ‘package:stats’:
IQR, mad, sd, var, xtabs
The following objects are masked from ‘package:base’:
anyDuplicated, append, as.data.frame, basename, cbind, colnames,
dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep,
grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which.max, which.min
Loading required package: S4Vectors
Attaching package: ‘S4Vectors’
The following object is masked from ‘package:base’:
expand.grid
Loading required package: IRanges
Loading required package: GenomeInfoDb
Parameters checking ...
Extract methylation in the corresponding context
Computing DMRs at Chr3:101..999999
Selecting data...
Identifying DMRs...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.