Error in generating heatmap
1
0
Entering edit mode
nkvnambiar • 0
@nkvnambiar-23563
Last seen 18 months ago
Czechia

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.

Many thanks in advance

dep • 903 views
ADD COMMENT
0
Entering edit mode
Kevin Blighe ★ 4.0k
@kevin
Last seen 18 days 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)))
ADD COMMENT

Login before adding your answer.

Traffic: 523 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6