Question: Ensembl ID and counts to FPKM/TPM
0
gravatar for jordan.mandel
18 months ago by
jordan.mandel0 wrote:

I have an R dataframe where each row is an Ensembl ID for a gene, and each column is a sample, and each value is a number of counts of transcripts matched to a gene (for the entire genome, human). My question is: how do I get the appropriate gene length for normalization to FPKM or TPM? This answer: Get gene length with R gives the total gene length that includes introns which is not appropriate. This one: https://bioinformatics.stackexchange.com/questions/2567/how-can-i-calculate-gene-length-for-rpkm-calculation-from-counts-data gives a valid answer but I don't know what a GTF file is/ might not be able to construct one. I just want to go straight from ensmbl ID -----------> transcript length.

I know that there are a lot of details (how were the transcripts mapped/what reference genome, etc etc etc) that could make a simple ensembl ID -------->transcript length calculation slightly inaccurate but this is an early stage of the exploratory data analysis, and I can confirm the results later once the analysis pipeline is set up.

Thanks for tolerating an amateur!

rna-seq tpm exon fpkm R • 801 views
ADD COMMENTlink modified 18 months ago by h.mon31k • written 18 months ago by jordan.mandel0
0
gravatar for h.mon
18 months ago by
h.mon31k
Brazil
h.mon31k wrote:

I know that there are a lot of details (how were the transcripts mapped/what reference genome, etc etc etc) that could make a simple ensembl ID -------->transcript length calculation slightly inaccurate

It works better the other way around: the more information you provide, the better the answers you get.

I don't know what a GTF file is/ might not be able to construct one.

As you have Ensembl identifiers, you probably want a Ensembl annotation. You can download a gtf file from the corresponding organism genome page. You need to use the same annotation version used for quantification.

gtf file description:

GFF/GTF File Format - Definition and supported options

ADD COMMENTlink written 18 months ago by h.mon31k
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 2.3.0
Traffic: 1998 users visited in the last hour