Hi everyone,
My name is Shimon and I am a PhD student. I am currently trying to analyse proteomic data from a mass spec using Limma in R. The data contains the normalised abundance values of >1500 proteins across 81 patients. The 81 patients are be divided into 2 groups: Alive and Dead. I want to use limma to get the p values and fold change for each protein. I have log2 transformed the normalised abundance values and then tried to use the "lmfit" as described here http://kasperdanielhansen.github.io/genbioconductor/html/limma.html but it has not worked.
I keep thinking maybe its the way my data is structured as the type of data used in the example in that link is defined as "S4" then after adding another data to it, it's defined as "integer" but my data is being defined as "list" by R.
Attached is a picture of how i have structured my data: My Data Structure
I really hope you guys can help.
Thank you and best wishes,
Shimon
Dear Gordon,
Thank you for taking the time to explain to me the correct procedure, I apologise for any inconvenience caused. Here is the code I have used:
Thank you and best wishes,
Shimon
You are actually not close to using limma yet. You have four Error messages before you even get to the limma function and you need to solve those first. None of your code seems appropriate for your data as shown in the screen shot.
I strongly suggest you collaborate with a bioinformation or statistician at your own institute who will help you analyse your data. If you can't do that, then find an introduction to R that will each you the basics of the language.
You need to first learn how to read data into R. My suggestion would be to learn base R commands like
read.csv
instead of relying on add-on packages like pacman and rio, which don't really make things any easier in my opinion and which tend to hide things from you. See for example:https://swcarpentry.github.io/r-novice-inflammation/11-supp-read-write-csv/
You need to learn how to look at your data and trouble-shoot basic problems, for example
or
or
would all be useful commands.
Getting in the habit of reading R help pages (such as
help("lmFit")
) is also a useful skill.Hi Gordon,
Thank you for your advice. I will definitely look into coming to better grips with the R language. I have watched some R introduction videos but these haven't really solved the errors I have been getting. I found this https://cran.r-project.org/doc/manuals/r-release/R-intro.pdf which seems like a complete introduction to R. Would this be more appropriate?
Best Wishes, Shimon
Yes, that's a good introduction.