Skip to content
Agentmart
Submit a tool

seq-wrangler

NGS read QC, alignment, and BAM processing pipeline.

Skill by Daniel Garbozo

IndexedMITβ˜… 1,166
Write a review

Chalk Labs

Need help deploying seq-wrangler?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/clawbio-seq-wrangler

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

NGS read QC, alignment, and BAM processing pipeline. Wraps FastQC, BWA/Bowtie2/Minimap2, SAMtools, and MultiQC for automated read-to-BAM workflows.

Use cases: data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com Β· found in install command

Files it touches

  • ~/.claude/skills/seq-wrangler

What's inside

Skill name
seq-wrangler
Description
NGS read QC, alignment, and BAM processing pipeline. Wraps FastQC, BWA/Bowtie2/Minimap2, SAMtools, and MultiQC for automated read-to-BAM workflows.
License
MIT
Metadata
emoji: πŸ¦– Β· author: Daniel Garbozo Β· domain: genomics Β· version: 0.1.0
Instructions
213 lines in SKILL.md Β· view on GitHub

Before installing

  • Ships executable scripts

Files (5)

  • README.md
  • SKILL.md
  • report.md Β· examples/demo-results/
  • seq_wrangler.py
  • test_seq_wrangler.py Β· tests/

SKILL.md (first lines)

# πŸ¦– 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

1. **Read QC**: Run FastQC, parse results, flag quality issues
2. **Adapter Trimming**: Trim adapters with fastp (optional)
3. **Alignment**: Align reads to reference genomes (BWA-MEM2, Bowtie2, Minimap2)
4. **BAM Processing**: MAPQ filter β†’ name sort β†’ fixmate β†’ coordinate sort β†’ markdup β†’ index
5. **Statistics**: flagstat, per-chromosome coverage, insert size (paired-end)
6. **MultiQC Report**: Aggregate QC metrics across samples (optional)
7. **Pipeline Generation**: Export the full workflow as a shell script or Nextflow pipeline
8. **Reproducibility Bundle**: commands.sh, environment.yml, checksums.sha256, run_metadata.json
9. **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`, `fastq1`, `fastq2` (optional) |
| Aligner index | prefix | Pre-built BWA/Bowtie2/Minimap2 index |

## Workflow

1. Validate input files and tools
2. Run FastQC on all FASTQs (if `--run-fastqc`)
3. Trim adapters with fastp (if `--trim`)
4. Align reads with selected aligner β†’ SAM
5. Filter by MAPQ threshold with `samtools view`
6. Sort by read name with `samtools sort -n`
7. Fix mate-pair information with `samtools fixmate`
8. Coordinate sort with `samtools sort`
9. Mark (or remove) duplicates with `samtools markdup`
10. Index final BAM with `samtools index`
11. Compute flagstat, coverage, insert size
12. Aggregate with MultiQC (if `--run-multiqc`)
13. Generate Markdown report and reproducibility bundle

## CLI Reference

```bash
# 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/
```

## Demo

```bash
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-end). No external tools required.

## Output Structure
```bash
output/
β”œβ”€β”€ report.md # Full alignment and QC report
β”œβ”€β”€ summary.json # Per-sample statistics as JSON
β”œβ”€β”€ bam/
β”‚ └── sample_sorted.bam # Final sorted, markdup BAM
β”‚ └── sample_sorted.bam.bai # BAM index
β”œβ”€β”€ alignment/
β”‚ └── sample.sam # Intermediate SAM (only with --keep-sam)
β”œβ”€β”€ fastqc/ # FastQC reports (if --run-fastqc)
β”œβ”€β”€ trimmed/ # Trimmed FASTQs (if --trim)
β”œβ”€β”€ multiqc/ # MultiQC report (if --run-multiqc)

From ClawBio/ClawBio, MIT.

More from ClawBio/ClawBio

Signals

Stars
1,166
Forks
288
Open issues
27
Last commit (this folder)
Jun 18, 2026 (4 months ago)
Last release
Sep 11, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
0.1.0
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents β†’Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes Β· CoinDesk Β· Decrypt Β· Cointelegraph Β· The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get seq-wrangler running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying seq-wrangler?

CallGet help
Cite this page

seq-wrangler skill. Agent Mart. https://agentmart.dev/skills/clawbio-seq-wrangler (last updated 2026-10-24)