Question: Conversion from counts to FPKM
0
gravatar for chiara.facciotto
5 weeks ago by
chiara.facciotto0 wrote:

Hi,

I am trying to use DESeq2 to convert raw counts to fpkm, so I can compare gene aboundance across genes and not only across samples. I have a couple of questions on how to do so:

  1. Should I first normalize the counts and transform them with vst and then use the fpkm() function, or should I simply input the raw counts and the fkpm() function will then take care of normalization as well?
  2. How do I make sure that the genes in my GRanges object containing the gene lengths match the genes in the dss object?

Thank you!

ADD COMMENTlink modified 5 weeks ago by Michael Love21k • written 5 weeks ago by chiara.facciotto0
Answer: Conversion from counts to FPKM
0
gravatar for Michael Love
5 weeks ago by
Michael Love21k
United States
Michael Love21k wrote:

You should input the raw counts and then use `fpkm()` to generate FPKM values. The default is to use a robust estimate of library size (median ratio normalization) in place of the total count which is a sub-optimal estimator. Note that FPKM are not variance stabilized.

It is up to you to provide exonic basepair lengths, we don't have any code for that. An easier approach is to use a pipeline, such as Salmon followed by tximport, which keeps all the information together for you (and provides a much more accurate estimate of the length of the gene, using the average transcript length, as opposed to the sum of the exonic basepairs).

ADD COMMENTlink written 5 weeks ago by Michael Love21k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 329 users visited in the last hour