Unconfigured Ad

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

    #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

    • kinpict.com
      Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
      by kinpict.com
      The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
      Today, 06:37 PM
    • SEQadmin2
      16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
      by SEQadmin2





      NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
      10-30-2026, 06:46 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 11-12-2026, 07:59 AM
    0 responses
    27 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 11-05-2026, 09:25 AM
    0 responses
    35 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 11-03-2026, 11:54 AM
    2 responses
    56 views
    0 reactions
    Last Post kinpict.com  
    Started by SEQadmin2, 10-28-2026, 09:57 AM
    0 responses
    175 views
    0 reactions
    Last Post SEQadmin2  
    Working...