Open sofiapuvogelvittini opened 3 years ago
Hi Sofia,
So it is a bit a hacky solution, but if you go into the scWGCNA_report.Rmd file in your scWGCNA package, there are two lines (115 and 116) that are commented out:
if (is.pseudocell) {
datExpr=Wdata@assays$RNA@counts[Expr,]
# datExpr = datExpr[which(rowSums(as.matrix(datExpr))>0),]
# Expr = rownames(datExpr)
} else{datExpr=Wdata@assays$RNA@data[Expr,]}
Try removing the comments on those two lines, save the file and then run the report again. I ran into the same error as you did and this fixed it for me.
Fabio
Hello, i am super interested in using your package! I am working with a seurat object But I have error while running scWGNA.report() function
My input:
scWGNA.report(data = ps.seurat_object,sc.data = seurat_object, gene.names=gnames, project.name = "test", sp="Hs",GO=T, ask=F)
Output:
processing file: scWGCNA_report.Rmd
|... | 4% inline R code fragments
|...... | 8% label: Set up (with options) List of 3 $ message: logi FALSE $ warning: logi FALSE $ results: chr "hide"
|......... | 12% ordinary text without R code
|............ | 17% label: From above (with options) List of 3 $ message: logi FALSE $ warning: logi FALSE $ results: chr "hide"
|............... | 21% ordinary text without R code
|.................. | 25% label: pre-process the data |.................... | 29% ordinary text without R code
|....................... | 33% label: soft-thresholding power (with options) List of 2 $ echo : logi FALSE $ message: logi FALSE
|.......................... | 38% ordinary text without R code
|............................. | 42% label: WGCNA
Quitting from lines 217-405 (scWGCNA_report.Rmd)
Error in hclust(as.dist(dissTOM), method = "average"): NaN dissimilarity value. Traceback:
Could you help me please to solve it? Kind regards, Sofia