seq-wrangler
БесплатноЗапускает вложенные скриптыНе проверенNGS read QC, alignment, and BAM processing pipeline. Wraps FastQC, BWA/Bowtie2/Minimap2, SAMtools, and MultiQC for automated read-to-BAM workflows.
от ClawBio★ 1 197 звёзд на GitHubОб этом скилле
🦖 Seq Wrangler
You are the Seq Wrangler, a specialised agent for sequence data QC, alignment, and BAM processing.
Trigger
Fire this skill when the user says any of:
- "align reads", "align fastq", "align paired-end"
- "run QC on my reads"
- "map reads to reference"
- "process my fastq files"
- "sort and index this BAM"
- "what is the coverage of this BAM"
- "trim adapters and align"
- "bowtie2", "bwa mem", "minimap2"
Do NOT fire when:
- User wants variant annotation from a BAM/VCF (route to
vcf-annotator) - User wants differential expression from a BAM (route to
rnaseq-de) - User wants methylation analysis (route to
methylation-clock)
Why This Exists
Without this skill, aligning FASTQ reads to a reference genome requires manually coordinating 6+ tools (FastQC, fastp, BWA/Bowtie2/Minimap2, samtools sort/fixmate/markdup/index), managing intermediate files, and producing no reproducibility record. Seq Wrangler automates the full read-to-BAM pipeline, enforces MAPQ filtering, marks duplicates, computes per-sample statistics, and generates a reproducibility bundle in a single command.
Core Capabilities
- Read QC: Run FastQC, parse results, flag quality issues
- Adapter Trimming: Trim adapters with fastp (optional)
- Alignment: Align reads to reference genomes (BWA-MEM2, Bowtie2, Minimap2)
- BAM Processing: MAPQ filter → name sort → fixmate → coordinate sort → markdup → index
- Statistics: flagstat, per-chromosome coverage, insert size (paired-end)
- MultiQC Report: Aggregate QC metrics across samples (optional)
- Pipeline Generation: Export the full workflow as a shell script or Nextflow pipeline
- Reproducibility Bundle: commands.sh, environment.yml, checksums.sha256, inputs.json, run_metadata.json
- Demo Mode: Synthetic data run, no external tools required
Input Formats
| Format | Extension | Required fields |
|---|---|---|
| FASTQ (SE) | .fastq.gz, .fq.gz |
Single-end reads |
| FASTQ (PE) | .fastq.gz, .fq.gz |
R1 + R2 paired reads |
| Samplesheet | .csv |
sample, fastq_1, fastq_2 (optional) |
| Aligner index | prefix | Pre-built BWA/Bowtie2/Minimap2 index |
Workflow
- Validate input files and tools
- Run FastQC on all FASTQs (if
--run-fastqc) - Trim adapters with fastp (if
--trim) - Align reads with selected aligner → SAM
- Filter by MAPQ threshold with
samtools view - Sort by read name with
samtools sort -n - Fix mate-pair information with
samtools fixmate - Coordinate sort with
samtools sort - Mark duplicates with
samtools markdup(removes them with-rif--remove-duplicates) - Index final BAM with
samtools index - Compute flagstat, coverage, insert size
- Aggregate with MultiQC (if
--run-multiqc) - Generate Markdown report and reproducibility bundle
CLI Reference
# Demo (no external tools needed)
python skills/seq-wrangler/seq_wrangler.py --demo --output /tmp/demo
# Single sample paired-end
python skills/seq-wrangler/seq_wrangler.py \
--r1 sample_R1.fastq.gz \
--r2 sample_R2.fastq.gz \
--index ref/hg38 \
--aligner bowtie2 \
--output results/
# Single sample single-end
python skills/seq-wrangler/seq_wrangler.py \
--r1 sample.fastq.gz \
--index ref/hg38 \
--aligner bwa \
--output results/
# Batch mode via samplesheet
python skills/seq-wrangler/seq_wrangler.py \
--samplesheet samples.csv \
--index ref/hg38 \
--output results/
# With trimming and duplicate removal
python skills/seq-wrangler/seq_wrangler.py \
--r1 sample_R1.fastq.gz --r2 sample_R2.fastq.gz \
--index ref/hg38 --aligner bowtie2 \
--trim --remove-duplicates --keep-sam \
--output results/
| Flag | Description | Default |
|---|---|---|
--r1 |
FASTQ R1 or single-end FASTQ | — |
--r2 |
FASTQ R2 for paired-end | — |
--sample-name |
Sample name for single-sample mode | — |
--samplesheet |
CSV with columns sample,fastq_1,fastq_2 |
— |
--index |
Aligner index prefix | required unless --demo |
--aligner |
bwa, bowtie2, or minimap2 |
bwa |
--genome-build |
GRCh38 or GRCh37 (metadata only) |
GRCh38 |
--output |
Output directory | required |
--threads |
Number of threads | CPU count − 1 |
--mapq |
MAPQ filter threshold | 20 |
--trim |
Run fastp trimming before alignment | off |
--remove-duplicates |
Remove duplicates with samtools markdup -r instead of only marking them |
off |
--keep-sam |
Keep intermediate SAM files | off |
--run-fastqc |
Run FastQC if available | off |
--run-multiqc |
Run MultiQC aggregation if available | off |
--demo |
Run with synthetic data, no tools needed | off |
Demo
python skills/seq-wrangler/seq_wrangler.py --demo --output /tmp/demo
Expected output: Markdown report with synthetic flagstat (97.5% mapped, 8.7% duplicates) and coverage statistics for two demo samples (CTRL_REP1 paired-end, TREAT_REP1 single
Установить seq-wrangler в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл seq-wrangler?
NGS read QC, alignment, and BAM processing pipeline. Wraps FastQC, BWA/Bowtie2/Minimap2, SAMtools, and MultiQC for automated read-to-BAM workflows.
Как установить скилл seq-wrangler?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл seq-wrangler запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub