Skip to content
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

TCGA FPKM to calculate IPS #4

Open
DrZhaoJie opened this issue Apr 2, 2021 · 1 comment
Open

TCGA FPKM to calculate IPS #4

DrZhaoJie opened this issue Apr 2, 2021 · 1 comment

Comments

@DrZhaoJie
Copy link

Hi, I really enjoy your package.
I downloaded TCGA RNAseq fpkm value and try to produce the IPS as follows
FPKMtoTPM <- function(fpkm){ exp(log(fpkm) - log(sum(fpkm)) + log(1e6)) } RNA_TPM <- as.data.frame(apply(RNA_FPKM,2,FPKMtoTPM)) gene_expression <- RNA_TPM

And then I run the code as you provided in IPS.R. But it had different IPS score as you presented in the TCIA web.
Where was I wrong?
Thank you very much.

@riederd
Copy link
Member

riederd commented Apr 6, 2021

Hi,
did you download the FPKM values from GDC? If yes this might explain it, because in TCIA we used the expression data provided by CGHub hosted by UCSC back in 2015 (they used a different RNAseq pipeline than GDC is now using).
If you download the expression data from TCIA and run IPS.R then you should get matching results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants