bestglm with DESeq2 dispersions
1
0
Entering edit mode
kodream ▴ 20
@kodream-6952
Last seen 7.6 years ago
United States

I have a large number of heirarchical(nested) covariates. I would like to do some glm model testing to see if any of the levels are impact any genes in an RNA-seq experiment.  I have been using DESeq2 to do differential tests.  I have been using the bestglm package.

This is an example, I will scale this to the desired number of covariates

bestglm(cbind(y=counts(dds)[1,],phenotypes[,1:8]))

The above defaults to a gaussian family.  I would like to use a negative binomial.  If I used the negative.binomial from the MASS package, it requires a theta value, which works.

bestglm(cbind(y=counts(dds)[1,],p1[,1:8]),family=negative.ninomial(theta=1))

However, I am not sure what to use with the theta parameter here, can I use the gene-wise dispersion from DESeq2.  Also is there a better "family " function to use for DESeq2 dispersions?

 

deseq2 • 959 views
ADD COMMENT
0
Entering edit mode
kodream ▴ 20
@kodream-6952
Last seen 7.6 years ago
United States

Ah, looks like theta is 1/dispersion

ADD COMMENT
0
Entering edit mode

Yes, theta=1/dispersion. Note that dispersions(dds) is a better estimate of dispersion than mcols(dds)$dispGeneEst.

ADD REPLY

Login before adding your answer.

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