Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • yfang01
    Junior Member
    • Feb 2013
    • 1

    DEXSeq log2 fold changes

    I applied the R package DEXSeq to an RNAseq data set and wrote the results to a HTML file. Comparing the expression plot and log2 fold change in the corresponding result table, the log2foldchange values on the table seem conservative relative to those shown on the plot. Could anyone help me to understand this discrepancy?

    For example, in an analysis of the pasilla sample data set, exon 10 in FBgn0010909 looks to be ~4 fold lower in the treated data:


    but in the results table it has a log2foldchange value of 0.64:



    The following commands were put in to do the analysis:

    library("DEXSeq")
    library("pasilla")
    data("pasillaExons", package="pasilla")
    pasillaExons <- estimateSizeFactors(pasillaExons)
    pasillaExons <- estimateDispersions(pasillaExons)
    pasillaExons <- fitDispersionFunction(pasillaExons)
    pasillaExons <- testForDEU( pasillaExons,nCore=8)
    pasillaExons <- estimatelog2FoldChanges( pasillaExons )

    ecs1 <- pasillaExons
    #
    formuladispersion <- count ~ sample + ( condition + type ) * exon
    pasillaExons <- estimateDispersions( pasillaExons, formula = formuladispersion )
    pasillaExons <- fitDispersionFunction(pasillaExons)
    formula0 <- count ~ sample + type * exon + condition
    formula1 <- count ~ sample + type * exon + condition * I(exon == exonID)
    pasillaExons <- testForDEU( pasillaExons, formula0=formula0, formula1=formula1,nCore=8)
    pasillaExons <- estimatelog2FoldChanges( pasillaExons )
    ecs2 <- pasillaExons

    Then the results were written by:
    DEXSeqHTML( ecs1, FDR=0.1, color=c("#FF000080", "#0000FF80"),path="/agf/illum/ID0095DEU_2f847c24e9311da6/model1/",file="pasilla_DEU_res.html")

    #
    DEXSeqHTML( ecs2, FDR=0.1, color=c("#FF000080", "#0000FF80"),path="/agf/illum/ID0095DEU_2f847c24e9311da6/model2",file="pasilla_DEU_res.html")

    The results are available from:


    Thanks in advance if anyone can give a reasonable explanation.
  • areyes
    Senior Member
    • Aug 2010
    • 165

    #2
    Dear yfang01,

    Thanks for your question and interest in DEXSeq. The reason is that the fold change that DEXSeq gives is not calculated directly from the counts, what DEXSeq does is:

    1. The interaction coefficient is taken from the model: count ~ condition * exon. (this is in order to distinguish changes in gene expression levels from changes in the usage of individual exon, imagine a situation in which a whole gene is differentiallty expressed, your fold changes would mainly reflect changes in expression, not in exon usage):

    coefficients <- DEXSeq:::fitAndArrangeCoefs(pasillaExons, "FBgn0010909", frm=count~condition*exon )
    effects <- DEXSeq:::getEffectsForPlotting(coefficients, "condition", averageOutExpression=TRUE)

    2. The last variable "effects" will contain the natural logarithm of the "exon usage" effects, which should approximate the real counts. We next apply the variance stabilising transformation to this coefficients (described in the DEXSeq paper) and then transform them to the log2 scale.

    effects <- log2( DEXSeq:::vst( exp( t( effects ) ), pasillaExons ) )
    foldChange <- effects[,"untreated"] - effects[,"treated"]
    > foldChange
    E001 E002 E003 E004 E005 E006
    -0.002012139 -0.077514494 -0.085524653 -0.086438377 -0.231731049 -0.168603093
    E007 E008 E009 E010 E011 E012
    -0.043928621 0.014562948 0.036142063 0.641266891 0.017428325 0.032003742
    E013 E014 E015 E016 E017 E018
    -0.191428463 0.003098754 0.036862405 0.021424340 -0.062929341 -0.048894328
    E019 E020 E021 E022 E023
    -0.041459857 -0.088129731 -0.012760163 -0.093161888 -0.135868986


    For check the advantages of this fold change have a look at the DESeq vignette!

    Alejandro

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Nine Things a Sample Prep Scientist Thinks About Before Sequencing
      by SEQadmin2


      I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

      Here are nine questions we think about, in roughly the order they matter, before...
      06-18-2026, 07:11 AM
    • SEQadmin2
      From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
      by SEQadmin2


      Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


      The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
      ...
      06-02-2026, 10:05 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Yesterday, 11:10 AM
    0 responses
    7 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-17-2026, 06:09 AM
    0 responses
    42 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-09-2026, 11:58 AM
    0 responses
    104 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-05-2026, 10:09 AM
    0 responses
    125 views
    0 reactions
    Last Post SEQadmin2  
    Working...