This is a code i am running:
fit <- lmFit(eset,design)
This is the error I am getting
Error in rowMeans(y$exprs, na.rm = TRUE) : 'x' must be an array of at least two dimensions
This is some relevant information:
> dim(eset)
Features Samples
54675 161
> dim(design)
[1] 161 12
> typeof(eset)
[1] "S4"
> typeof(design)
[1] "double"
Thanks!
What is the output of:
Thank you. So, it is an ExpressionSet. How was it produced (show all code, please)? How was
design
produced?Thanks, I think that it relates to the annotation part. Can you confirm that this works:?
?
This particular command is likely messing up your ExpressionSet object:
This works:
This does not work:
I tried getting rid of:
does not seem to change anything
Are you sure? If you literally do this, it produces the same error?
If so, then the error is with your
design
object. Please double check it.Also output
sessionInfo()
I get the same exact error even with the code you just posted.
What do you think is wrong my design object, the dimensions seem to be fine and my contrast matrix correctly identifies comparisons?
Okay, how about:
The head command should really have worked. I am getting the feeling that this is an issue with Mac OS.
Does this not even work:
Sorry, because my account is new, it woudn't let me post more. No this does not work. I did recently update my mac os to catalina 10.15.6
At this point, you will have to provide some test data so that I can test it here. This can simply mean pasting some data here and then showing how the error is reproduced upon using this test data
So I fixed that error. It seems to be one of data type which is strange. If I use PreProcessedDataframe instead of PreProcessedData is works. However now I need help with annotation. It won't let me use fdata to annotate
here is my code: ```
```
Sorry I don't know how to insert block code!
Also what I mean is that I have the data in terms of affymetrix probes and not genes, how do I get genes. I know my .db package but the method I used to use using fdata does not work, it relies on PreProcessedData (an expression set) rather than PreProcessedData_dataframe.
Also the documentation says that lmfit should be able to take an expression set so its strange.
Thank you.
This is the first time that you indicate that this is public GEO data. In that case, please see the solution by my colleague;