1
$\begingroup$

Here I have two designs:

Design 1

 dds <- DESeqDataSetFromMatrix(countData=rpkm_ordered,
           colData=coldata, design= ~ Sex + Age + TMB + WBC + BM_percentage + FAB) 

To see the results I did this

resultsNames(dds)
 [1] "Intercept"          "Sex_Male_vs_Female" "Age"                "TMB"                "WBC"                "BM_percentage"      "FAB_M1_vs_M0"      
 [8] "FAB_M2_vs_M0"       "FAB_M3_vs_M0"       "FAB_M4_vs_M0"       "FAB_M5_vs_M0"  

I extracted only the Age from the first design

Design 2

I again used the design using Age variable :

dds <- DESeqDataSetFromMatrix(countData=rpkm_ordered,
          colData=coldata, design= ~ Age)

As an example I take this gene this output from the first design

  gene            baseMean log2FoldChange  lfcSE  stat   pvalue       padj
  <chr>              <dbl>          <dbl>  <dbl> <dbl>    <dbl>      <dbl>
1 ENSG00000196188     97.4         -0.742  0.113 -6.58 4.57e-11 0.00000125

This from the second design:

  gene            baseMean log2FoldChange  lfcSE  stat   pvalue       padj
  <chr>              <dbl>          <dbl>  <dbl> <dbl>    <dbl>      <dbl>
  ENSG00000196188     97.4         -0.757  0.119 -6.34 2.28e-10   3.43e-07
        

Another example this gene from the first design; the result is not significant:

           gene  baseMean log2FoldChange  lfcSE    stat pvalue   padj
ENSG00000173826  74.54467     0.01283834  0.589  0.0218  0.983  0.993

The same gene from Design 2 is significant:

           gene  baseMean log2FoldChange  lfcSE    stat   pvalue     padj
ENSG00000173826 74.54467       -2.004743  0.190   -10.6 4.76e-26 1.35e-21

Is this drastic outcome is due to the maths behind it or am I doing something wrong?

So would my interpretation be as such when i consider Age as my only variable I can consider ENSG00000173826significant ? But it is not significant when my main effect which i want to test is FAB which is my design 1.

I would like to know how to interpret and report the same.

Any suggestion or help would be really really appreciated

$\endgroup$

1 Answer 1

2
$\begingroup$

It's not surprising to me that the adjusted fold change statistic changes in different ways for different genes when covariates are added or removed. That's sort of the point of using covariates, as long as it makes sense to include them (which is an experimental decision, not a mathematical or statistical decision).

One thing I'd recommend checking is to make sure the results you're looking at are what you think you are looking at. You say that you're interested in testing FAB, but that is not included in the second (Age-only) design, which means that it won't be possible to extract any FAB comparisons from the results. It looks like your first design might be looking at Sex (based on the resultsNames ordering) or one of the FAB comparisons (based on reverse ordering of variables in the model), whereas the second might be looking at Age. This should be explicitly stated when displaying the results, but you haven't included that information in your output.

If you want FAB comparisons in the results, that variable needs to be in the specified model, e.g. "design = ~ Age + FAB". The Design 2 model that you have in your question only includes Age.

A good way to do this without getting the wrong contrast is to fully specify the variables when fetching results, as explained in the DESeq2 vignette:

In any case, the contrast argument of the function results takes a character vector of length three: the name of the variable, the name of the factor level for the numerator of the log2 ratio, and the name of the factor level for the denominator. The contrast argument can also take other forms, as described in the help page for results and below

res.age <- results(dds, name="Age")
res.FAB.M3.M0 <- results(dds, contrast=c("FAB","M3","M0"))
$\endgroup$
6
  • $\begingroup$ design= ~ Sex + Age + TMB + WBC + BM_percentage + FAB) I used this one this resource github.com/hbctraining/DGE_workshop_salmon_online/blob/master/… "which means that it won't be possible to extract any FAB comparisons from the results" i could extract the result for FAB $\endgroup$
    – kcm
    Jun 23, 2022 at 8:52
  • $\begingroup$ this biostar post biostars.org/p/278684 explains i hope im getting it right $\endgroup$
    – kcm
    Jun 23, 2022 at 10:40
  • $\begingroup$ We can account for the different types of sequencing, and get a clearer picture of the differences attributable to the treatment. As condition is the variable of interest, we put it at the end of the formula. I followed this .. $\endgroup$
    – kcm
    Jun 24, 2022 at 8:54
  • 1
    $\begingroup$ What gringer means is you can't get FAB results from design2, because it doesn't include FAB at all. If you specify the contrast when getting results, the order of the elements in the design does not matter at all. But since you won't say how you called results, no one really knows what you are doing. $\endgroup$
    – swbarnes2
    Jun 24, 2022 at 23:57
  • 1
    $\begingroup$ Also, unless you have a huge number of samples, I am skeptical that you can really model so many different variables at once. I would keep only those elements which correlate to the first few PCs. $\endgroup$
    – swbarnes2
    Jun 25, 2022 at 0:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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