FPetitprez / webMCP-counter

Shiny app to run MCP-counter and mMCP-counter
GNU General Public License v3.0
2 stars 2 forks source link

Clustering error with NA values #2

Closed maximemeylan closed 4 years ago

maximemeylan commented 4 years ago

MCP counter estimates of 0 for all sample will throw an error See below:

Warning in mMCPcounter.estimate(gep) : Warning: Error in hclust: NA/NaN/Inf in foreign function call (arg 11)

issue comes from line 265 est.norm <- t(apply(t(estimates$est),1,scale)) scale applied on rows of zeroes

FPetitprez commented 4 years ago

File for replication AD_norm.txt

FPetitprez commented 4 years ago

Issue resolved. Populations with sd=0 are now set to 0 after scale(). No Dunn test is called for these populations.