I have given the following codes. Can anyone help me solving this problem please?
> sampleTree = flashClust(dist(datExpr0), method = "average");
> sizeGrWindow(12,9)
> par(cex = 0.6);
> par(mar = c(0,4,2,0))
> plot(sampleTree, main = "Sample clustering to detect outliers", sub="", xlab="", cex.lab = 1.5,
+ cex.axis = 1.5, cex.main = 2)
> clust = cutreeStatic(sampleTree, cutHeight = 40, minSize = 35)
> table(clust)
clust
0
14
> keepSamples = (clust==1)
> datExpr = datExpr0[keepSamples, ]
> nGenes = ncol(datExpr)
> nSamples = nrow(datExpr)
> powers = c(c(1:10), seq(from = 12, to=20, by=2))
> sft = pickSoftThreshold(datExpr, powerVector = powers, verbose = 5)
pickSoftThreshold: will use block size 2205.
pickSoftThreshold: calculating connectivity for given powers...
..working on genes 1 through 2205 of 2205
Error in { : task 1 failed - "'x' has a zero dimension."
In addition: Warning message:
executing %dopar% sequentially: no parallel backend registered