This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Issue in import files in Metaboanalyst

Hi,

I'm trying to use metaboanalyst package, but I'm encountering a problem in the data file loading. I have a csv file with samples in rows and predictors in column. When I use the Read.TextData I get the Error: $ operator is invalid for atomic vectors. How can I solve the issue? Thank you

mSet<-InitDataObjects("conc", "roc", FALSE)
"load data file (samples in rows, predictors in columns, second column = disease phenotype)"
mSet<-Read.TextData(mSet, File.csv, "rowu", "disc")
Error: $ operator is invalid for atomic vectors
metaboanalyst r

Thank you. I've check it and it seems correctly formatted. I've also created a very small csv table from scratch just to check, but I've got the same problem. Could it be due to some dependencies?

I'll also try with one of the file downloaded from the site.

Thank you

If you can share your small .csv table example, we would be happy to help you

I have no error after downloading your file and running your code, maybe you need to update your package ?

Yeah, I think so, but I don't know what I must update. I've installed R and the package on a new ubuntu machine two weeks ago. Thank you for the help

0 answers

No answers yet.

Log in to answer this question.