Error in generating heatmap
1
0
Entering edit mode
nkvnambiar • 0
@nkvnambiar-23563
Last seen 2.9 years ago

Hello, I am currently running "dep" package for my mass spectrometry data. Now I have the issue with generating heatmap

plot_heatmap(dep, type = "centered", kmeans = TRUE,
+              k = 6, col_limit = 4, show_row_names = FALSE,
+              indicate = c("condition", "replicate"),plot=TRUE)
Error in names(cols) <- var :
'names' attribute [7] must be the same length as the vector [2]


I have used the same data for generating pca plot and correlation plot, both were generated without any error. It would be a great help, if someone could point out me my mistake.

dep • 424 views
0
Entering edit mode
@kevin
Last seen 5 hours ago
Republic of Ireland

There's likely some inconsistency in your SummarizedExperiment input object, dep.

What is the output of the following:

require(SummarizedExperiment)

dep

all(rownames(assay(dep)) == names(dep))

all(colnames(dep) == rownames(colData(dep)))