meichendong / SCDC

SCDC
42 stars 9 forks source link

Error in round(c(p_t, p_p, pcor.list), 2): non-numeric argument to mathematical function #15

Open zhuy16 opened 4 years ago

zhuy16 commented 4 years ago

Thank you for this vignette, this issue is towards the end of the SCDC.rmd file.

getENSplot(enstable = ens_subcl_perou10x$w_table, combo=combo.10x, subject = "FVB3", subcat = c("Spearman_Y","LAD")) ​ Error in round(c(p_t, p_p, pcor.list), 2): non-numeric argument to mathematical function Traceback:

  1. getENSplot(enstable = ens_subcl_perou10x$w_table, combo = combo.10x, . subject = "FVB3", subcat = c("Spearman_Y", "LAD"))
  2. data.frame(label = c("", paste("R=", round(c(p_t, p_p, pcor.list), . 2), sep = "")), Var1 = as.factor(c("Seurat", "Tabula Muris", . "Perou", paste("ENSEMBLE:", names(pcor.list)))), value = rep(0.9, . length(pcor.list) + 3), Var2 = rep("endothelial", length(pcor.list) + . 3)) # at line 44-48 of file
  3. paste("R=", round(c(p_t, p_p, pcor.list), 2), sep = "") # at line 44-48 of file