Error at cemitool function to get expression data/CEMiTool
1
0
Entering edit mode
3.7 years ago
Microuser • 0

Hi,

I have prepared a .txt file of RMA-normalized microarray dataset with samples in the columns and gene IDs in the rows (30 samples and 7000 genes totally). Entering this code, generates an error as follows and I don't know why???

cem <- cemitool(my_file)
**Error in matrixStats::rowVars(expr, na.rm = TRUE) : 
  Argument 'x' must be of type logical, integer or numeric, not 'character'.**

Thanks for your help in advance.

cemitool • 1.4k views
ADD COMMENT
0
Entering edit mode
3.7 years ago
pedrostrusso ▴ 50

Hi @Microuser,

Please note that my_file must be a data.frame, not a file name. In case it is, it's hard to say just from the error message, but it seems your expression data is being interpreted as character. Try running this before the cemitool function:

my_file <- my_file %>% mutate_all(as.numeric)
ADD COMMENT

Login before adding your answer.

Traffic: 1768 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6