Hi
I am recently having the similar issue.
I have data with more NA values (when I run with min.per.group=1L) , but I checked there are no columns ONLY with NA values.
I got the same error while running PCASamples() as mentioned by Loryn, and when I run ClusterSamples(), got following error:
Error in hclust(d, HCLUST.METHODS[hclust.method]) :
NA/NaN/Inf in foreign function call (arg 10)
Below is my code:
T2T_cov5 <- methRead(as.list(CpGFiles ),
sample.id=as.list(sampleNames),
pipeline=list(fraction=FALSE, chr.col=1, start.col=2, end.col=2,
coverage.col=5, strand.col=4, freqC.col=6),
assembly="T2T",
treatment=c(1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
context="CpG",
mincov=5)
T2T_cov5.filt <- filterByCoverage(T2T_cov5, lo.count=5, lo.perc=NULL, hi.count=NULL, hi.perc=99.9)
T2T_cov5.filt.norm <- normalizeCoverage(T2T_cov5.filt)
T2T_merge = unite(T2T_cov5.filt.norm,min.per.group=1L, destrand=TRUE)
PCASamples(T2T_merge)
clusterSamples(T2T_merge, dist="correlation", method="ward.D2", plot=TRUE)