merge TPM values for same geneID
1
1
Entering edit mode
@fd2b2245
Last seen 2.2 years ago
India

Hello everyone. I have some RNAseq data from different conditions and samples. Using tximport function, I was able to map transcript ids to gene ids. Now I have a data matrix where rows are gene ids and columns are TPM values for 21 samples. Since I have several transcript variants for each gene, their transcript ids are different, but they map to a same gene id. To make some biological meaning out of this, I want to ignore transcript variants and merge all TPM values for the same gene id. What is the best way to do this? Sum them up? Or a weighed sum (based on length)?

Since I am new to RNAseq, I will appreciate your help :)

RNASeqRData TPM • 1.9k views
ADD COMMENT
0
Entering edit mode
ATpoint ★ 4.5k
@atpoint-13662
Last seen 3 days ago
Germany

That is exactly what tximport does, summarizing per-transcript expression to a single gene level value. Follow the tximport vignette to get gene level counts, and then transform it to any unit, be it TPM, you want.

ADD COMMENT
0
Entering edit mode

That doesnt seem to be true in our case. We got our ref database from UCI. The transcript variants/isoforms have diff transcript IDs but ofcourse will have the same gene id. So when tximport maps them, it will treat isoforms uniquely, and in the output, you will have several rows of different transcript ids with the same gene id. I hope I am able to make myself clear.

ADD REPLY
0
Entering edit mode

You will have to provide some data. Simply saying that you get something you don't want without showing what you got isn't helpful. Plus you need to show the code you used, and the output from running sessionInfo().

ADD REPLY
0
Entering edit mode

Please show some code, you either use wrong code or your tx2gene map is not correctly put together.

ADD REPLY

Login before adding your answer.

Traffic: 815 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