tiangzlab/omicsclaw/bulkrna-read-qc
Claude Code and agent skill by tiangzlab/omicsclaw
- community
Checking that the SKILL.md file is still in the repository.
Load when checking raw FASTQ quality (Phred / GC / adapter / Q20-Q30) before alignment in
Install
npx vskill@latest install tiangzlab/omicsclaw/bulkrna-read-qcSKILL.md
bulkrna-read-qc
When to use
Read raw Phred+33 FASTQ before alignment. This implements selected quality metrics, not the complete FastQC suite. Use bulkrna-read-alignment for logs.
Use from a step
For real files, pass read_fastq, read_log or read_reference as appropriate to read_input(..., reader=...). examples/example_step.py is executable.
API
<!-- api:begin generated from _api.py; regenerate with run.py api <skill dir> --write -->
read_fastq(path: str | Path, *, max_reads: int=100000) -> pd.DataFrame
Read FASTQ records; pass this function as reader= to read_input.
:param path: FASTQ path; a .gz suffix selects gzip decompression. :param max_reads: CLI limit 100000; increase for a larger leading-read sample. :returns: Sequence and Phred+33 quality strings as rows. :raises ValueError: Records are truncated, malformed, or have unequal sequence/quality lengths.
quality_control(reads: pd.DataFrame, *, max_reads: int=100000) -> pd.DataFrame
Compute a new one-row quality summary for Phred+33 reads.
:param reads: sequence and quality string columns; input rows are not changed. :param max_reads: CLI default 100000 leading records; increase to inspect more reads. :returns: Scalar QC metrics and adapter counts; run_info retains per-base distributions. :raises ValueError: Reads, lengths or Phred+33 scores are invalid.
run_info(result: pd.DataFrame, *, keep: bool=True) -> dict
Read full quality distributions and sampling diagnostics.
:param result: Output of quality_control. :param keep: True preserves attrs; False removes diagnostics before serialization. :returns: A separate dictionary containing metrics and sampling provenance. :raises TypeError: The result is not a DataFrame.
quality_figure(result: pd.DataFrame)
Plot mean and interquartile quality by read position.
:param result: QC result retaining its diagnostic attrs. :returns: A matplotlib Figure without writing files. :raises KeyError: Per-base diagnostics are absent.
gc_figure(result: pd.DataFrame)
Plot GC fractions across sampled reads.
:param result: QC result retaining its diagnostic attrs. :returns: A matplotlib Figure without writing files. :raises KeyError: GC diagnostics are absent.
demo_data(*, random_state: int=42) -> pd.DataFrame
Generate valid synthetic FASTQ records in memory.
:param random_state: CLI seed 42; change for another simulation without altering global RNG state. :returns: Five thousand 150-base reads with quality strings of the same length. :raises ValueError: The seed is invalid.
<!-- api:end -->
Methods and parameters
read_fastq reads the leading 100000 records by default and accepts .gz. quality_control computes per-base quality, Q20/Q30, GC, lengths and adapter motif hits from sequence/quality strings. It does not trim reads.
Gotchas
read_fastqrejects truncated FASTQ and unequal sequence/quality lengths.quality_controlassumes Phred+33, not the older Phred+64 encoding.adapter_ratesums motif hits and can exceed 100% if a read contains multiple adapters.
Inputs and outputs
The CLI writes these artifacts; functions return DataFrames and Figures without writing them:
tables/qc_summary.csvfigures/per_base_quality.pngfigures/gc_content.pngfigures/read_length_distribution.pngfigures/quality_score_distribution.pngreport.mdresult.jsonreproducibility/commands.shdemo_reads.fastqonly with--demo.
CLI
For real files use --input <file>; trajectory placement also needs --reference <file>.
See also
references/methodology.mdreferences/parameters.mdreferences/output_contract.md
Dependencies
matplotlib, numpy, pandas
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bulkrna/bulkrna-read-qc/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tiangzlab/omicsclaw/bulkrna-read-qc)