Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • feralBiologist
    Member
    • Jun 2011
    • 61

    #1

    Interpreting a PCA plot produced with DESeq2

    I've used DESeq2 to analyse a few RNA-Seq samples. I followed pretty closely the manual and using the following code

    Code:
    vsd <- varianceStabilizingTransformation(dds)
    data <- plotPCA(vsd, intgroup=c("condition"), returnData=TRUE)
    percentVar <- round(100 * attr(data, "percentVar"))
    plotPCA <- ggplot(data, aes(PC1, PC2, color=condition)) +
      geom_point(size=3) +
      xlab(paste0("PC1: ",percentVar[1],"% variance")) +
      ylab(paste0("PC2: ",percentVar[2],"% variance")) +
      geom_text(aes(label=names),hjust=0.25, vjust=-0.5, show_guide = F)
    ggsave("PCA.pdf", plot = plotPCA)
    I created the following PCA plot:



    What I don't understand is - what are the units that are recorded on the x/y axes? What's their meaning?
    Last edited by feralBiologist; 02-14-2015, 05:30 PM.
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    The axes are dimensionless, they have no units.

    Comment

    • feralBiologist
      Member
      • Jun 2011
      • 61

      #3
      Originally posted by dpryan View Post
      The axes are dimensionless, they have no units.
      Thanks for your reply! So you are saying the units printed on the x/y axes have no meaning? Do you know how can I edit the code to remove them?

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        plotPCA <- plotPCA + theme(axis.text.x = element_blank(), axis.text.y=element_blank())

        Or something like that. Check the ggplot2 documentation.

        Comment

        • Fatt
          Junior Member
          • Jan 2015
          • 1

          #5
          So you are saying the units printed on the x/y axes have no meaning?
          They are the first (x-axis) and second (y-axis) principal components, respectively. It's a projection of your data onto a subspace that captures the maximum variance/minimum error. We can likely say they have no units, but they certainly do have meaning.

          Comment

          • feralBiologist
            Member
            • Jun 2011
            • 61

            #6
            Originally posted by Fatt View Post
            They are the first (x-axis) and second (y-axis) principal components, respectively. It's a projection of your data onto a subspace that captures the maximum variance/minimum error. We can likely say they have no units, but they certainly do have meaning.
            Yes, I know these are the principal components. It is just that DESeq2 prints units on these axes (you can check the link to the plot in my first post) and I could not make any sense of these. I also saw a lot of other PCA plots (presumably produced by other programs) displaying units on the axes so wondered what these are - just do image search on Google for "PCA plot" and you will see a plenty of graphs displaying units on the axes. It is the units that I find confusing, not the axes themselves.

            Comment

            • feralBiologist
              Member
              • Jun 2011
              • 61

              #7
              I found the answer to this on CrossValidated: it seems the units denote the raw component scores. As the components are themselves linear combinations of multiple genes it is hard to interpret these raw scores biologically. They are just coordinates in the two-dimensional PC space and are helpful to simply place the individual samples in that space.

              Comment

              • Skiaphrene
                Member
                • Aug 2013
                • 18

                #8
                I might be saying this a bit late, but the % of intertia (ie total variance) captured by each PC is a very useful "quality control" measure for PCA and should be included if possible in the figure. The axis units, as said above, are not very interpretable.

                BTW, that's a whopping big 1st PC! Nice!

                Comment

                • student-t
                  Member
                  • Mar 2015
                  • 16

                  #9
                  So, how much % of the total variance should be expected?

                  Comment

                  • dpryan
                    Devon Ryan
                    • Jul 2011
                    • 3478

                    #10
                    @student-t: I replied to this on biostars.

                    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, 10-22-2026, 11:13 AM
                    0 responses
                    23 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-22-2026, 10:48 AM
                    0 responses
                    20 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-15-2026, 10:52 AM
                    0 responses
                    36 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-14-2026, 05:39 AM
                    0 responses
                    42 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...