scrnaseq-cell-type-annotation
Skill4 starsChanged 12 days agoMITView on GitHub
Marker-based and reference-based cell type annotation of single-cell RNA-seq clusters using SingleR, Azimuth, or manual curation.
In this repository56 other files it gives its agents.
- bioinformatics-env-setupSkill
- design-thermostable-mutationsSkill
- download-gdcSkill
- download-geoSkill
- download-sraSkill
- source-summarizerSkill
- genome-alignment-qcSkill
- genome-read-alignmentSkill
- genome-variant-annotationSkill
- genome-variant-callingSkill
- genome-variant-filteringSkill
- metagenome-assemblySkill
- metagenome-binningSkill
- metagenome-functional-profilingSkill
- metagenome-host-removalSkill
- metagenome-taxonomic-profilingSkill
- ncbi-eutilities-assistantSkill
- ngs-quality-controlSkill
- ngs-read-preprocessingSkill
- paper-to-briefSkill
- predict-protein-heat-stabilitySkill
- researchSkill
- rnaseq-alignment-qcSkill
- rnaseq-differential-expressionSkill
- rnaseq-functional-enrichmentSkill
- rnaseq-read-alignmentSkill
- rnaseq-read-countingSkill
- rnaseq-transcript-quantificationSkill
- rpsblast-assistantSkill
- scrnaseq-cellranger-countSkill
- scrnaseq-clusteringSkill
- scrnaseq-differential-expressionSkill
- scrnaseq-integrationSkill
- scrnaseq-quality-controlSkill
- scrnaseq-trajectory-analysisSkill
- search-enaSkill
- search-geoSkill
- search-gsaSkill
- search-ncbi-datasetsSkill
- search-sraSkill
- stat-analyze-distributionSkill
- stat-assess-data-qualitySkill
- stat-bayesian-estimationSkill
- stat-cluster-samplesSkill
- stat-compare-multiple-groupsSkill
- stat-compare-two-groupsSkill
- stat-fit-glmSkill
- stat-fit-linear-modelSkill
- stat-learn-bayesian-networkSkill
- stat-logistic-regressionSkill
- stat-nonlinear-embeddingSkill
- stat-pairwise-correlationSkill
- stat-pcaSkill
- stat-survival-analysisSkill
- structured-intelligence-skill-creatorSkill
- <skill-id>Skill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
If singler or combined: run SingleR using the specified reference dataset.
- Very specific: line 33
If azimuth or combined: run Azimuth reference mapping.
≈ “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
Skill: scRNA-seq Cell Type Annotation
Use When
- User has a clustered single-cell dataset and wants to assign biological cell type labels to clusters.
- User wants to use automated reference-based annotation (SingleR, Azimuth) alongside manual marker validation.
- User wants to generate per-cluster marker gene tables and visualizations.
- User needs cell type composition summaries across samples.
Inputs
- Required:
- Clustered AnnData (.h5ad) or Seurat object (.rds) with UMAP coordinates
- Optional:
- Framework:
scanpyorseurat(default:scanpy) - Annotation method:
singler,azimuth,manual, orcombined(default:combined) - Reference dataset for SingleR: e.g.,
HumanPrimaryCellAtlasData,BlueprintEncodeData,MouseRNAseqData, or path to a user-provided reference (default:HumanPrimaryCellAtlasData) - Azimuth reference tissue (e.g.,
pbmcref,bonemarrowref,lungref,kidneyref,brainref) - Custom marker gene list (YAML or CSV with cell type → gene list mapping)
- Minimum log2FC for marker genes (default: 0.25)
- Minimum fraction of cells expressing the gene in the cluster,
pct.1(default: 0.1)
- Framework:
Workflow
- Find cluster marker genes using Wilcoxon rank-sum test (
sc.tl.rank_genes_groupsin Scanpy orFindAllMarkersin Seurat). Retain genes with logFC > 0.25, pct.1 > 0.1, and adjusted p-value < 0.05. - Generate dot plots and feature plots for the top 5 marker genes per cluster to visualize expression specificity.
- If
singlerorcombined: run SingleR using the specified reference dataset. Map cluster-level pseudobulk profiles to reference cell types. Report per-cluster label and confidence score (delta.next statistic). - If
azimuthorcombined: run Azimuth reference mapping. Map query cells to the reference UMAP; assign predicted cell type label and confidence score per cell. - Cross-validate automated labels against canonical lineage markers from the literature (e.g., CD3D/CD3E for T cells, CD19/MS4A1 for B cells, LYZ/CD14 for monocytes, EPCAM for epithelial, PECAM1 for endothelial).
- Assign final cell type labels per cluster. Merge clusters with identical cell types if biologically justified; flag ambiguous clusters for manual review.
- Plot an annotated UMAP with cell type labels.
- Compute cell type composition per sample as a fraction of total cells; generate a stacked bar plot.
- Save annotated AnnData (.h5ad) or Seurat object (.rds) with
cell_typeannotation in obs/metadata.
Output Contract
- Annotated AnnData (.h5ad) or Seurat object (.rds) with
cell_typecolumn in obs - Marker gene table per cluster (TSV): gene, cluster, log2FC, pct.1, pct.2, adj_p_value
- Dot plot of top markers per cluster (PDF)
- Feature plots for canonical lineage markers (PDF)
- SingleR/Azimuth prediction table (TSV): cluster or cell barcode, predicted label, confidence score
- Annotated UMAP plot (PDF)
- Cell type composition table and stacked bar plot per sample (TSV + PDF)
Limits
- Automated annotation accuracy depends on reference dataset relevance to the tissue and species; cross-species or rare cell types may be mislabeled.
- Manual validation against literature markers is always required; treat automated labels as hypotheses.
- Azimuth reference panels are tissue-specific: check availability before use (PBMC, bone marrow, lung, kidney, brain, fetal development).
- Batch effects can cause the same cell type to split across clusters; address batch effects with scrnaseq-integration before annotation.
- Marker gene overlap between closely related subtypes (e.g., CD4+ T cell subsets) requires sub-clustering or additional markers for resolution.
- SingleR performs poorly when the query tissue contains cell types absent from the reference; spurious assignments appear with low confidence scores (delta.next < 0.05).
- Common failure cases:
- Reference dataset species mismatch (e.g., using a human reference for mouse data) causing all cells to map to the wrong types.
- Azimuth reference not installed or outdated; update with
SeuratData::InstallData(). - Marker-based annotation failing because the dataset is poorly clustered (resolution too low); re-cluster at higher resolution before annotating.
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.

