I was wondering if there is any limitation or range regrading the values for numerical covariates in DESEQ2.
I am analysing my RNA-Seq data with DESeq2.
- First, DESeq2 analysis with covariates (e.g., gender, age, Batch-ID, etc.) was performed and 2,000+ genes were found to be differentially expressed between two groups.
Added PCT_RIBOSOMAL_BASES (fraction of reads mapped to ribosomal regions) as a covariate to the covariate list and then run the DESeq2, method displays the following message and result table shows few genes were found to be differentially expressed.
Finally log10-transformed the PCT_RIBOSOMAL_BASES values and then run the DESeq2, method finished without any warning and result table gives 2,000+ differentially expressed genes between two groups.
I was wondering what was the reason in difference between step 2 and step 3 results. What causes the DESeq2 to perform so differently from step1 to step2.
PCT_RIBOSOMAL_BASES (i.e., 6 records values: 0.000002659168 0.000002308961 0.000004758736 0.000005656651 0.000002397121 0.000003582599)
Any help will be appreciated.
(DESeq2 message with step 2)
estimating size factors estimating dispersions gene-wise dispersion estimates: 32 workers mean-dispersion relationship -- note: fitType='parametric', but the dispersion trend was not well captured by the function: y = a/x + b, and a local regression fit was automatically substituted. specify fitType='local' or 'mean' to avoid this message next time.
1 answer
For future reference, the Bioconductor support website is:
https://support.bioconductor.org
It is listed from the DESeq2 vignette and the man pages. But I will reply here to make it simpler.
I don't usually add these types of numeric covariates to the design with DESeq2. I will use RUV or SVA if I think that there is systematic biases affecting many genes. (See vignette for example code).
You didn't include your actual code, so I can only guess what happened:
My guess is that you are testing the PCT_RIBOSOMAL_BASES effect instead of the biological condition. See the DESeq2 vignette about multi-factor designs.
But otherwise, if this is not the case, transforming and scaling the covariates is an important step in proper linear modeling. It is recommended to transform as needed to avoid extreme skew in the numeric covariates and also to center and scale numeric covariates.
I recommend to transform and scale numeric covariates (current DESeq2 will warn you about this). There is no hard-coded limitation (the program will run, with a message recommending you to scale the covariate), but if you put in highly skewed covariates that aren't scaled to a linear model, you may get unstable or confusing results.
Thank you for your reply
Log in to answer this question.
Thanks Michael, highly appreciated.
The source code is:
Please use
ADD COMMENT/ADD REPLYwhen responding to existing posts to keep threads logically organized.