qc-cellranger-with-mcp
Run ambient correction, filtering and doublet removal through an already configured CellQC MCP service for raw and filtered Cell Ranger deliveries. Use when this service is present and QC checkpoints must feed another analysis service; keep the standalone CellQC method for deployments without the MCP service.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 2
01 前言 Front Matter
- name
- qc-cellranger-with-mcp
- license
- MIT
- metadata
- { "cpus": "16", "tags": "mcp, cellqc", "image": "docker://ghcr.io/lijinbio/mcp-cellqc@sha256:d0f456eb4c76c848dc671dfc2e9bcae5221e5bfd5363b2acd8d3769749e3b500", "mem_gb": "80", "status": "community", "compute": "Service default: 16 CPUs, 80 GB, 8 hours; size the real cohort separately", "version": "0.1.2", "category": "single-cell", "scheduler": "optional", "mcp-server": "cellqc", "time_limit": "02:00:00", "tested-with": "aiscientist-mcp-cellqc 0.0.5, common 0.0.4; image and default Docker CLI smoke; frozen CellQC 0.3.6 environment; strict cohort parity and website acceptance pending", "requires-gpu": "false", "requires-network": "install", "requires-secrets": "none", "mcp-package-version": "0.0.5" }
- description
- Run ambient correction, filtering and doublet removal through an already configured CellQC MCP service for raw and filtered Cell Ranger deliveries. Use when this service is present and QC checkpoints must feed another analysis service; keep the standalone CellQC method for deployments without the MCP service.
03 SKILL.md 正文
QC Cell Ranger deliveries through MCP
Use the registered cellqc service for raw 10x deliveries, retaining the current
qc-snrna-with-cellqc-standalone workflow when that service is unavailable. Discover the real
client tool names and schemas; do not assume an unregistered mcp_ alias exists. This new
community skill pins the upstream cellqc-v0.0.5 release image; the released standalone skill keeps its own image.
The 0.0.3 validation image failed strict parity: its full three-sample run retained 34,274 cells in total, but human barcode membership and doublet/ambient diagnostics differed from the original environment. Version 0.0.4 restores all 508 original scientific package archives and isolates the MCP interpreter. Version 0.0.5 preserves that environment and fixes activation for the default Docker entry point. Its image/default-CLI smoke passed; the frozen-environment full-cohort comparison and the 0.0.5 website acceptance are still pending. Require recorded strict parity and website acceptance before cutover; successful task completion alone does not establish interchangeable results.
Admit the correct inputs
run_cellqc accepts dataset, additional dataset_paths, optional library samples,
analysis_id, and QC settings. The operator sets CELLQC_DATASET and CELLQC_READ_ROOTS.
Paths must exist on the service host. Use raw and filtered matrices for ambient correction;
an .h5ad alone calls for the scRNA service's run_scanpy_qc, not invented raw droplets.
Supported deliveries include H5 files, matrix folders, and the supported Cell Ranger archives.
Check species and chemistry inferred from Cell Ranger metadata. Confirm nreaction from
library preparation when it is not known; it is not inferred from gene expression.
Submit meaningful settings
Choose max_pct_mt, min_counts, and min_features for cells versus nuclei and the tissue.
State which ambient_method is applied and which ambient_compare is only a diagnostic.
Keep doublet_decider, chemistry/reaction assumptions, and seed in provenance. Do not run
another doublet-removal tool after this pipeline merely because it is available.
Call run_cellqc once and retain analysis_id, task_id, and the real Slurm job_id if
returned. Poll cellqc_job_status(analysis_id, task_id) until COMPLETED. Inline calls wait
inside an existing allocation; local execution requires that process/container to stay alive.
Use a new attempt only after the active one finishes. Failure or missing dependencies are not QC.
Validate the cohort and handoff
Check every library's raw, filtered, and retained counts, ambient estimates, applied correction, mitochondrial genes, doublet calls, and removal ledger. BAM-dependent nuclear-fraction evidence must be labeled unavailable when no BAM was supplied. Species remain separate; do not merge incompatible gene spaces. A large removal fraction or ambient disagreement requires inspection, not silent suppression of the warning.
For a multi-species result, iterate every entry in the checkpoints mapping and collect each
entry's checkpoint; the singular checkpoint_path and adata_qc.h5ad represent only the
first species. Never infer that collecting that one file transfers the complete cohort.
Collect only the advertised artifacts and checkpoint outputs from the service. Use the application's explicit checkpoint collector or an operator-configured scRNA handoff; an absolute server path alone does not transfer a file. When QC is rerun and upstream checkpoints change, start a new downstream scRNA analysis instead of reusing old clustering.
Report parameters, applied-versus-compared methods, sample/species counts, versions, task IDs, all missing evidence and delivered checkpoints. Source parity tests and a new MCP Docker image build exist; the target site's full-cohort and website acceptance evidence determines cutover. This skill alone does not assert that deployment acceptance has completed.
04 同仓库更多 Skills
verb-object-with-tool
One or two sentences on what the skill does and when to use it. Name the tool, the input it takes and the output it produces, then list the situations that should trigger it (for example "Use when setting up X, writing a Y config, or diagnosing a failed Z run").
write-variant-tables
Write the five standard variant-annotation result tables - consequence, impact and ClinVar-significance distributions, a ClinVar pathogenic and likely-pathogenic list, and a shortlist of rare, damaging variants not in ClinVar - plus a JSON summary, from an annotated per-variant TSV (VEP consequence and impact, SIFT, PolyPhen, max population AF, rsID, ClinVar significance), in pure Python without re-parsing the VCF or re-running VEP. Use when a study needs these tables with a different rarity cutoff, impact set or damaging-predictor rule, or when rebuilding them from an existing annotation table. In AiScientist, annotate_variants already writes the default tables, so use this only for a custom cut.
rank-phenotype-differentials-with-mcp
Map clinical phenotype text to grounded HPO terms and rank a research differential through an already configured phenotype-diagnosis MCP service with LIRICAL and optional literature adjudication. Use for explicit service-based analysis while preserving negation, uncertainty and original probabilities; retain the established workflow when the service is unavailable.
qc-vcf-callset
Judge whether a germline VCF callset is trustworthy before interpreting any variant - Ti/Tv, Het/Hom, SNP, indel and multiallelic counts, sample count and genotype call rate from bcftools stats (falling back to cyvcf2, then to a plain-Python Ti/Tv scan) - and flag values outside the expected human WGS or WES ranges. Writes tables/vcf_qc_summary.csv and data/vcf_qc.json with a qc_flags list. Use when a VCF (one sample or a cohort) arrives for annotation or prioritization, when a Ti/Tv or Het/Hom value needs interpreting, or when deciding whether downstream variant tables must carry a low-confidence caveat.
prioritize-clinical-variants
Rank annotated variants into research-triage tiers (ClinVar pathogenic, likely pathogenic, VUS favouring pathogenic, VUS, likely benign, benign) from ClinVar significance used verbatim, gnomAD allele frequency against a dominant or recessive disease-model cutoff and the ACMG BA1 5 percent rule, and in-silico predictors (SIFT, PolyPhen, REVEL, CADD, AlphaMissense) as supporting evidence only. Pure Python; reads a per-variant annotation TSV and writes a tier-sorted CSV with the evidence for each tier plus a JSON of tier counts. Use when a rare-variant list from VEP, ClinVar and gnomAD annotation must be ordered for review (which variants to look at first) or when choosing the disease model and cutoffs for that ordering. Research triage only, NOT a clinical ACMG/AMP classification.
normalize-vcf-with-bcftools
Normalize a VCF with bcftools norm before annotation or ClinVar/gnomAD matching - split multiallelic sites into biallelic records, atomize MNPs into SNPs, then left-align and trim indels against the reference FASTA of the same build - writing an indexed normalized.vcf.gz and a JSON of record counts before and after. Use when a VCF not known to be normalized (especially an indel-heavy one) will be matched against ClinVar, gnomAD or dbSNP, compared between callers or loaded into PLINK, or when a known pathogenic indel comes back as not in ClinVar. In AiScientist, the offline annotate_variants path already normalizes, so do not plan it as a separate step there.