-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output PCA data? #30
Comments
Currently, the function that generates the report PDF does not retain the data and ggplot objects for figures shown in the PDF (it's on the wishlist for future updates). So you can't easily extract the PCA plot's coordinates. However, after running the
Does this address your question? |
Thanks a lot Frank :) Indeed this was exactly what I was looking for. One further question: If I got this correctly this PCA is based on peptide-level evidence. Is it possible to generate it based on protein level data? Thanks |
Hi Frank, Do you know why this happend here, and what I could do to really extract the data as shown in the "original" PCA? Thanks in advance |
Indeed, the PCA in that example is based on peptide intensity values. If you want to compute protein intensities from the same peptide-level data, you can use the MaxLFQ algorithm to "rollup" or "summarize" peptides to protein-level. Below snippet shows how to do this using the MS-DAP function
|
The coordinates in both PCA figures look quite similar to me by eye but without having access to your dataset it's impossible for me to figure out where the descrepancy between both figures is coming from. For instance, is the PCA function shared in my earlier post giving slightly different coordinates than the report PDF, or is something amiss with the color-coding / matching-to-sample-ids in your example plot/code? (ergo, the PCA coords are the same but sample labeling is not) If you're having a hard time debugging this, feel free to email your report.pdf and dataset.RData files (both files are in the MS-DAP output folder, please share via dropbox or something) to me and I'll try to reproduce the PCA in the report using your dataset. |
Hi,
is there a way to generate an output with the actual data from PCA in a flatfile format instead of plot only?
Thanks
Michael
The text was updated successfully, but these errors were encountered: