single-cell-foundation-model-langcell

Annotates cell identity by aligning embeddings with text descriptions and ontology context.

1.1k|132|Updated Apr 13, 2023
One-click install
npx skills add https://github.com/PharMolix/OpenBioMed --skill single-cell-foundation-model-langcell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: single-cell-foundation-model-langcell
Source: https://github.com/PharMolix/OpenBioMed/tree/main/skills/single-cell-foundation-model-scrna-seq-langcell
Command: npx skills add https://github.com/PharMolix/OpenBioMed --skill single-cell-foundation-model-langcell

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

LangCell provides a language-aware framework for single-cell identity understanding, enabling zero-shot and few-shot cell type annotation guided by text descriptions and ontology context.

Core Features & Use Cases

  • Zero-shot and few-shot cell type annotation by aligning cell embeddings with textual descriptions.
  • LangCell-CE finetuning for cell encoder training.
  • Preprocessing AnnData into the tokenized format expected by LangCell.
  • Preparing text descriptions for candidate cell identities and enabling multimodal cell-text matching workflows.
  • Guardrails and practical checks via local usage guidance.

Quick Start

Confirm whether the user wants zero-shot annotation, few-shot annotation, or cell-encoder-only finetuning.

Frequently Asked Questions about single-cell-foundation-model-langcell

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform zero-shot single-cell annotation using text descriptions?

Zero-shot single-cell annotation aligns cell embeddings with textual descriptions of candidate cell identities. You provide ontology context and text descriptions, and the framework matches unlabeled cells to identities without requiring labeled training data.

How do I preprocess AnnData for single-cell tokenization workflows?

Preprocessing AnnData for single-cell tokenization converts raw expression matrices into the tokenized format expected by language-assisted models. This step ensures cell profiles and ontology JSONs are correctly structured for multimodal text-cell matching.

Can I use few-shot annotation when I only have a small number of labeled cells?

Few-shot annotation works when you have a small number of labeled cells by leveraging both text descriptions and limited labels. It aligns cell embeddings with ontology context to classify the remaining cells, reducing the labeled data requirement.

What is single-cell cell-encoder finetuning and when should I use it?

Cell-encoder finetuning adapts a pretrained model to your specific single-cell dataset by updating cell embeddings. Use it when zero-shot or few-shot annotation lacks accuracy and you need the encoder to learn dataset-specific biological signals.

Do I need ontology JSONs and external checkpoints for multimodal cell-text matching?

Multimodal cell-text matching requires ontology JSONs for cell identity definitions and external checkpoints for the pretrained encoders. These assets provide the structured vocabulary and model weights necessary to align text and cell embeddings.

How do I prepare text descriptions for candidate cell identities in single-cell analysis?

Preparing text descriptions for candidate cell identities involves writing biological summaries of each expected cell type using ontology terms. These descriptions guide the language model to match cell embeddings against the correct textual context.