DESEQ2 for multi-factor analysis with age(numeric), age and group
1
0
Entering edit mode
@songeric1107-6996
Last seen 6.2 years ago
United States

 

I am trying to use DESEQ2 to estimate the correlation coefficient of gene expression levels with different phenotypes.

dds = DESeqDataSetFromMatrix(
  countData = round(count),
  colData = pheno1,
  design = ~ Age+Gender+GROUP)

 

ddm <- DESeq(dds)

my questions is how could I get the coefficient for Age, gender and group, especially, age is a continuous variable

Thank you

deseq2 • 9.2k views
ADD COMMENT
0
Entering edit mode

Great, I got it now.

One more question, in order to get coefficient for gender and group, I have to convert them to 0,1, instead of F,M, how to interpret the coefficient of gender then?

Thank you

 

ADD REPLY
0
Entering edit mode

I moved this to a comment.

If you print the results table for sex, it will tell you the LFC direction. It’s also determined by the factor levels. See the vignette section on factor levels.

ADD REPLY
0
Entering edit mode
@mikelove
Last seen 4 days ago
United States

You can get the coefficients one by one with results() and the "name" argument. Or you can get all the coefficients with the coef() approach described here:

https://bioconductor.org/packages/release/bioc/vignettes/DESeq2/inst/doc/DESeq2.html#access-to-all-calculated-values

ADD COMMENT

Login before adding your answer.

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