Sc fastq qc

From TianGzlab/OmicsClaw · View interactive version

Sc fastq qc is an AI agent skill from the GitHub repository TianGzlab/OmicsClaw. Load when checking raw single-cell FASTQ read quality (Phred / GC / adapter / length) before counting. Skip when reads are already counted (use sc-qc); bulk FASTQ (use bulkrna-read-qc).

How to use this skill

Skill file

sc-fastq-qc

Use from a step

This is CLI_ONLY: it reads FASTQ files and optionally starts FastQC/MultiQC.

from skills._sdk.notebook import run_cli

run_cli("sc-fastq-qc", "--input", "data/sample_R1.fastq.gz",
        "--read2", "data/sample_R2.fastq.gz",
        inputs=["data/sample_R1.fastq.gz", "data/sample_R2.fastq.gz"])

The demo renders synthetic summary tables; it does not read FASTQ or test

the external tools. There is no _api.py for this skill.

When to use

The user has raw scRNA-seq FASTQ files (one or more, or a directory of

samples) and wants per-file / per-sample / per-base quality summaries

before running sc-count or cellranger. Python summaries always run.

FastQC and MultiQC add reports when installed; a tool that is present but

fails is a hard error, not a fallback to a successful Python-only run.

Inputs & Outputs

Inputs

Outputs

Flow

  1. Discover FASTQ files and choose one sample (--sample disambiguates a directory).
  2. Summarize the first --max-reads records per file in Python.
  3. Run FastQC when present, then MultiQC when both tools are present.
  4. Render four figures from the Python summaries; external HTML is separate.
  5. Write three tables, report.md and result.json.

Gotchas

Key CLI

# Demo (synthetic summary tables, no FASTQ or external tools)
python skills/singlecell/scrna/sc-fastq-qc/sc_fastq_qc.py --demo --output /tmp/sc_fastq_qc_demo

# Single-file with paired-end
python skills/singlecell/scrna/sc-fastq-qc/sc_fastq_qc.py \
  --input sample_R1.fastq.gz --read2 sample_R2.fastq.gz --output results/

# Choose a sample and increase Python sampling depth
python skills/singlecell/scrna/sc-fastq-qc/sc_fastq_qc.py \
  --input fastq_dir/ --sample sample_A --output results/ --max-reads 100000 --threads 8

See also

Dependencies

Python packages this skill's script needs. They are not installed for you — check before a long run.

anndata, matplotlib, numpy, pandas, scanpy, scipy, seaborn

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.