! currently experimental, not fully tested

Trajectory Inference Exercise

Objective

Learn to infer and analyze cellular differentiation trajectories using pseudotime analysis to understand developmental processes and cell fate decisions.

Dataset

10x Genomics Mouse Bone Marrow Mononuclear Cells

Part 1: Data Preparation

Step 1: Load and preprocess

Step 2: Initial clustering and visualization

Step 3: Subset data for trajectory analysis

Part 2: Trajectory Inference

For Python/scanpy users (Diffusion Pseudotime):

Compute diffusion map and pseudotime:

For R/Seurat users (Monocle3):

Install and load required packages:

Convert and prepare data:

Part 3: Ordering Cells in Pseudotime

Step 1: Select root cells

Identify starting point of trajectory:

For Python/scanpy users:

For R/Monocle3 users:

Step 2: Visualize pseudotime

Create visualizations:

Part 4: Gene Dynamics Along Pseudotime

Select key genes and create visualizations:

Depending on your method/environment, check what other options for visualizations are available and try them out.

Part 5: Biological Interpretation

Validate trajectory makes biological sense:

  1. Check marker progression:
    • Do stem markers decrease along pseudotime?
    • Do differentiation markers increase?
    • Are intermediate states present?
  2. Compare with known biology:
    • Does trajectory match known myeloid development?
    • Are transcription factors expressed at expected times?
  3. Discuss to what extent it makes sense in systems like this to divide cells into discrete populations. What are the advantages and disadvantages?