Partek Flow Documentation

Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Principal components (PC) analysis (PCA) is an exploratory technique that is used to describe the structure of high dimensional data by reducing its dimensionality. It is a linear transformation that converts n original variables (typically: genes or transcripts) into n new variables, which are called PCs, they have three important properties:

  • PCs are ordered by the amount of variance explained
  • PCs are uncorrelated
  • PCs explain all variation in the data

PCA is a principal axis rotation of the original variables that preserves the variation in the data. Therefore, the total variance of the original variables is equal to the total variance of the PCs.

If read quantification (i.e. mapping to a transcript model) was performed by Partek® E/M algorithm, PCA can be invoked on a quantification output data node (Gene counts or Transcript counts) or, after normalization, on a Normalized counts data node. Select a node on the canvas and then PCA in the Exploratory analysis section of the context sensitive menu.

There are two options for  features contribute (Figure 1):

equally: all the features are standardized to mean of 0 and standard deviation of 1 .  This option will give all the features equal weight in the analysis, this is the default option for e.g bulk RNA-seq data.

by variance: the analysis will give more emphasis to the features with higher variances. This is the default option for e.g. single cell RNA-seq data

If the input data node is in linear scale, you can perform log transformation on PCA calculation. 


Figure 1. PCA setup dialog


The PCA task creates a new task node, and to open it and see the result, do one of the following: select the PCA task node, proceed to the context sensitive menu and go to the Task result; or double-click on the PCA task node. The report containing eigenvalues, PC projections, component loadings, and mapping error information for the first three PCs. 

When open PCA node in Data viewer, by default, it is 3D scatterplot  (Figure 2), each dot on the plot represents an observation, while the first three PCs are shown on the X-, Y-, and Z-axis respectively, with the information content of an individual PC is in the parenthesis. 

As an exploratory tool, PCA scatterplot is applied to view any groupings in the data set and generate hypotheses based on the outcome, or to spot possible outliers.

Figure 2. Principal components analysis plot in 3D. Each dot is a sample. The axes show the first three principal components, with the fraction of explained variance in the parenthesis. The legend is on the right, showing effect of coloring and sizing on the appearance of the dots (an example)

To rotate the plot left click & drag. To zoom in or out, use the mouse wheel. Click and drag the legend can move the legend to different location on the viewer.

Detailed configuration on PCA plot can be found by clicking Help>How-to videos>Data viewer section.

In Data viewer, when select PCA data node is the Data section on the control panel (left panel), when drag the node to the plot section (Figure 3), you will have option to plot scree plot and tables. 

Figure 3. Drag PCA data node to plot

When choose Scree plot icon , it will plot a 2D viewer, X-axis represents PCs, Y-axis represents eigenvalues (Figure 4)

Figure 4. Scree plot

When mouse over on a point on the line, it will display detailed information of the PC. The scree plot shows how much variation each PC represents,  so it is often used to determine the number of principal components to keep for downstream analysis (e.g. tSNE, UMAP, graph-base clustering). The "elbow" point of the graph where the eigenvalues seem to level off should be considered as a cutoff point for downstream analysis.

PCA data node can also be draw as tables, when choose Table icon (), it will display the component loadings matrix in the viewer (Figure 5)

Figure 5. Component loadings are the correlation coefficients between the features and PCs.

In the table, each row is a feature, the column represent PCs, the value is the correlation coefficient. The table can be downloaded as text file. In the configuration panel, the data table drop-down list in the content section, there is PCA projects option,  change to this option to display the projection table (Figure 6).

Figure 6. PCA project table

In this table, each row is an observation, each column is a PC, the values are the PC scores. The table can be downloaded as text file.




References

  1. Hao Y, Hao S, Andersen-Nissen E, et al. Integrated analysis of multimodal single-cell data. Cell. 2021;184(13):3573-3587.e29. doi:10.1016/j.cell.2021.04.048
  2. https://satijalab.org/seurat/articles/weighted_nearest_neighbor_analysis.html



Additional Assistance

If you need additional assistance, please visit our support page to submit a help ticket or find phone numbers for regional support.

  • No labels