Entering edit mode
I am using the DEP package from Bioconductor for some proteomics analysis. I found a bug in the plotheatmap function: it works well when the argument plot=TRUE (default), but it does return an error when plot= FALSE. I need this information to retrieve the coordinates to get the Genenames from my different clusters. Example from the default of DEP package:
library(DEP)
data <- UbiLength
data_unique <- make_unique(data, "Gene.names", "Protein.IDs", delim = ";")
columns <- grep("LFQ.", colnames(data_unique))
exp_design <- UbiLength_ExpDesign
se <- make_se(data_unique, columns, exp_design)
filt <- filter_missval(se, thr = 0)
imputed <- impute(filt, fun = "MinProb", q = 0.01)
diff <- test_diff(imputed, "control", "Ctrl")
dep <- add_rejections(diff, alpha = 0.05, lfc = 1)
plot_heatmap(dep, 'centered', kmeans = TRUE, k = 6, row_font_size = 3, plot=TRUE) #all good until here
plot_heatmap(dep, 'centered', kmeans = TRUE, k = 6, row_font_size = 3, plot=FALSE)
The last command will return the error:
Error in rownames_to_column(., var = "protein") :
is.data.frame(df) is not TRUE
Can I do something to solve this issue?
Dear robert.arsie,
Thank you for pointing out the bug. I am working on it and will let you know once a fix is available.
Best, Arne