SummarizedExperiment(一)计算TPM

1
2
3
4
5
6
7
fpkmToTpm <- function(fpkm){
exp(log(fpkm) - log(sum(fpkm)) + log(1e6))
}
f_fpkmToTpm <- function(l_e){
apply(l_e,2,fpkmToTpm)
}
assay(sce, "TPM") <- f_fpkmToTpm(assay(sce, "HTSeq - FPKM"))

SummarizedExperiment(一)计算TPM
https://b.limour.top/1642.html
Author
Limour
Posted on
February 15, 2022
Licensed under