Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

bulktrajblend-trajectory-interpolationbulktrajblend 轨迹插值

Agent Skill

bulktrajblend-trajectory-interpolation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

682

周安装

29

GitHub Stars

964

下载量

239
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bulktrajblend-trajectory-interpolation(bulktrajblend 轨迹插值)
来源仓库:https://github.com/starlitnightly/omicverse
仓库路径:skills/bulktrajblend-trajectory-interpolation
安装命令:
npx skills add https://github.com/starlitnightly/omicverse --skill bulktrajblend-trajectory-interpolation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/starlitnightly/omicverse --skill bulktrajblend-trajectory-interpolation

简介

用于单细胞发育轨迹的 bulk RNA-seq 数据桥接与状态插值。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中处理 PDAC 等样本的轨迹补全任务。
  • 需结合 omicverse、scanpy、scvelo 库,按 SKILL.md 准备输入并运行插值流程。
  • 安装前请确认 Redis 或相关依赖是否就绪,避免因环境缺失导致执行失败。
  • bulktrajblend-trajectory-interpolation 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

BulkTrajBlend trajectory interpolation

Overview

Invoke this skill when users need to bridge gaps in single-cell developmental trajectories using matched bulk RNA-seq. It follows t_bulktrajblend.ipynb, showcasing how BulkTrajBlend deconvolves PDAC bulk samples, identifies overlapping communities with a GNN, and interpolates "interrupted" cell states.

Instructions

  1. Prepare libraries and inputs

- Import omicverse as ov, scanpy as sc, scvelo as scv, and helper functions like from omicverse.utils import mde; run ov.plot_set(). - Load the reference scRNA-seq AnnData (scv.datasets.dentategyrus()) and raw bulk counts with ov.utils.read(...) followed by ov.bulk.Matrix_ID_mapping(...) for gene ID harmonisation.

  1. Configure BulkTrajBlend

- Instantiate ov.bulk2single.BulkTrajBlend(bulk_seq=bulk_df, single_seq=adata, bulk_group=['dg_d_1','dg_d_2','dg_d_3'], celltype_key='clusters'). - Explain that bulk_group names correspond to raw bulk columns and the method expects unscaled counts.

  1. Set beta-VAE expectations

- Call bulktb.vae_configure(cell_target_num=100) (or pass a dictionary) to define expected cell counts per cluster. Mention that omitting the argument triggers TAPE-based estimation.

  1. Train or load the beta-VAE

- Use bulktb.vae_train(batch_size=512, learning_rate=1e-4, hidden_size=256, epoch_num=3500, vae_save_dir='...', vae_save_name='dg_btb_vae', generate_save_dir='...', generate_save_name='dg_btb'). - Highlight resuming with bulktb.vae_load('.../dg_btb_vae.pth') and the need to regenerate cells with consistent random seeds for reproducibility.

  1. Generate synthetic cells

- Produce filtered AnnData via bulktb.vae_generate(leiden_size=25) and inspect compositions with ov.bulk2single.bulk2single_plot_cellprop(...). - Save outputs to disk for reuse (adata.write_h5ad).

  1. Configure and train the GNN

- Call bulktb.gnn_configure(max_epochs=2000, use_rep='X', neighbor_rep='X_pca', gpu=0,...) to set hyperparameters. - Train using bulktb.gnn_train(); reload checkpoints with bulktb.gnn_load('save_model/gnn.pth'). - Generate overlapping community assignments through bulktb.gnn_generate().

  1. Visualise community structure

- Create MDE embeddings: bulktb.nocd_obj.adata.obsm['X_mde'] = mde(bulktb.nocd_obj.adata.obsm['X_pca']). - Plot clusters vs. discovered communities using sc.pl.embedding(..., color=['clusters','nocd_n'], palette=ov.utils.pyomic_palette()) and filtered subsets excluding synthetic labels with hyphens.

  1. Interpolate missing states

- Run bulktb.interpolation('OPC') (replace with target lineage) to synthesise continuity, then preprocess the interpolated AnnData (HVG selection, scaling, PCA). - Compute embeddings with mde, visualise with ov.pl.embedding, and compare to the original atlas.

  1. Analyse trajectories

- Initialise ov.single.pyVIA on both original and interpolated data to derive pseudotime, followed by get_pseudotime, ov.pp.neighbors, ov.utils.cal_paga, and ov.utils.plot_paga for topology validation.

  1. Defensive validation # Before BulkTrajBlend: verify bulk_group columns exist for g in bulk_group: assert g in bulk_df.columns, f"Bulk group '{g}' not in bulk data columns" # Verify celltype_key exists in reference assert celltype_key in adata.obs.columns, f"Cell type column '{celltype_key}' not in reference AnnData" # Verify gene name overlap shared = set(bulk_df.index) & set(adata.var_names) assert len(shared) > 100, f"Only {len(shared)} shared genes — harmonize gene IDs first"
  2. Troubleshooting tips

- If the VAE collapses (high reconstruction loss), lower learning_rate or reduce hidden_size. - Ensure the same generated dataset is used before calling gnn_train; regenerating cells changes the graph and can break checkpoint loading. - Sparse clusters may need adjusted cell_target_num thresholds or a smaller leiden_size filter to retain rare populations.

Examples

  • "Train BulkTrajBlend on PDAC cohorts, then interpolate missing OPC states in the trajectory."
  • "Load saved beta-VAE and GNN weights to regenerate overlapping communities and plot cluster vs. nocd labels."
  • "Run VIA on interpolated cells and compare PAGA graphs with the original scRNA-seq trajectory."

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.94%
按下载量换算84

Claude

30.03%
按下载量换算72

Cursor

22.34%
按下载量换算53

Gemini CLI

9.42%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills