inspect-data-and-draw-schematics-with-mcp
Inspect an admitted data file and render a conceptual Graphviz schematic through an already configured data-utilities MCP service. Use for bounded format/metadata triage or a reproducible workflow figure with that service; do not use schematics as data plots or assume an unregistered MCP tool exists.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 2
01 前言 Front Matter
- name
- inspect-data-and-draw-schematics-with-mcp
- license
- MIT
- metadata
- { "cpus": "2", "tags": "mcp, data-utilities", "image": "docker://ghcr.io/lijinbio/mcp-data-utilities@sha256:e3afbd62473f9eba7ac4665964c4312a1272f684b1cd8b17a0a0d5a63add0396", "mem_gb": "8", "status": "community", "compute": "1 CPU, 4 GB requested; bounded inspection 12.9 seconds, schematic 0.5 seconds in the tested allocation", "version": "0.1.1", "category": "utilities", "scheduler": "optional", "mcp-server": "data-utilities", "time_limit": "00:30:00", "tested-with": "aiscientist-mcp-data-utilities 0.0.2, common 0.0.4, MCP 2.3.0, Python 3.14.3, Graphviz 2.44.0; real 1.35 GB HECA file and original PNG parity", "requires-gpu": "false", "requires-network": "runtime", "requires-secrets": "none", "mcp-package-version": "0.0.2" }
- description
- Inspect an admitted data file and render a conceptual Graphviz schematic through an already configured data-utilities MCP service. Use for bounded format/metadata triage or a reproducible workflow figure with that service; do not use schematics as data plots or assume an unregistered MCP tool exists.
03 SKILL.md 正文
Inspect files and draw schematics through MCP
Use the client's registered data-utilities service and actual advertised tool names. If it
is absent, keep existing inspect_dataset/make_schematic or the established standalone
workflow. Do not invent an MCP prefix or substitute an unpublished image. The pinned image is the upstream data-utilities-v0.0.2 release. The operator must register its matching
service and tool catalog before use.
Inspect before assuming the format
inspect_dataset(path, analysis_id, rerun) uses the bound DATA_UTILITIES_DATASET when path
is omitted. An explicit path must be within operator-approved DATA_UTILITIES_READ_ROOTS on
the service host. A remote-host path must be mapped by the client adapter; do not silently
read an unrelated local file when admission fails.
The tool returns peek, description, and raw_data_to_llm. The deterministic evidence includes
magic bytes, size, VCF assembly/sample facts, HDF5 shape/tree metadata, table columns, or an
unknown/binary descriptor. Only the bounded file head and metadata are read; matrix values are
not loaded for this inspection. A malformed or unknown format remains best-effort evidence,
while missing/disallowed files and external HDF5 file links are errors.
An optional explicitly configured model may summarize the bounded evidence. Inspect the
reported source: without a model the original deterministic fallback is expected. Raw file
samples can reach that configured endpoint when raw_data_to_llm=true. Large inspections return a marked response_omitted preview and full_result points to a
complete per-attempt JSON under artifact_root; polling uses the same bounded preview.
A description is not new evidence for an assembly, sample, gene or row count absent from peek.
Render a conceptual figure
make_schematic(source, basename, analysis_id, rerun) takes Graphviz DOT text and creates a
PNG plus its auditable DOT source. It is deterministic rendering; it does not call a model to
draw pixels. Use the analysis tools for figures computed from data. The server sanitizes the
basename and confines outputs to artifacts/figures/; external image/file references are refused.
Check returned width, height, aspect warnings and the actual image before embedding it.
A missing Graphviz dependency is a failed figure, even if its DOT source was saved. The result's
figure is relative to artifact_root; absolute paths refer to the server and require explicit
artifact collection by the client.
These short tools default to inline execution. If configured for Slurm/local, poll
data_utilities_job_status(analysis_id, task_id) until COMPLETED. Retain task IDs and any
Slurm job ID; do not interpret a pending or failed call as a generated output.
Evidence for this migration
The service inspected the real public HECA object (265,767 cells x 36,601 genes, 1.35 GB), reading 262,144 head bytes plus HDF5 metadata. Its structured inspection matched the original code. A real Graphviz 2.44.0 workflow figure matched the old renderer's PNG bytes. These checks cover format triage and rendering, not biological validity or the optional model-description path. Report the actual observed format, boundedness, model use, dimensions, warnings and artifact paths.
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.