single-cell-foundation-model-langcell
Skill1.1k starsChanged 8 months agoMITView on GitHub
Use this skill when a task involves the LangCell project for single-cell language-cell modeling, especially zero-shot cell type annotation, few-shot annotation, LangCell-CE finetuning, Geneformer-style tokenization, or preparing text descriptions for candidate cell identities and multimodal cell-text matching workflows.
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about PharMolix/OpenBioMed
The biggest 1 of 1 mention linking to the repository that our crawl found. Each line is their own headline.
In this repository45 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- admet-predictionSkill
- antibody-design-iggmSkill
- antibody-structure-prediction-tfoldSkill
- binding-affinity-prediction-prodigySkill
- biomedical-literature-searchSkill
- biomed-skill-creatorSkill
- biomed-skill-routerSkill
- cellxgene-census-querySkill
- chembl-querySkill
- disease-drug-intelligenceSkill
- drug-candidate-discoverySkill
- drug-drug-interaction-analysisSkill
- drug-lead-analysisSkill
- functional-protein-designSkill
- iupac-name-identification-biot5Skill
- kegg-querySkill
- molecule-biochemical-significance-query-biot5Skill
- mutation-design-aavSkill
- mutation-design-gfpSkill
- ppi-string-querySkill
- protein-function-predictionSkill
- protein-ligand-binding-analysis-plipSkill
- protein-mutation-analysisSkill
- protein-structure-design-boltzgenSkill
- protein-subcellular-localization-prediction-biot5Skill
- pubchem-querySkill
- retrosynthesis-planningSkill
- similar-protein-retrievalSkill
- single-cell-atac-seq-peak-calling-annotaionSkill
- single-cell-atac-seq-qc-processingSkill
- single-cell-foundation-model-geneformerSkill
- single-cell-foundation-model-scgptSkill
- single-cell-multi-omics-analysis-scviSkill
- single-cell-multi-omics-data-harmonizationSkill
- single-cell-proteomics-data-processingSkill
- single-cell-proteomics-peptide-identificationSkill
- single-cell-scrna-seq-analysis-scanpySkill
- single-cell-foundation-model-stofmSkill
- spatial-transcriptomics-spatial-data-ioSkill
- structure-prediction-boltz-2Skill
- target-based-lead-designSkill
- target-drug-reportSkill
- text-based-molecule-editingSkill
- uniprot-querySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 8 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Use this skill for the local LangCell project at /DATA/disk0/zhaosy/home/LangCell.
- Distinctive: line 25
Do not use this skill for ordinary Scanpy analysis that does not depend on LangCell.
- Distinctive: line 30
Check that the input is already tokenized, or route through preprocessing first.
- Distinctive: line 31
Check whether the required external assets exist: checkpoints, tokenized dataset, ontology / text-description JSON.
- Distinctive: line 32
Prefer the zero-shot path first if the user is exploring LangCell rather than benchmarking a supervised baseline.
- Distinctive: line 38
Start here for most LangCell usage.
- Very specific: line 45
Use LangCell-annotation-zeroshot/zero-shot.ipynb as the primary reference path.
- Very specific: line 49
Use LangCell-annotation-fewshot/fewshot.py when only a tiny labeled support set is available and the user still wants the multimodal …
- Very specific: line 54
Use LangCell-CE-annotation/finetune.py when the user wants a standard supervised classifier on top of the pretrained cell encoder.
- Very specific: line 61
read AnnData with scanpy
- Very specific: line 69
Do not claim raw .h5ad can be passed directly into LangCell inference.
- Distinctive: line 70
Do not assume checkpoints live in the repo.
- Distinctive: line 71
Do not treat zero-shot prediction as plain nearest-neighbor on cell embeddings.
- Very specific: line 72
Do not assume label columns are named consistently.
- Distinctive: line 73
If new cell types are needed, prepare textual descriptions carefully instead of inventing bare labels with no ontology context.
- Very specific: line 77
Read references/local-usage.md for entry points, asset requirements, and practical checks.
- Very specific: line 78
Read references/model-notes.md when the task depends on LangCell's multimodal design or paper-level motivation.
≈ “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
LangCell
Use This Skill When
Use this skill for the local LangCell project at /DATA/disk0/zhaosy/home/LangCell.
It is the right choice when the task involves:
- zero-shot cell identity or cell type annotation from tokenized single-cell data
- few-shot cell type annotation with very limited labels
- finetuning only the LangCell cell encoder (
LangCell-CE) - preprocessing AnnData into the tokenized format expected by LangCell
- preparing text descriptions for candidate cell identities
- understanding how LangCell combines cell embeddings and text embeddings
Do not use this skill for ordinary Scanpy analysis that does not depend on LangCell.
Start Here
- Confirm whether the user wants zero-shot annotation, few-shot annotation, or cell-encoder-only finetuning.
- Check that the input is already tokenized, or route through preprocessing first.
- Check whether the required external assets exist: checkpoints, tokenized dataset, ontology / text-description JSON.
- Prefer the zero-shot path first if the user is exploring LangCell rather than benchmarking a supervised baseline.
Choose A Path
Zero-shot annotation
Start here for most LangCell usage. The defining behavior is:
- encode cells with
cell_bert + cell_proj - encode candidate texts with
text_bert + text_proj - score cell-text matches with
ctm_head - combine similarity and matching scores for final predictions
Use LangCell-annotation-zeroshot/zero-shot.ipynb as the primary reference path.
Few-shot annotation
Use LangCell-annotation-fewshot/fewshot.py when only a tiny labeled support set
is available and the user still wants the multimodal LangCell path.
LangCell-CE finetuning
Use LangCell-CE-annotation/finetune.py when the user wants a standard
supervised classifier on top of the pretrained cell encoder.
Preprocessing
LangCell does not take raw .h5ad directly for these downstream scripts. First:
- read AnnData with
scanpy - add
obs["n_counts"] - ensure
var["ensembl_id"]exists - tokenize with
LangCellTranscriptomeTokenizer - save with
save_to_disk(...)
Guardrails
- Do not claim raw
.h5adcan be passed directly into LangCell inference; tokenization is required first. - Do not assume checkpoints live in the repo. The official repo expects external downloads.
- Do not treat zero-shot prediction as plain nearest-neighbor on cell embeddings; the project combines similarity and cell-text matching.
- Do not assume label columns are named consistently. The repo checks several alternatives such as
celltype,cell_type,str_labels, andlabels. - If new cell types are needed, prepare textual descriptions carefully instead of inventing bare labels with no ontology context.
Read More Only If Needed
- Read
references/local-usage.mdfor entry points, asset requirements, and practical checks. - Read
references/model-notes.mdwhen the task depends on LangCell's multimodal design or paper-level motivation.
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.

