Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kentnf
    Member
    • Jan 2009
    • 26

    #1

    Question about different results generated by DESeq.

    Hi,

    I have problem on DESeq, it generates different results using same dataset (without replicate), and almost same code.


    Here is code for the 1st test:

    Code:
    conds <- factor( c( "c0","c6","c12","c24","c48","c72","c96","c120","t0","t6","t12","t24","t48","t72","t96","t120") )
    cds<-newCountDataSet(countsTable, conds)
    cds <- estimateSizeFactors( cds )
    sizeFactors( cds )
    cds <- estimateDispersions( cds, method="blind", sharingMode="fit-only" )
    test0 <- nbinomTest( cds, "c24", "t24" )
    write.table( test0, sep="\t", file="test0.txt" )
    it generates 225 differentially expressed genes with adjust pvalue < 0.05.

    But when i change the code for the 2nd test:

    Code:
    conds <- factor( c( "c0","c6","c12","c24","c48","c72","c96","c120","t0","t6","t12","t24","t48","t72","t96","t120") )
    cds<-newCountDataSet(countsTable, conds)
    cds <- estimateSizeFactors( cds )
    sizeFactors( cds )
    cds2 <- cds[ ,c( "c24", "t24" ) ]
    cds2 <- estimateDispersions( cds2, method="blind", sharingMode="fit-only" )
    test1 <- nbinomTest( cds2, "c24", "t24" )
    write.table( test1, sep="\t", file="test1.txt" )
    it just generates 84 differentially expressed genes.

    The 2nd test just estimate the two samples related to the comparison, but the 1st test estimate all the samples.
    I do not know why they are different, and I want to know which one is more reliable.

    Thanks a lot.

    By the way, before import dataset into DESeq, I usually to remove the genes without expression in each conditon.
    Here is a example.

    cond1 cond2 cond3 treat1 treat2 treat3
    gene1 1 2 3 2 2 0
    gene2 0 0 1 0 0 0
    gene3 0 0 0 0 0 0 (removed)

    For the dataset before, there are 225 DE genes identified at 1st test.
    After removing none-expressed genes, 220 DE genes were identified with adjust pvalue < 0.05.

    I want to know which method is correct.

    Thanks again
  • Wolfgang Huber
    Senior Member
    • Aug 2009
    • 109

    #2
    Dear Kentnf,

    in a nutshell, you are asking two different questions and so you get two different answers. In the first case, you estimate the dispersions from all samples, in the second, only from the two samples c24 and t24. The dispersions are parameters that DESeq estimates for each gene and that represent the variance that DESeq's error model expects between replicate measurements. It seems that in test0, the dispersions are estimated to be smaller than in test1 - thus slightly smaller fold changes are already deemed significant, leading to more genes.

    Which method is correct? The first point to note is that you are comparing between just two single samples, without replicates, so it is expected that the results are highly volatile. With sufficient number of replicates and good-quality data the differences should be less drastic. So, don't overinterprete your result from just these two samples, and try it also out for other samples and more replicates.

    Second, you are asking two different questions, and it is up to you to decide which is the one you care about. This is not a technical question, it is one that only you can decide.

    Third, ideally it should not matter much. Check the scatterplot of the -log10 (p-values) from the two tests against each other. I'd expect that they broadly agree (on the high values), and that much of the difference in number of genes that you see would be an effect of arbitrary thresholding (i.e. genes that just make it below p_adj<0.05 in one case might be just above in the other).

    About the filtering of genes with overall low counts (i.e. sum of counts across all samples is so small that the gene anyway could never be significantly differently expressed): this is good practice. See Section 5 of the DESeq vignette.
    Wolfgang Huber
    EMBL

    Comment

    • kentnf
      Member
      • Jan 2009
      • 26

      #3
      Hi, Wolfgang Huber

      I make a comparison between test0 and test1. All the DE genes in test1 are included in test0. I think that is the differnet variances on different estimations you metioned. Because our experiment has problem on design. So we can not add more replicates. Base on your suggestions and the current results, I'd like to use test1 code to perform analysis for it show more reliable than test0. And I should remove the genes without expression.

      If there is any problem, please give me some advice.

      Thanks again for your help.

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
        by SEQadmin2



        CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

        Despite this, “CRISPR helped turn genome editing from a specialized technique into
        ...
        07-31-2026, 11:01 AM
      • SEQadmin2
        Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
        by SEQadmin2


        Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

        The systematic characterization of the human proteome has
        ...
        07-20-2026, 11:48 AM
      • SEQadmin2
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        07-09-2026, 11:10 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 07-31-2026, 02:55 AM
      0 responses
      18 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-24-2026, 12:17 PM
      0 responses
      16 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-23-2026, 11:41 AM
      0 responses
      16 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-20-2026, 11:10 AM
      0 responses
      26 views
      0 reactions
      Last Post SEQadmin2  
      Working...