This is a test version of Biostars. For the public version, visit https://www.biostars.org.
goodSamplesGenesMS non-numeric variable in data frame multiExpr

Running gsg = goodSamplesGenesMS(multiExpr, verbose = 3);

I'm getting the following error

Flagging genes and samples with too many missing values... ..step 1 Error in Math.data.frame(multiExpr[[set]]$data) : non-numeric variable in data frame: ENSTGUG00000005746 (ZFAND2B)ENSTGUG00000004410 (IARS)ENSTGUG00000016936ENSTGUG00000011054ENSTGUG00000004309ENSTGUG00000017737 (SNORA14)ENSTGUG00000016937

Would anyone have a guess on how to fix it?

wgcna

1 answer

I guess (it would be better if you provide information about your multiExpr) that you have characters instead of numbers in one of the matrices. Check that with sapply(multiExpr, function(x){all(sapply(x$data, is.numeric))})

Log in to answer this question.