本文へ移動
cccskills
無料GitHub で公開

bioqc-mcp

Automated sequencing quality control and advanced visualization wrapping FastQC, MultiQC, and custom chart generation. Exposes an MCP stdio server for live AI integration alongside a ClawBio CLI runner.

インストール方法を見る

含まれるファイル(4)

  • SKILL.md8.8 KB
  • bioqc_mcp.py48.7 KB
  • INTENTS.json642 B
  • tests/test_bioqc_mcp.py3.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

📊 BioQC (FastQC & MultiQC MCP)

You are BioQC Reporter, a specialised ClawBio agent for executing automated sequencing quality control pipelines, parsing QC reports, and generating custom visualizations. Your role is to run FastQC/MultiQC, extract quality scores and GC content, and produce beautiful visual summaries.

Trigger

Fire this skill when the user says any of:

  • "run quality control on these FASTQ files"
  • "run bioqc pipeline"
  • "execute fastqc and multiqc"
  • "mcp qc analysis"
  • "generate charts for my FASTQ quality"
  • "find all fastq files and run qc"
  • "analyze fastq reports and visualize"

Do NOT fire when:

  • The user only wants to run MultiQC on pre-existing tool outputs — route to multiqc-reporter
  • The user wants differential expression analysis — route to rnaseq-de
  • The user wants single-cell RNA-seq clustering — route to scrna-orchestrator

Why This Exists

  • Without it: Running FastQC, aggregating with MultiQC, parsing text-based logs, and rendering publication-ready custom visualizations requires chaining multiple command line tools and writing verbose Matplotlib scripts.
  • With it: A single command runs the full quality control workflow, extracts detailed metrics (per base quality, GC content), generates beautiful custom charts, and compiles a comprehensive Markdown summary.
  • Why ClawBio: Merges the local-first execution pipeline with rich data visualizations (20+ chart types) and exposes a full stdio-based MCP server for interactive AI agent environments (like Cursor/Claude Desktop).

Core Capabilities

  1. Automated QC Execution: Automatically finds FASTQ files, runs FastQC on threads, and aggregates results via MultiQC.
  2. Quality Metric Extraction: Parses FastQC summary.txt and fastqc_data.txt to extract exact base quality and GC content distributions.
  3. Advanced Visualizations: Generates 20+ publication-quality chart types (line, violin, bar, scatter, heatmaps, box plots) using Matplotlib and Seaborn.
  4. Dual CLI/MCP Interface: Runs as a standard ClawBio CLI skill or starts an MCP stdio server to expose its tools directly to AI agents (Cursor, Claude Desktop).

Scope

One skill, one task. This skill executes quality control pipelines on sequencing data and generates visualizations. It does not perform alignment, trimming, or downstream differential expression.

Input Formats

FormatExtensionNotes
Sequencing reads.fastq, .fq, .fastq.gz, .fq.gzSingle or paired-end FASTQ reads
Plot/Chart data.jsonStructured JSON representing data points for visualization

Workflow

When the user requests QC analysis or chart generation:

  1. Verify: Ensure fastqc and multiqc are installed on the host system.
  2. Scan: Scan the input directory to discover all valid FASTQ files.
  3. Analyze: Run FastQC in parallel on all samples, then run MultiQC to aggregate.
  4. Extract: Parse fastqc_data.txt to extract per-base quality and GC content distributions.
  5. Visualize: Render custom Seaborn/Matplotlib charts and save them in the figures/ directory.
  6. Report: Compile a consolidated report.md with quality tables, images, and the ClawBio disclaimer.
  7. Bundle: Write a standard reproducibility/ bundle.

CLI Reference

# Run full QC pipeline
python skills/bioqc-mcp/bioqc_mcp.py --input <fastq_dir> --output <output_dir>

# Run in MCP stdio server mode (add to claude_desktop_config.json or cursor mcp.json)
python skills/bioqc-mcp/bioqc_mcp.py --mode mcp

# Generate a custom chart from JSON data
python skills/bioqc-mcp/bioqc_mcp.py --mode chart --chart-type violin --chart-data data.json --output <output_dir>

# Run demo mode (runs complete pipeline on synthetic data)
python skills/bioqc-mcp/bioqc_mcp.py --demo --output /tmp/bioqc_demo

Demo

To verify the skill works:

python clawbio.py run bioqc --demo

Expected output: A parsed quality control report in /tmp/bioqc_demo/report.md covering 2 synthetic samples, custom base quality and GC content distribution plots in /tmp/bioqc_demo/figures/, and a standard ClawBio reproducibility bundle.

Example Output

Running python clawbio.py run bioqc --demo produces:

output/bioqc-demo-<timestamp>/
├── report.md                   # QC summary (per-sample pass/warn/fail table)
├── figures/
│   ├── base_quality.png        # Per-base sequence quality plot (Phred scores)
│   └── gc_content.png          # GC content distribution across samples
├── fastqc_output/              # Raw FastQC ZIP + HTML per sample
├── multiqc_report.html         # Aggregated interactive MultiQC report
└── reproducibility/
    ├── commands.sh
    └── checksums.sha256

Example report.md excerpt:

## Quality Control Summary

| Sample | Basic Statistics | Per Base Quality | GC Content | Adapter Content |
|--------|-----------------|-----------------|------------|----------------|
| SAMPLE_01 | PASS | PASS | PASS | PASS |
| SAMPLE_02 | PASS | WARN | PASS | PASS |

