length scaled TPM counts in DEseq
1
0
Entering edit mode
3.2 years ago

Hiļ¼Œall

I was running a pipeline that contains Salmon and Tximport to generate length scaled TPM with the Tximport argument (countsFromAbundance="lengthScaledTPM").

Now I have a tsv for this file. How could I continue? Since I do not have the Txi file, I was not able to use the DESeqDataSetFromTximport function directly. (when I tried to use this file as txi argument, it shows the error in txi$counts : $ operator is invalid for atomic vector)

Appreciated any help!

RNA-Seq • 1.8k views
ADD COMMENT
0
Entering edit mode
3.2 years ago
ATpoint 82k

You can use DESeqDataSetFromMatrix. The counts in it are adjusted for average length, see for details the manual: https://bioconductor.org/packages/release/bioc/vignettes/tximport/inst/doc/tximport.html

The difference from "classic" tximport pipeline is that in the classic mode the average length would be returned as a matrix which would be used by DESeq2 to produce offsets for the model rather than using the adjusted counts from lengthScaledTPM directly. Either approach is fine:

We could alternatively generate counts from abundances, using the argument countsFromAbundance, scaled to library size, "scaledTPM", or additionally scaled using the average transcript length, averaged over samples and to library size, "lengthScaledTPM". Using either of these approaches, the counts are not correlated with length, and so the length matrix should not be provided as an offset for downstream analysis packages. As of tximport version 1.10, we have added a new countsFromAbundance option "dtuScaledTPM". This scaling option is designed for use with txOut=TRUE for differential transcript usage analyses. See ?tximport for details on the various countsFromAbundance options.

ADD COMMENT
0
Entering edit mode

Thank you for your help. My question is DESeqDataSetFromMatrix requires integer but the length scaled TPM has lots of genes with low abundance below 1. Then round(counts) will be 0 in a lot of genes. How could I get over this? Thanks.

ADD REPLY

Login before adding your answer.

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