peterawe / CMScaller

GNU General Public License v3.0
26 stars 17 forks source link

Error in CMSgsa #8

Open ChoiJi-Hye opened 2 years ago

ChoiJi-Hye commented 2 years ago

Hi. I get error in CMSgsa. CMScaller works well, but CMSgsa doesn't.

My code is : COLOM <- COLOM[!duplicated(COLOM$ENTREZID),] rownames(COLOM)<-COLOM$ENTREZID COLOM<-COLOM[, -ncol(COLOM)] res<-CMScaller(emat = COLOM, RNAseq = T, FDR = 0.05) cam <- CMSgsa(emat = COLOM, class=res$prediction, RNAseq = T)

rowname is ENTREZID and all column is sample's expression value (raw count).

and Error message is : 20 samples with class or batch NA's excluded Error in round(as.verctor(x)) : non-numeric argument to mathematical function

When using str(COLOM), all variables are numeric. If there is a variable, not a numeric, I think that CMScaller should not work either. I don't know what the problem is.

Indeed, CMSgsa worked well before updating R. Considering error message, it seems not to be a version problem, is there any way to solve it?

Thanks!

ghost commented 9 months ago

I am encountering this same error...have you found a solution?