Partek Flow Documentation

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Children Display

What is trajectory analysis?

Cells undergo changes to transition from one state to another as part of development, disease, and throughout life. Because these changes can be gradual, trajectory analysis attempts to describe progress through a biological process as a position along a path. Because biological processes are often complex, trajectory analysis builds branching trajectories where different paths can be chosen at different points along the trajectory. The progress of a cell along a trajectory from the starting point or root, can be quantified as a numeric value, pseudotime. 

In Partek Flow , we use tools from Monocle 2 [1] to build trajectories, identify states and branch points, and calculate pseudotime values. The output of Trajectory analysis includes an interactive scatter plot visualization for viewing the trajectory and setting the root state (starting point of the trajectory) and adds a categorical cell level attribute, State. From the Trajectory analysis task report, you can run a second task, Calculate pseudotime, which adds a numeric cell-level attribute, Pseudotime, calculated using the chosen root state. Using the state and pseudotime attributes, you can perform downstream analysis to identify genes that change over pseudotime and characterize branch points. 

Prerequisites for trajectory analysis

Note that trajectory analysis will only work on data with <600,000,000 observations (number of cells × number of features). If your data set exceeds this limit, the Trajectory analysis task will not appear in the toolbox. Prior to performing trajectory analysis, you should: 

1) Normalize the data

Trajectory analysis requires normalized counts as the input data. We recommend our default "CPM, Add 1, Log 2" normalization for most scRNA-Seq data. For alternative normalization methods, see our Normalize counts documentation.

2) Filter to cells that belong in the same trajectory

Trajectory analysis will build a single branching trajectory for all input cells. Consequently, only cells that share the biological process being studied should be included. For example, a trajectory describing progression through T cell activation should not include monocytes that do not undergo T cell activation. To learn more about filtering, please see our Filter groups documentation.

3) Filter to genes that characterize the trajectory

The trajectory should be built using a set of genes that increase or decrease as a function of progression through the biological processes being modeled. One example is using differentially expressed genes between cells collected at the beginning of the process to cells collected at the end of the process. If you have no prior knowledge about the process being studied, you can try identifying genes that are differentially expressed between clusters of cells or genes that are highly variable within the data set. Generally, you should try to filter to 1,000 to 3,000 informative genes prior to performing trajectory analysis. The list manager functionality in Partek Flow is useful for creating a list of genes to use in the filter. To learn more, please see our documentation on List management

Parameters

Dimensionality of the reduced space

While the trajectory is always visualized in a 2D scatter plot, the underlying structure of the trajectory may be more complex and better represented by more than two dimensions. 

Scaling

You can choose to scale the genes prior to building the trajectory. Scaling removes any differences in variability between genes, while not scaling allows more variable genes to have a greater weight in building the trajectory. 

Task report

The Trajectory analysis task report is a 2D scatter plot (Figure 1).

Numbered figure captions
SubtitleTextTrajectory analysis scatter plot colored by State
AnchorNameExample Trajectory analysis scatter plot

Image Removed

The trajectory is shown with a black line showing the trajectory. Branch points are indicated by numbers in black circles. By default, cells are colored by state.

You can use the control panel on the left to color, size, and shape by genes and attributes to help identify which state is the root of the trajectory (Figure 2).

Numbered figure captions
SubtitleTextColoring and shaping the points on the scatter plot
AnchorNameColoring and shaping the scatter plot

Image Removed

You can also split by any categorical attribute (Figure 3)

Numbered figure captions
SubtitleTextTrajectory split by state
AnchorNameSplitting by an attribute

Image Removed

Calculating pseudotime

To calculate pseudotime, you must choose a root state. The tip of the root state branch will have a value of 0 for pseudotime. Click any cell belonging to that state to select the state. The selected state will be bold while unselected cells are dimmed (Figure 4). 

Numbered figure captions
SubtitleTextSelecting a root state
AnchorNameSelecting a root state

Image Removed

To use the selected state as the root state for pseudotime calculation, select the state and then click the Calculate pseudotime button (Figure 5). 

Numbered figure captions
SubtitleTextCalculating pseudotime after selecting a root state
AnchorNameCalculating pseudotime

Image Removed

This will run a task on the analysis pipeline, Calculate pseudotime, and output a new Pseudotime result data node (Figure 6).

  

Numbered figure captions
SubtitleTextCalculate pseduotime output
AnchorNameCalculate pseudotime output

Image Removed

The Calcuate pseudotime task report is the same as the Trajectory analysis task report, but is colored by the newly calculated cell-level attribute, Pseudotime, by default (Figure 7). 

Numbered figure captions
SubtitleTextTrajectory colored by pseudotime
AnchorNameCalculate pseudotime task report

Image Removed

References

[1] Xiaojie Qiu, Qi Mao, Ying Tang, Li Wang, Raghav Chawla, Hannah Pliner, and Cole Trapnell. Reversed graph embedding resolves complex single-cell developmental trajectories. Nature methods, 2017.

offers Monocle 2 and Monocle 3 methods.

Children Display




Additional assistance


Rate Macro
allowUsersfalse

...