Universal 上下文验证
- 作者仓库星标 330
- 许可证 MIT
- 作者仓库 claude-skill-registry
Universal Single-Cell Annotator
This skill wraps multiple cell type annotation strategies into a single Python class. It allows agents to flexibly choose between rule-based (markers), data-driven (CellTypist), or reasoning-based (LLM) approaches depending on the context.
When to Use This Skill
- Initial Analysis: When processing raw AnnData objects.
- Validation: When cross-referencing automated labels with known markers.
- Discovery: When identifying rare cell types using LLM reasoning on marker lists.
Core Capabilities
- Marker-Based Scoring: Scores cells based on provided gene lists (e.g., "T-cell": ["CD3D", "CD3E"]).
- Deep Learning Reference: Wraps
celltypistto transfer labels from massive atlases. - LLM Reasoning: Extracts top markers per cluster and constructs prompts for LLM interpretation.
Workflow
- Load Data: Ensure data is in
AnnDataformat (standard for Scanpy). - Choose Strategy:
- Use Markers if you have a known gene panel.
- Use CellTypist for broad immune/tissue profiling.
- Use LLM for novel clusters.
- Annotate: Run the corresponding method.
- Inspect: Check
adata.obsfor the new annotation columns.
Example Usage
User: "Annotate this dataset looking for T-cells and B-cells."
Agent Action:
from universal_annotator import UniversalAnnotator
import scanpy as sc
adata = sc.read_h5ad('data.h5ad')
annotator = UniversalAnnotator(adata)
markers = {
'T-cell': ['CD3D', 'CD3E', 'CD8A'],
'B-cell': ['CD79A', 'MS4A1']
}
annotator.annotate_marker_based(markers)
# Results in adata.obs['predicted_cell_type']- 流狐分类
- AI 智能
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @majiayu000 · MIT
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- Python
- 检测到的文件与系统行为
-
- 只读
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Initial Analysis: When processing raw AnnData objects. Validation: When cross-referencing automated labels with known markers. Discovery: When identifying rare cell types using LLM reasoning on marker lists.
Marker-Based Scoring: Scores cells based on provided gene lists (e.g., "T-cell": ["CD3D", "CD3E"]). Deep Learning Reference: Wraps celltypist to transfer labels from massive atlases. LLM Reasoning: Extracts top markers per cluster and constructs prompts for…
Load Data: Ensure data is in AnnData format (standard for Scanpy). Choose Strategy: Use Markers if you have a known gene panel.
User: "Annotate this dataset looking for T-cells and B-cells." Agent Action:
# Universal Single-Cell Annotator
This skill wraps multiple cell type annotation strategies into a single Python class. It allows agents to flexibly choose between rule-based (markers), data-driven (CellTypist), or reasoning-based (LLM) approaches depending on the context.
## When to Use This Skill
* **Initial Analysis**: When processing raw AnnData objects.
* **Validation**: When cross-referencing automated labels with known markers.
* **Discovery**: When identifying rare cell types using LLM reasoning on marker lists.
## Core Capabilities
1. **Marker-Based Scoring**: Scores cells based on provided gene lists (e.g., "T-cell": ["CD3D", "CD3E"]).
2. **Deep Learning Reference**: Wraps `celltypist` to transfer labels from massive atlases.
3. **LLM Reasoning**: Extracts top markers per cluster and constructs prompts for LLM interpretation.
## Workflow
1. **Load Data**: Ensure data is in `AnnData` format (standard for Scanpy).
2. **Choose Strategy**:
* Use **Markers** if you have a known gene panel.
* Use **CellTypist** for broad immune/tissue profiling.
* Use **LLM** for novel clusters.
3. **Annotate**: Run the corresponding method.
4. **Inspect**: Check `adata.obs` for the new annotation columns.
## Example Usage
**User**: "Annotate this dataset looking for T-cells and B-cells."
**Agent Action**:
```python
from universal_annotator import UniversalAnnotator
import scanpy as sc
adata = sc.read_h5ad('data.h5ad')
annotator = UniversalAnnotator(adata)
markers = {
'T-cell': ['CD3D', 'CD3E', 'CD8A'],
'B-cell': ['CD79A', 'MS4A1']
}
annotator.annotate_marker_based(markers)
# Results in adata.obs['predicted_cell_type']
``` 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> When to Use This Skill → Core Capabilities → Workflow → Example Usage
要点 -> Initial Analysis · Validation · Discovery · Marker-Based Scoring · Deep Learning Reference · LLM Reasoning · Load Data · Choose Strategy
文件/命令 -> celltypist · AnnData · adata.obs · immune/tissue
内容 SHA-256 -> 284e8827de23
方法与流程
适用与边界
原文中的明确线索
celltypist、AnnData、adata.obs、immune/tissue