Entering edit mode
5 months ago
vmpsb
•
0
I need to prepare a heatmap on top 36 genes with pheatmap
but I keep getting this error:
Error in seq.int(rx[1L], rx[2L], length.out = nb) :
'from' must be a finite number
In addition:
Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -Inf
This is my code:
top_36 <- head(results(dds, contrast = c ("strain", "mut", "wt")), n=36)
mat <- counts(dds, normalized = T)[rownames(top_36), ]
mat.z <- t(apply(mat, 1, scale))
colnames(mat.z) <- coldata$sample
df <- as.data.frame(colData(dds)[,c("hour","strain")])
pheatmap(mat.z, annotation_col = df)
Can anyone point me to the error?
Show us the output to
That answers half of what I asked you. Where's the output to the first command?
Please report
You already have the response to the first one, so there was no need to include that.