Description Usage Arguments Value Author(s) See Also Examples
View source: R/methylInheritanceMethods.R
Run a differential methylation analysis on each generation present in a dataset. The number of conserved differentially methylated elements (sites, tile or both) between generations is them calculated. The methylKit package is used to identify the differentially methylated elements.
The multi-generational dataset or the name of the RDS file that contains the dataset can be used as input.
The results can also be saved in RDS file (optional).
1 2 3 4 5 6 | runObservation(methylKitData, type = c("both", "sites", "tiles"),
outputDir = "output", nbrCoresDiffMeth = 1, minReads = 10,
minMethDiff = 10, qvalue = 0.01, maxPercReads = 99.9,
destrand = FALSE, minCovBasesForTiles = 0, tileSize = 1000,
stepSize = 1000, vSeed = -1, restartCalculation = FALSE,
saveInfoByGeneration = FALSE)
|
methylKitData |
a |
type |
One of the "sites","tiles" or "both" strings. Specifies the type of differentially methylated elements should be returned. For retrieving differentially methylated bases type="sites"; for differentially methylated regions type="tiles". Default: "both". |
outputDir |
a string, the name of the directory that will contain
the results of the analysis. If the directory does not
exist, it will be created. Default: |
nbrCoresDiffMeth |
a positive |
minReads |
a positive |
minMethDiff |
a positive |
qvalue |
a positive |
maxPercReads |
a |
destrand |
a |
minCovBasesForTiles |
a non-negative |
tileSize |
a positive |
stepSize |
a positive |
vSeed |
a |
restartCalculation |
a |
saveInfoByGeneration |
a |
0
.
Astrid Deschenes, Pascal Belleau
mergePermutationAndObservation
for detail
description, in the Value section, of the OBSERVATION
section of the
methylInheritanceAllResults
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Load methylation information
data(samplesForTransgenerationalAnalysis)
## Run an observation analysis
runObservation(methylKitData = samplesForTransgenerationalAnalysis,
outputDir = "test", type = "sites", vSeed = 221)
## Load the results
results <- loadAllRDSResults(analysisResultsDir = "test",
permutationResultsDir = NULL, doingSites = TRUE, doingTiles = FALSE)
## Print the results
results
## Remove directory
if (dir.exists("test")) {
unlink("test", recursive = TRUE, force = FALSE)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.