0
$\begingroup$

I have been following the last DESeq2 pipeline to perform an RNAseq analysis with a dataset with low rin samples in the experimental (or treated) and high rin on the control ones.

I read a paper in which they perform RNAseq analysis with time-course RNA degradation and conclude that including RIN value as a covariate can mitigate some of the effects of low RIN in samples.

My question is how I should construct the design in the DESeq2 object:

~conditions+rin
~conditions*rin
~conditions:rin

none of them... :)

I cannot find proper resources where explain how to construct these models (I am new to the field...) and I recognise I crashed against a wall with these kinds of things. I would appreciate also some links to good resources to be able to understand which one is correct and why.

Thank you in advance!

$\endgroup$
2
  • $\begingroup$ Hi please edit your question to summarise the problem more clearly and include a summary of the paper in question. $\endgroup$
    – M__
    May 20, 2020 at 19:52
  • $\begingroup$ hope now is more clear... :) $\endgroup$
    – FrAoJm
    May 21, 2020 at 9:05

1 Answer 1

4
$\begingroup$

In the DESeq2 manual there is a section titled "How can I include a continuous covariate in the design formula?" that deals with your question.
Basically the process is no different from using a discrete covariate.

DESeq <- DESeqDataSetFromMatrix(countData = counts, colData = metadata, design = ~ RIN + condition)

In this example condition is the experimental groups and RIN is the continuous covariate for the RNA-integrity.

For this to work properly there has to be a linear relationship between the RNA integrity and the gene expression values. As stated in the manual: "Continuous covariates might make sense in certain experiments, where a constant fold change might be expected for each unit of the covariate."
Therefore, it may be better to code the RIN variable as a factor like RIN_high or RIN_low. This is more robust than using the absolute values of the variable itself.

However, from your desription I get the impession that the RIN values are generally lower in the treatment group compared to the control group. If this is the case, using RIN as a covariate will by of limited use. DESeq2 will not be able to discriminate if a expression difference is due to a difference in RNA integrity or due to your treatment. Also, in this case coding RIN into high and low would result in an error because the RIN and treatment variable would define the same groups.

Generally, covariates work best when they are evenly distributed across the experimental groups.

$\endgroup$
1
  • $\begingroup$ Thank you so much for your explanation. It makes a lot of sense. I think the dataset I have to work with is going to be very difficult to safe (or at least it will need a lot of biological validation lol). I was trying to use the theory behind this paper: ncbi.nlm.nih.gov/pmc/articles/PMC4071332 But they use a controlled RNA damage (with a time course) to model how it affects. I only can include rin as a covariate. I think I will go with your advice and do ~rin+condition and that's it... $\endgroup$
    – FrAoJm
    May 21, 2020 at 8:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.