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
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
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.