jeffsocal / tidyproteomics

An S3 data object and framework for common quantitative proteomic analyses
https://jeffsocal.github.io/tidyproteomics/
MIT License
36 stars 5 forks source link

Add abundance value to expression table #9

Closed tywang-tw closed 1 year ago

tywang-tw commented 1 year ago

Can you please add the abundance to the expression table output? I'd like to have this function to make the boxplot of the individual abundances. Thanks!

jeffsocal commented 1 year ago

That could be an option .. maybe for later release. In the meantime use the following example as a way to get what you are looking for:

tbl_expression <- hela_proteins %>%
    expression(knockdown/control) %>%
    export_analysis(knockdown/control, .analysis = "expression") %>% 
    left_join(hela_proteins %>%  export_quant() %>% select(matches("protein|abundance")), 
              by = hela_proteins$identifier)
jeffsocal commented 1 year ago

I added this functionality to v1.6.1, which will automatically output the abundance data in columns for each sample.