The Problem of Computing FPKM by DESeq2
0
0
Entering edit mode
6.1 years ago

I have got some different expression gene and their Fold Change, but I want to look over their FPKM in different phrases. So I computed the FPKM of gene by used the command fpkm ( ) of DESeq2. And I find the FPKM of some different expression genes are zero. For example:

FPKM

The log2FC of gene is not zero, but the FPKM is zero.

gtf = "analyzing data/Ailuropoda_melanoleuca.ailMel1.90.gtf"
txdb = makeTxDbFromGFF(gtf, format = "gtf", circ_seqs = character())
ebg = exonsBy(txdb, by = "gene")
DE_FPKM = DESeqDataSetFromMatrix(countData = count, colData = coldata, design = ~ condition)
rowRanges(DE_FPKM) = GRangesList(ebg)
FPKM = fpkm(DE_FPKM)
write.csv(FPKM, file="FPKM.csv")

Above is my code.

And I want to know where did wrong lead to such a result.

Thank you so much for your suggestions

RNA-Seq R • 7.3k views
ADD COMMENT
0
Entering edit mode

I'd suggest you don't use FPKM, but rather the normalized counts (vst/vsd/rld) generated by DESeq2.

ADD REPLY
0
Entering edit mode

I am in complete agreement with Wouter, i.e., not to use FPKM.

In addition, please look up the DESeq2 Tutorial. You should have, as input [to DESeq2], raw counts.

ADD REPLY

Login before adding your answer.

Traffic: 3059 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6