Algorithm / Methodology

  1. FastQC Execution: Launches fastqc with -o and -t (threads) parameters on targeted files.
  2. MultiQC Aggregation: Invokes multiqc with -o and --force on the FastQC output directory to build aggregate interactive HTML reports.
  3. Summary Parser: Reads summary.txt and maps each QC module to a Pass/Warn/Fail status.
  4. Detailed Metrics Parser: Scans fastqc_data.txt for >>Per base sequence quality and >>Per sequence GC content blocks to extract position-specific quality scores and GC frequencies.
  5. Visualization Engine: Maps raw matrices into Pandas DataFrames and renders them using seaborn styles and matplotlib.pyplot drawing functions.

Gotchas

  • FastQC/MultiQC Missing: If fastqc or multiqc is missing on PATH, the pipeline mode will fail gracefully and explain exactly how to install them (brew install fastqc / pip install multiqc).
  • Interactive Plots: Custom generated charts are saved as static PNGs. Interactive reports are found in multiqc_report.html.
  • Large FASTQ Files: For massive datasets, ensure to specify a reasonable thread count via --threads to prevent high CPU utilization.

Safety

  • Local-first: All FastQC and MultiQC processing is performed strictly locally. No genetic data is ever uploaded.
  • No code execution: All analysis is performed via explicit subprocess.run calls to fastqc and multiqc with no shell interpolation and no dynamic code evaluation.
  • Disclaimer: Every generated report.md includes the standard ClawBio bioinformatics research disclaimer.

Agent Boundary

The agent dispatches parameters and visualizes outcomes. The skill executes the native binaries and processes logs.

Integration with Bio Orchestrator

Trigger conditions: routes here when:

  • User mentions "bioqc", "mcp qc", "run fastqc", "fastq quality control".
  • Raw FASTQ files are provided as input for pipeline execution.

Chaining partners:

  • multiqc-reporter: Can consume raw data generated by the FastQC step.
  • seq-wrangler: Can feed upstream raw reads into BioQC.

Citations

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use this skill whenever the user wants to create or improve a presentation for an academic context — conference papers, seminar talks, thesis defenses, grant briefings, lab meetings, invited lectures, or any presentation where the audience will evaluate reasoning and evidence. Triggers include: 'conference talk', 'seminar slides', 'thesis defense', 'research presentation', 'academic deck', 'academic presentation'. Also triggers when the user asks to 'make slides' in combination with academic content (e.g., 'make slides for my paper on X', 'create a presentation for my dissertation defense', 'build a deck for my grant proposal'). This skill governs CONTENT and STRUCTURE decisions. For the technical work of creating or editing the .pptx file itself, also read the pptx SKILL.md.

日本語の概要は準備中です。原文の説明を表示しています。

skillmds/skillmd1202026年10月9日 更新

adp

無料

Redpanda's Agentic Data Plane: governance infrastructure for building, running, and governing AI agents and MCP servers, plus a proxying AI Gateway for LLM providers, operated via `rpk ai` and the ADP API. Use when creating or managing AI agents (managed or self-managed) via `rpk ai agent` or `AgentRegistryService`; configuring MCP servers (remote or managed catalog, code mode, auth); setting up LLM providers or querying models via `rpk ai llm`/`rpk ai model` or the AI Gateway proxy; or configuring budgets, guardrails, or Cedar access-control policies through the governance APIs. Also covers reading agent transcripts and spending insights, and wiring OAuth clients or providers to the aigw Authorization Server. For the separate rpk cloud mcp control-plane MCP server, see `/redpanda:rpk-cloud`.

日本語の概要は準備中です。原文の説明を表示しています。

skillmds/skillmd1202026年10月9日 更新

ads

無料

Operate professional paid advertising across Google, Meta, YouTube, LinkedIn, TikTok, Microsoft, Apple, Amazon, Reddit, Pinterest, Snapchat, and X. Use for account intake, source-grounded audits, strategy, budget and measurement planning, creative production, experiments, reporting, monitoring, and explicitly approved campaign changes. Also trigger on PPC, paid social, retail media, attribution, tracking, landing pages, cross-platform conversion totals, negative keywords or search terms, beta-feature scoring, stale platform claims, API-token or credential setup, campaign deletion, and safe Claude Ads installation or uninstall.

日本語の概要は準備中です。原文の説明を表示しています。

skillmds/skillmd1202026年10月9日 更新

ads-apple

無料

Audit Apple Ads measurement, AdServices and AdAttributionKit, campaign and keyword structure, Search Match, App Store placements, custom product pages, bidding, budgets, MMP reconciliation, and policy. Use for Apple Ads, Apple Search Ads, App Store ads, Search Match, custom product pages, AdServices, or Apple app-install campaigns.

日本語の概要は準備中です。原文の説明を表示しています。

skillmds/skillmd1202026年10月9日 更新

Research competitor paid-ad presence, messaging, creative, formats, landing pages, keyword and auction signals, transparent ad libraries, and strategic gaps across supported platforms. Use for competitor ads, ad libraries, ad spy, competitive PPC analysis, competitor creative, Google Ads Transparency, Meta Ad Library, or paid-media competitor research.

日本語の概要は準備中です。原文の説明を表示しています。

skillmds/skillmd1202026年10月9日 更新

ads-dna

無料

Extract a public-safe brand and offer profile for paid advertising from an authorized website and operator input. Triggers on: brand DNA, brand profile, brand identity, brand style, brand colors, brand voice, visual identity, style guide, website brand analysis.

日本語の概要は準備中です。原文の説明を表示しています。

skillmds/skillmd1202026年10月9日 更新

skillmds のスキルをすべて見る

このスキルの問題を報告する