Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Fischer
    Junior Member
    • Mar 2015
    • 8

    Problem: DESeq2 analysis with very unbalanced design

    Hello,

    I have a question about my DESeq2 analysis.
    I have to compare expression of miRNAs in different disease variants but I have a problem, because the design is not balanced ; this is my data:
    Disease variant 1: 5 replicates
    Disease variant 2: 26 replicates
    Disease variant 3: 5 replicates
    Disease variant 4: 8 replicates
    Disease variant 1,3,4 have fewer patients than the variant 2 because are rare variants of the disease, then their frequency in a population is very low (it is difficult to find replicates!).
    Can deseq2 working well with these unbalanced samples?

    PS. Sorry if there are errors in the text, but I don't speak English very well
    Thank you very much in advance,
    Fischer
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Unbalanced designs aren't a problem, you just have lower power with the variants containing fewer samples.

    Comment

    • Fischer
      Junior Member
      • Mar 2015
      • 8

      #3
      Thank you for reply!
      Then do you think that is correct an analysis with deseq2 in my case?
      Practically I only have low accuracy in the results of these variants, right?

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        Sure, I'd still use DESeq2 if this were my dataset.

        Comment

        • Fischer
          Junior Member
          • Mar 2015
          • 8

          #5
          Thank you again for reply! I have another question, if you can help me again..
          Becouse we had a problem in our lab, some of the samples (15%) were extracted with the Hiseq, while the remaining with the Myseq.. so the initial frequencies of miRNAs in the samples are differents because of the use of two different instruments (Hiseq frequencies are higher).. It could be a problem for the data analysis or DESeq2 solves this problem with normalization?

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #6
            By "extracted" I assume you mean "sequenced". Were the HiSeq and MiSeq libraries prepared at the same time? If everything was prepared at the same time and with the same procedure and just sequenced on different machines then the library size normalization will take care of things. If not, then you should add a batch nuisance variable into your model.

            Comment

            • Fischer
              Junior Member
              • Mar 2015
              • 8

              #7
              Originally posted by dpryan View Post
              Were the HiSeq and MiSeq libraries prepared at the same time?
              Yes, they were prepared at the same time and with the same kit.

              Originally posted by dpryan View Post
              If everything was prepared at the same time and with the same procedure and just sequenced on different machines then the library size normalization will take care of things. If not, then you should add a batch nuisance variable into your model.
              The only difference is in the sequencer machine. We used both Hiseq and Miseq, so some samples have an higher number of reads than other.

              Comment

              • dpryan
                Devon Ryan
                • Jul 2011
                • 3478

                #8
                OK, in theory that should be OK. In practice, though, it's good to make a PCA plot and then see if samples start clustering by machine. If that's the case then you have a notable machine effect and can just add a variable to your model. Alternatively, you could see if svaseq finds a meaningful batch effect worthy of compensation.

                Comment

                • Fischer
                  Junior Member
                  • Mar 2015
                  • 8

                  #9
                  Ok, I created a new variable that identify Hiseq/Miseq and I redid the model with these commands ("categories" is the "disease variants" variable, "machine" is the new variable ):

                  pg2 <- newCountDataSet(countTable,categories)

                  countD <- counts(pg2)

                  colData <- data.frame(rownames=colnames(countD), condition=categories, mach=machine)

                  cds <- DESeqDataSetFromMatrix(countData=countD,colData=colData, design=~condition+mach)

                  dds <- DESeq(cds)

                  Is the model correct?
                  then I made PCA:

                  rld <- rlog(dds)
                  plotPCA(rld, intgroup=c("mach"))

                  this is the result:

                  Attached Files
                  Last edited by Fischer; 09-15-2015, 05:54 AM.

                  Comment

                  • dpryan
                    Devon Ryan
                    • Jul 2011
                    • 3478

                    #10
                    I guess there is a batch effect (glad I suggested you check!). You might also figure out what's going on with those 2 samples leading to PC1.

                    Comment

                    • Fischer
                      Junior Member
                      • Mar 2015
                      • 8

                      #11
                      Thank you so much for your suggestion!
                      Because these two samples have a strange behavior, in your opinion, can I delete them from analysis? For design it wouldn't be a problem because they are "disease variant 2" samples.

                      this is the results without these two samples, and with a model design:
                      ~variant+mach

                      Attached Files
                      Last edited by Fischer; 09-16-2015, 12:05 AM.

                      Comment

                      • dpryan
                        Devon Ryan
                        • Jul 2011
                        • 3478

                        #12
                        You should try to see if there's a good reason why they're doing that first (not to mention also doing some hierarchical clustering). In general, though, I would say that those samples are good candidates for exclusion if they can't be otherwise explained (e.g., due to having much lower coverage).

                        Comment

                        • Neuromancer
                          Member
                          • Aug 2011
                          • 28

                          #13
                          Hi DESeq2 experts,

                          I have a very related question. My group design is as following:
                          Control
                          A, n=4
                          B, n=8

                          KO
                          C, n=4
                          D, n=12

                          Groups A,C are untreated, B,D treated.
                          So far so good, I used DESeq2 to compare AvsB and CvsD and now I am looking at the differences of these comparisons (rather than directly comparing BvsD, which I am also doing, but that's not the question here).
                          As you can imagine I get a more DE genes in CvsD, as D has 50% more samples than B, while A and C have the same number of samples. But it's a lot more (AvsB: ~1000; CvsD: ~2500, so 2.5x more, using same FDR/log2FC cutoffs of course).

                          So my question is: Is my "meta-comparison", i.e. looking at what is different in both comparisons actually valid? And is the 2.5-fold difference in DE genes more likely to be a result of group D having higher n (so CvsD has more power than AvsB) or could it also be due to experimental condition, which would be great as that would be biologically meaningful (which was of course the hypothesis)?

                          To be more precise: in my CvsD comparison I get a highly interesting group of genes, so good enrichment of this pathway, while in my AvsB comparison I don't get any of those - and now I'm afraid that this might be due to design rather than biology!

                          Any suggestions would be much appreciated.

                          Comment

                          • dpryan
                            Devon Ryan
                            • Jul 2011
                            • 3478

                            #14
                            Comparing lists that made based on p-value and fold-change thresholds is the path of last resort. Your design lends itself nicely to a factorial treatment and those are the questions that likely make the most biological sense...so just do that instead.

                            Comment

                            • Neuromancer
                              Member
                              • Aug 2011
                              • 28

                              #15
                              Thanks @dpryan!

                              You are probably right. I'll have a look at factorial design then.

                              Comment

                              Latest Articles

                              Collapse

                              • 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
                              • SEQadmin2
                                Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                                by SEQadmin2



                                Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                                There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                                07-08-2026, 05:17 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by SEQadmin2, Yesterday, 11:41 AM
                              0 responses
                              10 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-20-2026, 11:10 AM
                              0 responses
                              23 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-13-2026, 10:26 AM
                              0 responses
                              37 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-09-2026, 10:04 AM
                              0 responses
                              45 views
                              0 reactions
                              Last Post SEQadmin2  
                              Working...