| estimateTransDist {methimpute} | R Documentation |
transDist parameterObtain an estimate for the transDist parameter (used in function callMethylation) by fitting an exponential function to the supplied correlations (from distanceCorrelation).
estimateTransDist(distcor, skip = 2, plot.parameters = TRUE)
distcor |
The output produced by |
skip |
Skip the first n cytosines for the fitting. This can be necessary to avoid periodicity artifacts due to the context definition. |
plot.parameters |
Whether to plot fitted parameters on to the plot or not. |
A list() with fitted transDist parameters and the corresponding ggplot.
## Get some toy data
file <- system.file("data","arabidopsis_toydata.RData",
package="methimpute")
data <- get(load(file))
distcor <- distanceCorrelation(data)
fit <- estimateTransDist(distcor)
print(fit)