drpowell / degust

An interactive web-tool for RNA-seq analysis
http://degust.erc.monash.edu/
GNU General Public License v3.0
67 stars 29 forks source link

Generate TMM for Edge R DE analysis by using Degust #106

Open r06442015 opened 3 years ago

r06442015 commented 3 years ago

How to generate EdgeR’s trimmed mean of M values (TMM) by using Degust instead of CPM

drpowell commented 2 years ago

Unfortunately you cannot currently export TMM from Degust. It will use TMM internally for DE testing, or for the MDS (when "backend normlised" is selected). Currently the best solution is to have degust export the R code, then modify that to save the TMM.

r06442015 commented 2 years ago

I have another question about the cpm function. I’ve tried to look up in R conduct cpm function. The default setting is using normalized library, which can represent TMM as well. Does the export file of cpm by Degust use the normalized library?

Benjamin Du

David Powell @.***> 於 2021年9月15日 上午7:10 寫道:

 Unfortunately you cannot currently export TMM from Degust. It will use TMM internally for DE testing, or for the MDS (when "backend normlised" is selected). Currently the best solution is to have degust export the R code, then modify that to save the TMM.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

drpowell commented 2 years ago

Degust calculates the cpm by dividing by library size, and multiplying by 1e6. It also does a log2-transform of this with a with a prior-count (or log moderation) of 10. This is different to cpm() from edgeR which uses a default of 0.25. The reason for this difference, is that degust only uses the cpm for visualisation and the larger moderation is appropriate to better stabilise the variances. For the differential expression testing, the typical TMM and cpm() is used.

r06442015 commented 2 years ago

Thanks for sharing these details that I would not notice the difference of prior count. I would like to make sure that if I choose Edge R method in degust the cpm is generate directly from raw count or from TMM? Since I am quite confuse by the same name with different function. And, Thanks for your help, I am still learning R as well, so it is a little challenging for me. https://www.biostars.org/p/317701/ Benjamin Du

David Powell @.***> 於 2021年9月15日 上午11:11 寫道:

 Degust calculates the cpm by dividing by library size, and multiplying by 1e6. It also does a log2-transform of this with a with a prior-count (or log moderation) of 10. This is different to cpm() from edgeR which uses a default of 0.25. The reason for this difference, is that degust only uses the cpm for visualisation and the larger moderation is appropriate to better stabilise the variances. For the differential expression testing, the typical TMM and cpm() is used.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.