[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CZ4Z87KRYY4KA49NHAFW4W":3,"skill-same:01M6CZ4Z87KRYY4KA49NHAFW4W":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":52},"01M6CZ4Z87KRYY4KA49NHAFW4W","scrnaseq-trajectory-analysis",null,"Pseudotime inference and RNA velocity analysis of single-cell RNA-seq data using Monocle3 and scVelo.","Scientific-Tooling\u002Fstructured-intelligence","Scientific-Tooling","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F267453265?v=4","01M6CZ1SE6GGD4F67EAQ0PVX38","Scientific Tooling","01M6CZ1SJKCFVGH10Z3A152K02",4,"MIT","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fscrnaseq-trajectory-analysis\u002FSKILL.md",[],[19,20,21,22,23,24,25,26],"analysis","scrnaseq trajectory analysis","inference","data","velocity","RNA","cell","scvelo","2026-11-10 10:12:30",false,"---\nname: scrnaseq-trajectory-analysis\ndescription: Pseudotime inference and RNA velocity analysis of single-cell RNA-seq data using Monocle3 and scVelo.\n---\n\n# Skill: scRNA-seq Trajectory Analysis\n\n## Use When\n\n- User wants to infer developmental or differentiation trajectories from a single-cell dataset.\n- User wants to order cells along a pseudotime axis representing a biological process (e.g., differentiation, activation, cell cycle).\n- User wants to compute RNA velocity to infer the future transcriptional state of cells from spliced\u002Funspliced read ratios.\n- User wants to identify genes that change significantly along a trajectory.\n\n## Inputs\n\n- Required:\n  - Clustered and annotated AnnData (.h5ad) or Seurat object (.rds) with UMAP coordinates\n- Optional:\n  - Analysis type: `pseudotime`, `velocity`, or `both` (default: `pseudotime`)\n  - Pseudotime tool: `monocle3` or `diffusion-pseudotime` (default: `monocle3`)\n  - Root cell cluster or cell type (required for pseudotime; must be biologically the starting state)\n  - For RNA velocity: spliced\u002Funspliced count matrices as a loom file (`velocyto` output) or STARsolo with `--soloFeatures Velocyto`\n  - Velocity model: `stochastic` or `dynamical` (default: `stochastic`; use `dynamical` for more accuracy at higher compute cost)\n  - Gene significance threshold for pseudotime-variable genes (default: q-value \u003C 0.05)\n\n## Workflow\n\n### Pseudotime (Monocle3)\n\n1. Convert the AnnData or Seurat object to a Monocle3 CellDataSet using `as.cell_data_set()` (Seurat) or the `scverse` Monocle3 bridge.\n2. Run `learn_graph()` to fit a principal graph through the UMAP embedding. The graph represents the trajectory topology.\n3. Set root cells by specifying the root cluster or cell type. If multiple root candidates exist, present options to the user. Root selection must be biologically justified (earliest developmental state, undifferentiated progenitors, etc.).\n4. Order cells along pseudotime with `order_cells()`. Inspect the pseudotime UMAP plot for biological plausibility (expected early → late ordering).\n5. Identify genes that change significantly along the principal graph using `graph_test()` (Moran's I spatial autocorrelation). Retain genes with q-value \u003C 0.05.\n6. Plot gene expression trends along pseudotime for the top significant genes (`plot_genes_in_pseudotime`).\n\n### RNA Velocity (scVelo)\n\n1. Generate spliced\u002Funspliced\u002Fambiguous count matrices:\n   - Using velocyto CLI: `velocyto run10x` on the Cell Ranger output BAM and genome GTF.\n   - Using STARsolo: add `--soloFeatures Velocyto` to the STAR command during alignment.\n2. Load the loom file alongside the AnnData object; merge spliced, unspliced, and ambiguous layers.\n3. Preprocess velocity data: `scv.pp.filter_and_normalize()` (filter genes with insufficient spliced\u002Funspliced counts), `scv.pp.moments()` (compute first and second-order moments of gene expression for neighbors).\n4. Estimate RNA velocity:\n   - Stochastic model: `scv.tl.velocity(mode='stochastic')` — fast, suitable for exploratory analysis.\n   - Dynamical model: `scv.tl.recover_dynamics()` then `scv.tl.velocity(mode='dynamical')` — more accurate, identifies kinetic rate parameters (transcription, splicing, degradation rates).\n5. Compute velocity graph: `scv.tl.velocity_graph()`. Project velocity arrows onto the UMAP: `scv.pl.velocity_embedding_stream()`.\n6. Identify velocity genes (genes driving the velocity signal): `scv.tl.rank_velocity_genes()`.\n7. Compute latent time (a global pseudotime derived from velocity): `scv.tl.latent_time()` (dynamical model only).\n\n## Output Contract\n\n- Updated AnnData (.h5ad) or Seurat\u002FCellDataSet object with pseudotime values and\u002For velocity embeddings\n- UMAP colored by pseudotime (PDF)\n- Velocity stream plot on UMAP (PDF)\n- Pseudotime-variable genes table (TSV): gene, Moran's I, q-value, spatial autocorrelation\n- Gene expression along pseudotime plots for top 10 genes (PDF)\n- Velocity genes table (TSV): gene, velocity score, rank\n- Latent time UMAP (PDF, dynamical model only)\n\n## Limits\n\n- Pseudotime assumes a continuous biological process; applying it to unrelated or discrete cell populations produces meaningless orderings.\n- Root cell selection requires biological prior knowledge; incorrect root selection produces reversed or meaningless pseudotime.\n- RNA velocity requires spliced\u002Funspliced count matrices generated at the alignment step; these are not produced by default Cell Ranger output and must be generated separately with velocyto or STARsolo.\n- The dynamical scVelo model requires significantly more computation time (hours for large datasets) and convergence is not guaranteed for all genes.\n- Trajectory analysis is sensitive to clustering quality; poorly resolved clusters lead to discontinuous or looped trajectories.\n- RNA velocity assumptions (constant kinetics) may not hold in rapidly changing systems; interpret velocity arrows as directional tendencies, not deterministic predictions.\n- Common failure cases:\n  - Monocle3 `learn_graph()` producing a disconnected graph; increase `minimal_branch_len` or ensure the UMAP has smooth transitions between related clusters.\n  - scVelo `recover_dynamics()` failing due to insufficient cells expressing a gene in both spliced and unspliced forms; lower the `min_shared_counts` threshold.\n  - Velocyto CLI running for many hours on large BAM files; consider using STARsolo `--soloFeatures Velocyto` during alignment instead.\n","# Skill: scRNA-seq Trajectory Analysis\n\n## Use When\n\n- User wants to infer developmental or differentiation trajectories from a single-cell dataset.\n- User wants to order cells along a pseudotime axis representing a biological process (e.g., differentiation, activation, cell cycle).\n- User wants to compute RNA velocity to infer the future transcriptional state of cells from spliced\u002Funspliced read ratios.\n- User wants to identify genes that change significantly along a trajectory.\n\n## Inputs\n\n- Required:\n  - Clustered and annotated AnnData (.h5ad) or Seurat object (.rds) with UMAP coordinates\n- Optional:\n  - Analysis type: `pseudotime`, `velocity`, or `both` (default: `pseudotime`)\n  - Pseudotime tool: `monocle3` or `diffusion-pseudotime` (default: `monocle3`)\n  - Root cell cluster or cell type (required for pseudotime; must be biologically the starting state)\n  - For RNA velocity: spliced\u002Funspliced count matrices as a loom file (`velocyto` output) or STARsolo with `--soloFeatures Velocyto`\n  - Velocity model: `stochastic` or `dynamical` (default: `stochastic`; use `dynamical` for more accuracy at higher compute cost)\n  - Gene significance threshold for pseudotime-variable genes (default: q-value \u003C 0.05)\n\n## Workflow\n\n### Pseudotime (Monocle3)\n\n1. Convert the AnnData or Seurat object to a Monocle3 CellDataSet using `as.cell_data_set()` (Seurat) or the `scverse` Monocle3 bridge.\n2. Run `learn_graph()` to fit a principal graph through the UMAP embedding. The graph represents the trajectory topology.\n3. Set root cells by specifying the root cluster or cell type. If multiple root candidates exist, present options to the user. Root selection must be biologically justified (earliest developmental state, undifferentiated progenitors, etc.).\n4. Order cells along pseudotime with `order_cells()`. Inspect the pseudotime UMAP plot for biological plausibility (expected early → late ordering).\n5. Identify genes that change significantly along the principal graph using `graph_test()` (Moran's I spatial autocorrelation). Retain genes with q-value \u003C 0.05.\n6. Plot gene expression trends along pseudotime for the top significant genes (`plot_genes_in_pseudotime`).\n\n### RNA Velocity (scVelo)\n\n1. Generate spliced\u002Funspliced\u002Fambiguous count matrices:\n   - Using velocyto CLI: `velocyto run10x` on the Cell Ranger output BAM and genome GTF.\n   - Using STARsolo: add `--soloFeatures Velocyto` to the STAR command during alignment.\n2. Load the loom file alongside the AnnData object; merge spliced, unspliced, and ambiguous layers.\n3. Preprocess velocity data: `scv.pp.filter_and_normalize()` (filter genes with insufficient spliced\u002Funspliced counts), `scv.pp.moments()` (compute first and second-order moments of gene expression for neighbors).\n4. Estimate RNA velocity:\n   - Stochastic model: `scv.tl.velocity(mode='stochastic')` — fast, suitable for exploratory analysis.\n   - Dynamical model: `scv.tl.recover_dynamics()` then `scv.tl.velocity(mode='dynamical')` — more accurate, identifies kinetic rate parameters (transcription, splicing, degradation rates).\n5. Compute velocity graph: `scv.tl.velocity_graph()`. Project velocity arrows onto the UMAP: `scv.pl.velocity_embedding_stream()`.\n6. Identify velocity genes (genes driving the velocity signal): `scv.tl.rank_velocity_genes()`.\n7. Compute latent time (a global pseudotime derived from velocity): `scv.tl.latent_time()` (dynamical model only).\n\n## Output Contract\n\n- Updated AnnData (.h5ad) or Seurat\u002FCellDataSet object with pseudotime values and\u002For velocity embeddings\n- UMAP colored by pseudotime (PDF)\n- Velocity stream plot on UMAP (PDF)\n- Pseudotime-variable genes table (TSV): gene, Moran's I, q-value, spatial autocorrelation\n- Gene expression along pseudotime plots for top 10 genes (PDF)\n- Velocity genes table (TSV): gene, velocity score, rank\n- Latent time UMAP (PDF, dynamical model only)\n\n## Limits\n\n- Pseudotime assumes a continuous biological process; applying it to unrelated or discrete cell populations produces meaningless orderings.\n- Root cell selection requires biological prior knowledge; incorrect root selection produces reversed or meaningless pseudotime.\n- RNA velocity requires spliced\u002Funspliced count matrices generated at the alignment step; these are not produced by default Cell Ranger output and must be generated separately with velocyto or STARsolo.\n- The dynamical scVelo model requires significantly more computation time (hours for large datasets) and convergence is not guaranteed for all genes.\n- Trajectory analysis is sensitive to clustering quality; poorly resolved clusters lead to discontinuous or looped trajectories.\n- RNA velocity assumptions (constant kinetics) may not hold in rapidly changing systems; interpret velocity arrows as directional tendencies, not deterministic predictions.\n- Common failure cases:\n  - Monocle3 `learn_graph()` producing a disconnected graph; increase `minimal_branch_len` or ensure the UMAP has smooth transitions between related clusters.\n  - scVelo `recover_dynamics()` failing due to insufficient cells expressing a gene in both spliced and unspliced forms; lower the `min_shared_counts` threshold.\n  - Velocyto CLI running for many hours on large BAM files; consider using STARsolo `--soloFeatures Velocyto` during alignment instead.\n",{"name":5,"description":7},"main","5118e7fda890e9aa819cb71e003cd243d3a31970","skills\u002Fscrnaseq-trajectory-analysis",1,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence","https:\u002F\u002Fgithub.com\u002FScientific-Tooling","2026-11-03 00:01:40",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add Scientific-Tooling\u002Fstructured-intelligence --skill scrnaseq-trajectory-analysis",{"tool":45,"command":46},"bunx","bunx skills add Scientific-Tooling\u002Fstructured-intelligence --skill scrnaseq-trajectory-analysis",{"tool":48,"command":49},"pnpm","pnpm dlx skills add Scientific-Tooling\u002Fstructured-intelligence --skill scrnaseq-trajectory-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fscrnaseq-trajectory-analysis\u002FSKILL.md",true,[53,59,63],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"agents\u002Fclaude.yaml","REFERENCE","参考文档",370,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fscrnaseq-trajectory-analysis\u002Fagents\u002Fclaude.yaml",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"agents\u002Fopenai.yaml",371,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fscrnaseq-trajectory-analysis\u002Fagents\u002Fopenai.yaml",{"path":64,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":65,"sourceHtmlUrl":66},"config.yaml",293,"https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fscrnaseq-trajectory-analysis\u002Fconfig.yaml",[68,91,103,115,129,140],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":27},"01M6CZ6S2C54G03K71G77H22KE","structured-intelligence-skill-creator","Create or update repository skills that conform to local templates, provider metadata requirements, registry rules, and validation workflows.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstructured-intelligence-skill-creator\u002FSKILL.md",[],[75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90],"structured intelligence skill creator","skill creator","intelligence","structured","create","requirements","workflows","provider","update","registry","local","validation","metadata","repository","templates","Rules",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":27},"01M6CZ6M3JFN400406T1NPWNER","stat-survival-analysis","Estimate and compare survival functions using Kaplan-Meier curves and log-rank test, with optional Cox proportional hazards regression.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-survival-analysis\u002FSKILL.md",[],[19,98,99,100,101,102],"stat survival analysis","regression","log","functions","test",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":27},"01M6CZ6G5JPDZASM4DRD9QCTEE","stat-pca","Perform PCA on a numeric data matrix to reduce dimensionality, visualize sample structure, and identify top contributing features.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-pca\u002FSKILL.md",[],[110,111,112,113,22,114],"stat pca","sample","visualize","contributing","structure",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":27},"01M6CZ6D9A3N6849BT9VYFSBK5","stat-pairwise-correlation","Compute pairwise correlations and significance tests across all numeric variables, and produce a correlation heatmap.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-pairwise-correlation\u002FSKILL.md",[],[122,123,124,125,126,127,128],"stat pairwise correlation","correlation","produce","heatmap","compute","across","tests",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":27},"01M6CZ69DMF1PDKW83RWARQX6D","stat-nonlinear-embedding","Embed high-dimensional data into 2D using t-SNE or UMAP for exploratory visualization of sample or cell relationships.","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-nonlinear-embedding\u002FSKILL.md",[],[136,137,22,138,111,25,139],"stat nonlinear embedding","visualization","relationships","exploratory visualization",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":27},"01M6CZ65YZGJV40F2FZNH04PBS","stat-logistic-regression","Fit a logistic regression model for binary outcomes, report odds ratios and model performance (AUC-ROC, confusion matrix).","https:\u002F\u002Fgithub.com\u002FScientific-Tooling\u002Fstructured-intelligence\u002Fblob\u002Fmain\u002Fskills\u002Fstat-logistic-regression\u002FSKILL.md",[],[99,147,148,149,150,151],"stat logistic regression","report","model","outcomes","performance"]