vdemichev / diann-rpackage

Report processing and protein quantification for MS-based proteomics
Other
35 stars 6 forks source link

output.pg_matrix using MaxLFQ values #4

Closed Amon789 closed 2 years ago

Amon789 commented 3 years ago

Hi, I would like to get output.pg_matrix but with the PG.MaxLFQ normalized values. I tried to use this code

df <- diann_load("C:/DIA-NN/R/diann_report.tsv") diann_save(diann_maxlfq(df[df$Q.Value <= 0.01 & df$PG.Q.Value <= 0.01,], quantity.header = "PG.MaxLFQ" , "C:/DIA-NN/R/MaxLFQ_test16.tsv", row.names = T)

How can I add the Protein.Group, genes, protein ids and Protein names as raw names or as just a corresponding column?

Kind Regards Ahmed

vdemichev commented 3 years ago

Hi Ahmed,

Sorry, I did not fully understand the question. The pg_matrix file contains MaxLFQ values already. If you'd like to do some MaxLFQ computations in R, you can always add extra annotations to the resulting matrix using R match function https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/match and the information from the main DIA-NN report.

Best, Vadim

Amon789 commented 3 years ago

Thank you vadim, Your answer has solved my issue.