Open jessieolough opened 1 year ago
I have some issue to make a top50 with the code from MetaboAnalyst. But if you look into the code:mSet2 <- PlotHeatMap( mSetObj = mSet, imgName = "heatmap1", format = "png", dpi = 72, width = NA, dataOpt = "norm", scaleOpt = "row", smplDist = "euclidean", clstDist = "ward.D", palette = "bwm", font.size = 8, viewOpt ="tanova", rowV =30, colV = T, var.inx = T, border = T, grp.ave = F, show.legend = T, show.annot.legend = T, includeRowNames = T ), we probably need to correctly set the parameters (viewOpt and rowV) up with "tanova", 30, "overview".
Hi lumin2003, thanks for your response! I will give that a try :)
Hi,
I am trying to use the MetaboAnalystR package functions within an R Markdown file to easily create metabolomics reports using the code provided by MetaboAnalyst when you use the website for initial analyses. I have been able to make a heatmap where all the compounds are present. However: when I use the code provided to make a heatmap showing only the top 30 most significant compounds I get an
"Error in hclust(d, method = method) : must have n >= 2 objects to cluster"
message when I use thePlotSubHeatMap
function. This is despite me being able to get the desired output when using the MetaboAnalyst website. Here is a shortened version of my code:Any help would be much appreciated. Many thanks!