I am working on WGBS data and using MethylKit package. Methykit has its own function to make a dendogram on CpG methylation, but I need bootstraping on it. I used these codes.
file.list = list (........)
myobj = methRead (file.list, sample.id = list (..........), assembly = "hg19", treatment = c(), context = "CpG")
data<-clusterSamples(meth, dist= "correlation", method= "ward", plot=TRUE)
result <- pvclust(data, nboot=10000)
These are the usage of these arguments
1) clusterSamples(.Object, dist="correlation", method="ward",
2) pvclust(data, method.hclust="average",
nboot=1000, parallel=FALSE, r=seq(.5,1.4,by=.1),
store=FALSE, weight=FALSE, iseed=NULL, quiet=FALSE)
I have tried various ways, sometimes by putting meth directly or sometime that data object and tried it, but every time getting error something or other.
Anyone could you please help me regarding this? Any suggestion, that how can I modify my codes to have my result.