Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sindrle
    Senior Member
    • Aug 2013
    • 266

    #1

    MDS-plot diagnostics

    MDSplot-edgeR.pdf

    So, this really does not look good...
    Suggestions on whats going on here?
  • sindrle
    Senior Member
    • Aug 2013
    • 266

    #2
    MDSplot-edgeR-no-outleiers.pdf

    And here it is without..

    Looks much better, next step is to see if they affect my result much.


    But what will decide if I keep then or not?

    Comment

    • dpryan
      Devon Ryan
      • Jul 2011
      • 3478

      #3
      That has got to be the most outlying outlier I've ever seen

      Perhaps that sample is from the wrong organ (our core facility has swapped samples before...which became very very obvious when I made the equivalent graph). Alternatively, what's the size factor on that sample? One sample having vastly fewer reads can also cause this sort of thing.

      There are algorithms to detect outliers, but if a sample doesn't stick out like a sore thumb on a graph like this then it should be kept in.

      Comment

      • sindrle
        Senior Member
        • Aug 2013
        • 266

        #4
        Haha!
        Heres some comparisons...

        With outlier: D253-B2
        Variation: 49.21% BCV
        -1 232
        0 22578
        1 905

        Without outliers: D253-B2
        Variation: 49.99% BCV
        [,1]
        -1 120
        0 23038
        1 557

        Conclusion: With outlier gives twice as many hits, this is worrisome...

        Here the same thing with the world record outlier N270-B2

        With outliers: N208-B1 & N270-B2
        Variation: 48.87 BCV
        -1 399
        0 22131
        1 1185

        Without outliers: N208-B1 & N270-B2
        Variation: 49,78% BCV
        -1 147
        0 22800
        1 768

        About the same result...


        Should I exclude all three? Or run some more test and maybe keep everyone, except the insane one?

        Comment

        • dpryan
          Devon Ryan
          • Jul 2011
          • 3478

          #5
          You might consider using the SVA package on your dataset just too see if it detects an obvious background variable to control. I'm not surprised that removing D253-B2 gives fewer hits, that one sample was driving a lot of the results (I've never been that happy with how edgeR deals with outliers, which is why I usually use DESeq2). So, I wouldn't be too worried by that.

          For the other two samples, I suspect that sva will tell you that their variation is due to component that can be compensated for.

          Comment

          • sindrle
            Senior Member
            • Aug 2013
            • 266

            #6
            Thank you very much for your response, very good as always.

            Let me just hack my own thread here.. How do you set the "prior.df" option ?

            d <- estimateGLMTagwiseDisp(d, design, prior.df = ???)

            Comment

            • dpryan
              Devon Ryan
              • Jul 2011
              • 3478

              #7
              I would have to search for that in the Bioconductor list (it's come up a few times, but I don't recall the answer since I rarely use edgeR). There's actually a way to avoid the issue, which is to use glmQLFTest(), which doesn't require that you estimate the tagwise dispersion (it ends up calling routines in limma that estimate the prior df). I've never actually tried that, but it should produce more conservative results.

              Comment

              • sindrle
                Senior Member
                • Aug 2013
                • 266

                #8
                I have search to death...

                And read every thread popping up. But its different from the old vs new version. And also Gordon Smyth says: prior.df = G_0 * df.residual

                df.residuals = my libraries - GLM coeffisients

                But what is G_0??

                In old version n.prior = your libraries, which would help the calculation. But this option I cannot find anymore..

                Im running edgeR, DESeq2 and Cuffdiff 2.1.1 (soon also DEXseq).

                I don't want to exclude anyone, since everyone has their strength and weaknesses. How come you only rely on DESeq2?

                Comment

                • dpryan
                  Devon Ryan
                  • Jul 2011
                  • 3478

                  #9
                  It's consistently produced the most reliable results for my datasets. Cuffdiff can rarely handle my experimental designs, so it's not even in the running.

                  Comment

                  • sindrle
                    Senior Member
                    • Aug 2013
                    • 266

                    #10
                    Im trying the glmQLFTest, thanks.

                    How did you find out why DEseq2 was the most consistent?

                    Comment

                    • dpryan
                      Devon Ryan
                      • Jul 2011
                      • 3478

                      #11
                      I don't really know why it's turned out to give a bit more reliable results, though it tends to deal with outlier values pretty well (it'll flag and ignore such genes by default, though sometimes you need to disable this). We've done enough qPCR validations of additional samples to give me some comfort in that. Of course that's for the datasets that I work on, YMMV!

                      Comment

                      • sindrle
                        Senior Member
                        • Aug 2013
                        • 266

                        #12
                        glmQLFTest does not work...

                        Error:

                        "Error in quantile.default(zresid, prob = prob) :
                        missing values and NaN's not allowed if 'na.rm' is FALSE
                        In addition: Warning message:
                        In fitFDistRobustly(var, df1 = df, covariate = covariate, winsor.tail.p = winsor.tail.p) :
                        small x values have been offset away from zero"

                        Ive tried remove NAs:

                        # d$counts[is.na(d$counts)] <- 0
                        # apply(d$counts,2,function(x) sum(is.na(x)))

                        Did not work..

                        Ive read an answer here, but I don't have the development version...



                        *Will soon uninstall edgeR because of annoyed*

                        Comment

                        Latest Articles

                        Collapse

                        • SEQadmin2
                          Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                          by SEQadmin2



                          Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                          Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                          ...
                          10-14-2026, 09:55 AM
                        • SEQadmin2
                          New Genomics Technologies Take Aim at Long-Standing Limits
                          by SEQadmin2


                          Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                          We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                          ...
                          09-28-2026, 10:25 AM

                        ad_right_rmr

                        Collapse

                        News

                        Collapse

                        Topics Statistics Last Post
                        Started by SEQadmin2, Yesterday, 10:52 AM
                        0 responses
                        9 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 10-14-2026, 05:39 AM
                        0 responses
                        19 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 10-13-2026, 09:56 AM
                        0 responses
                        16 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 10-09-2026, 11:14 AM
                        0 responses
                        27 views
                        0 reactions
                        Last Post SEQadmin2  
                        Working...