Hi! Everyone, I have a problem when running the WGCNA code in R. The TOM matrix yielded by the function "TOMsimilarityFromExpr " is filled with NA value. Why did this happen?? I would appretiate it if there is anyone could help me with this! Thank you!! 🙏 the code and results are as follows:
> dissTOM = 1-TOMsimilarityFromExpr(datExpr, power = 8);
> dissTOM[1:6,1:6]
[,1] [,2] [,3] [,4] [,5] [,6]
[1,] 0 NA NA NA NA NA
[2,] NA 0 NA NA NA NA
[3,] NA NA 0 NA NA NA
[4,] NA NA NA 0 NA NA
[5,] NA NA NA NA 0 NA
[6,] NA NA NA NA NA 0
> TOM = TOMsimilarityFromExpr(datExpr, power = 8)
> TOM[1:6,1:6]
[,1] [,2] [,3] [,4] [,5] [,6]
[1,] 1 NA NA NA NA NA
[2,] NA 1 NA NA NA NA
[3,] NA NA 1 NA NA NA
[4,] NA NA NA 1 NA NA
[5,] NA NA NA NA 1 NA
[6,] NA NA NA NA NA 1
what is the output of
dim(datExpr)
?does this happen also with the functions
adjacency
?Without the datxExpr is difficult to understand what is going on. Would you mind to share the matrix? You can change the name of samples
Hello! I just tried the function "adjacency". And it seems that it takes a much longer time than it did without adjacency(like hours). Still not so sure if it's gonna work.
The datExpr file is included in the link, thank you for your time and attention.
https://github.com/Datapioneer/QUESTION/tree/main
thanks for the file.
TOMsimilarityFromExpr
doesn't use the adjacency matrix as input. UseTOMsimilarity