Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DESeq2 depends on GeneOrder?

    Dear all,

    currently we are thinking about replacing HTseq count by featureCount from the Subread package. The run time is shortened considerably, while giving the exact same raw counts.

    Downstream analysis instead seems to be affected. Running a DESeq2 analysis on the output, results in varying log2fold changes [max( htseq$log2fold - subread$logfold ) != 0 ].
    After several tries i could identify the sort order of the geneIDs in the raw counts being the culprit. As soon as i sorted the output of HTseq and featureCount alphabetically by geneID (which resulted in identical lists) DESeq2 computed identical log2fold changes.

    Could anyone confirm these results?
    Is this a bug or a feature of DESeq2? Is this maybe a consequence of some normalisation (relative-log-expression) approaches undertaken?

    Or am i plainly doing anything wrong?

    Thanks a lot

  • #2
    This is not a bug of DESeq2.

    DESeq2 is working with the count table you give it, and you gave it two count tables with a different order on the rows.

    The two counting software give you different row order.

    Comment


    • #3
      Originally posted by Michael Love View Post
      This is not a bug of DESeq2.

      DESeq2 is working with the count table you give it, and you gave it two count tables with a different order on the rows.

      The two counting software give you different row order.
      Sorry for my imprecise description. The two DESeq outputs were sorted to finally have the same Gene order (by merging the two data frames by GeneID).

      Comment


      • #4
        Sorry for my late response. But i think need to bring up the case again.

        In addition i need to explain my approach a bit more in detail.
        We have 3 WT and 3 treated RNAseq samples that were either counted using HTseq or featureCount. Each count set was separately run through DeSeq2 and resulted in varying fold changes. This happened although the gene-wise raw counts are the same for the two tools used.

        Recently, i went another road to exclude errors (still i'm not sure, if i hunt for a bug in my workflow). Taking raw counts produced by featureCount (3x WT, 3x Treatment) once in the original sort order and once randomized fed into DeSeq2 results in varying logFC results as well. I would expect no difference in the logFC irrespective of the order of the input data.

        Am i wrong in this assumption?

        Thanks a lot.

        Comment


        • #5
          The order of the rows of the matrix has no difference on the results. You may have a bug in your code?

          Code:
          > dds <- makeExampleDESeqDataSet()
          > idx <- sample(1000, 1000, replace=FALSE)
          > dds2 <- dds[idx,]
          > res <- results(DESeq(dds))[idx,]
          > res2 <- results(DESeq(dds2))
          > all.equal(res$log2FoldChange, res2$log2FoldChange)
          [1] TRUE

          Comment

          Latest Articles

          Collapse

          • seqadmin
            New Genomics Tools and Methods Shared at AGBT 2025
            by seqadmin


            This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

            The Headliner
            The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
            03-03-2025, 01:39 PM
          • seqadmin
            Investigating the Gut Microbiome Through Diet and Spatial Biology
            by seqadmin




            The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
            02-24-2025, 06:31 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 03-03-2025, 01:15 PM
          0 responses
          179 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 02-28-2025, 12:58 PM
          0 responses
          272 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 02-24-2025, 02:48 PM
          0 responses
          657 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 02-21-2025, 02:46 PM
          0 responses
          267 views
          0 likes
          Last Post seqadmin  
          Working...
          X