cell-dynamics
Skill45 starsChanged 3 months agoMITView on GitHub
Understand cellular differentiation, state transitions, and dynamic processes through trajectory and velocity analysis. Use when user wants to study development, differentiation, cell fate decisions, or temporal dynamics. Triggers: "trajectory", "pseudotime", "RNA velocity", "differentiation", "cell fate", "how do cells develop", "lineage", "dynamics", "scVelo", "CellRank".
In this repository8 other files it gives its agents.
- cell-compositionSkill
- cell-interactionSkill
- differential-analysisSkill
- functional-analysisSkill
- publication-readySkill
- spatial-analysisSkill
- spatial-patternsSkill
- troubleshootSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 66
Use analyze_velocity_data tool with method selection:
- Very specific: line 76
Use visualize_data with plot_type="velocity":
- Very specific: line 114
Use analyze_trajectory_data tool with:
- Distinctive: line 147
Do velocity vectors align with spatial gradients?
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cell Dynamics Analysis
Overview
This skill answers: How do cells change over time, and what are their fate decisions?
Two complementary approaches:
- RNA Velocity: Infers directionality from spliced/unspliced ratios
- Pseudotime/Trajectory: Orders cells along developmental paths
Decision Tree: Which Approach?
Q: Does your data have spliced/unspliced information?
│
├─ YES (velocyto/kallisto processed)
│ │
│ └─ RNA Velocity Analysis
│ ├─ scVelo (deterministic) - Fast, good default
│ ├─ scVelo (dynamical) - More accurate, slower
│ └─ VeloVI - Deep learning, handles noise
│ │
│ └─ Then: CellRank for fate probability
│
└─ NO (standard scRNA-seq/spatial)
│
└─ Pseudotime Analysis
├─ Palantir - Multi-lineage, fate probabilities
├─ DPT (Diffusion Pseudotime) - Classic, fast
└─ PAGA - Trajectory + clusteringRNA Velocity Workflow
Prerequisites
Data must contain:
adata.layers['spliced']: Spliced countsadata.layers['unspliced']: Unspliced counts
Check with: 'spliced' in adata.layers and 'unspliced' in adata.layers
Step 1: Preprocessing for Velocity
Velocity-specific preprocessing:
1. Filter genes by spliced/unspliced detection
2. Normalize spliced and unspliced separately
3. Compute moments (first/second order)Step 2: Compute Velocity
Use analyze_velocity_data tool with method selection:
| Mode | Speed | Accuracy | When to Use |
| deterministic | Fast | Good | Initial exploration |
| stochastic | Moderate | Better | Publication, noisy data |
| dynamical | Slow | Best | Complex dynamics, time recovery |
Step 3: Visualize Velocity
Use visualize_data with plot_type="velocity":
subtype="stream": Velocity streamlines on embeddingsubtype="phase": Phase portraits for specific genessubtype="proportions": Spliced/unspliced ratiossubtype="heatmap": Velocity across pseudotime
Step 4: Fate Analysis with CellRank
After velocity computation:
1. Use analyze_trajectory_data with method="cellrank"
2. Identify initial/terminal states
3. Compute fate probabilities
4. Identify lineage driver genesPseudotime Workflow (No Velocity Data)
Method Selection
| Method | Strengths | When to Use |
| Palantir | Multi-lineage, fate probs | Complex differentiation |
| DPT | Fast, robust | Simple trajectories |
| PAGA | Topology discovery | Unknown structure |
Step 1: Define Root Cell
Critical for pseudotime:
Options for defining root:
1. Known marker gene expression (e.g., stem cell markers)
2. Specific cluster known to be progenitor
3. User-specified cell barcodeStep 2: Compute Trajectory
Use analyze_trajectory_data tool with:
method: "palantir", "dpt", or "cellrank"root_cellorroot_cluster: Starting point
Step 3: Visualize Trajectory
Use visualize_data with plot_type="trajectory":
subtype="pseudotime": Cells colored by pseudotimesubtype="fate_map": Fate probability heatmapsubtype="gene_trends": Expression along trajectorysubtype="circular": Circular trajectory plot
Biological Interpretation
What Velocity Tells You
- Direction of differentiation: Where cells are heading
- Dynamic genes: Genes actively changing
- State transitions: Intermediate cell states
- Terminal states: End points of differentiation
What Pseudotime Tells You
- Ordering of cells: Relative developmental time
- Branching points: Fate decision locations
- Lineage relationships: Which states lead to which
- Driver genes: Genes driving transitions
Spatial Context
Combining Velocity with Space
Questions to explore:
- Do velocity vectors align with spatial gradients?
- Are terminal states localized to specific regions?
- How does spatial organization relate to developmental time?
Visualization Tips
- Overlay velocity arrows on spatial coordinates
- Color spatial plots by pseudotime
- Identify spatial zones of active differentiation
Common Analysis Scenarios
Tumor Heterogeneity
Focus on:
- Cancer stem cell identification
- Differentiation hierarchies within tumor
- EMT transitionsDevelopment
Focus on:
- Lineage specification
- Progenitor identification
- Temporal gene programsRegeneration/Wound Healing
Focus on:
- Activation states
- Re-differentiation paths
- Spatial gradients of repairTroubleshooting
| Issue | Cause | Solution |
| No velocity vectors | Low unspliced counts | Check data quality, try VeloVI |
| Random directions | Steady state cells | Focus on dynamic subpopulations |
| Wrong root assignment | Biological uncertainty | Try multiple roots, validate with markers |
| Disconnected trajectory | Batch effects | Integrate samples, increase neighbors |
Output Summary
Successful dynamics analysis provides:
- Pseudotime values: Ordering of cells
- Velocity vectors: Direction of change
- Fate probabilities: Likelihood of terminal states
- Driver genes: Key regulators of transitions
- Spatial mapping: Where dynamics occur in tissue
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

