Description Usage Arguments Value Author(s) Examples
This function computes the differentially methylated regions between replicates with two conditions.
1 2 3 4 5 6 | computeDMRsReplicates(methylationData, condition = NULL, regions = NULL,
context = "CG", method = "neighbourhood", binSize = 100,
test = "betareg", pseudocountM = 1, pseudocountN = 2,
pValueThreshold = 0.01, minCytosinesCount = 4,
minProportionDifference = 0.4, minGap = 200, minSize = 50,
minReadsPerCytosine = 4, cores = 1)
|
methylationData |
the methylation data containing all the conditions for all the replicates. |
condition |
a vector of strings indicating the conditions for each
sample in |
regions |
a |
context |
the context in which the DMRs are computed ( |
method |
the method used to compute the DMRs |
binSize |
the size of the tiling bins in nucleotides. This parameter is
required only if the selected method is |
test |
the statistical test used to call DMRs ( |
pseudocountM |
numerical value to be added to the methylated reads before modelling beta regression. |
pseudocountN |
numerical value to be added to the total reads before modelling beta regression. |
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
|
minGap |
DMRs separated by a gap of at least |
minSize |
DMRs with a size smaller than |
minReadsPerCytosine |
DMRs with the average number of reads lower than
|
cores |
the number of cores used to compute the DMRs. |
the DMRs stored as a GRanges
object with the following
metadata columns:
a number indicating whether the region lost (-1) or gain (+1) methylation in condition 2 compared to condition 1.
the context in which the DMRs was computed ("CG"
,
"CHG"
or "CHH"
).
the number of methylated reads in condition 1.
the total number of reads in condition 1.
the proportion methylated reads in condition 1.
the number of methylated reads in condition 2.
the total number reads in condition 2.
the proportion methylated reads in condition 2.
the number of cytosines in the DMR.
a string indicating whether the region lost ("loss"
)
or gained ("gain"
) methylation in condition 2 compared to condition 1.
the p-value (adjusted to control the false discovery rate with the Benjamini and Hochberg's method) of the statistical test when the DMR was called.
Alessandro Pio Greco and Nicolae Radu Zabet
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ## Not run:
# starting with data joined using joinReplicates
data("syntheticDataReplicates")
# compute the DMRs in CG context with neighbourhood method
# creating condition vector
condition <- c("a", "a", "b", "b")
# computing DMRs using the neighbourhood method
DMRsReplicatesNeighbourhood <- computeDMRsReplicates(methylationData = methylationData,
condition = condition,
regions = NULL,
context = "CHH",
method = "neighbourhood",
test = "betareg",
pseudocountM = 1,
pseudocountN = 2,
pValueThreshold = 0.01,
minCytosinesCount = 4,
minProportionDifference = 0.4,
minGap = 200,
minSize = 50,
minReadsPerCytosine = 4,
cores = 1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.