Seq Wrangler logo

Seq Wrangler

OrganizationPopular
ClawBio
seq-wrangler

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

Overview

PublisherClawBio
RepositoryClawBio
Skill nameseq-wrangler
Stars
1.2K
Forks
280
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ClawBio on GitHub. Read the source before you install it.

Installation

Install the Seq Wrangler AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ClawBio/ClawBio/tree/main/skills/seq-wrangler
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ClawBio/ClawBio.git /tmp/ClawBio
mkdir -p .claude/skills
cp -r /tmp/ClawBio/skills/seq-wrangler .claude/skills/seq-wrangler
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Seq Wrangler in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Seq Wrangler on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Seq Wrangler is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

🦖 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

FormatExtensionRequired fields
FASTQ (SE).fastq.gz, .fq.gzSingle-end reads
FASTQ (PE).fastq.gz, .fq.gzR1 + R2 paired reads
Samplesheet.csvsample, fastq1, fastq2 (optional)
Aligner indexprefixPre-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)
└── reproducibility/
│ └── commands.sh # Exact command to reproduce this run
│ └── environment.yml # Conda environment spec 
│ └── checksums.sha256 # SHA-256 of all input files
│ └── run_metadata.json # Full run parameters and timestamp

Dependencies

Required:

  • samtools (BAM manipulation)
  • One of: bwa, bowtie2, or minimap2 (alignment)

Optional:

  • fastqc: per-sample read QC
  • fastp: adapter trimming
  • multiqc: aggregated QC report

Install via conda:

bash
conda install -c bioconda samtools bowtie2 bwa minimap2 fastqc fastp multiqc

Gotchas

  • Memory for samtools sort: Uses 2G RAM per thread by default. On machines with <8G RAM, use --threads 2 or --threads 3 to avoid OOM errors.

  • python3 vs python on Windows: Tests use sys.executable instead of python3 for cross-platform compatibility. On Windows, python3 may not exist in PATH.

  • Index prefix vs file: --index expects the aligner index prefix (e.g. hg38_chr22), not a .fa or .bt2 file path. Build with bowtie2-build genome.fa prefix first.

  • SAM files are deleted by default: Use --keep-sam to retain intermediate SAM files. They can be 10x larger than the final BAM.

  • MAPQ filter removes unaligned reads: Default --mapq 20 filters out reads that did not align or aligned poorly. Lower this value if you expect low-quality data.

  • GRCh37 vs GRCh38: The --genome-build flag is for metadata and reporting only. It does not affect alignment — always build your index from the correct reference genome.

Agent Boundary

The agent (LLM) dispatches the FASTQ files and explains results. The skill (Python) executes all tool calls and generates files. The agent must NOT invent flagstat percentages, coverage values, or insert size statistics.

Safety

  • Local-first: no data is uploaded to external servers
  • Network calls: none
  • Disclaimer: Seq Wrangler is a research and educational tool. Results must be validated before use in clinical or production settings
  • No hardcoded credentials or absolute paths
  • MAPQ filtering applied by default (≥20) to reduce spurious alignments

Integration with Bio Orchestrator

Trigger conditions:

  • User provides FASTQ files and asks for alignment or QC
  • Keywords: align, fastq, bam, coverage, paired-end, bowtie2, bwa

Chaining partners:

  • → rnaseq-de: pass final BAM for differential expression
  • → methylation-clock: pass BAM for methylation analysis
  • → equity-scorer: pass BAM for population equity metrics
  • → acmg: pass aligned BAM for variant calling upstream

Example Queries

  • "Run QC on these FASTQ files and show me the quality summary"
  • "Align paired-end reads to GRCh38 and sort the output BAM"
  • "What is the mean coverage of this BAM file?"
  • "Trim adapters and re-align these reads"
  • "Process this samplesheet of 10 samples with bowtie2 and remove duplicates"
  • "Run the seq-wrangler demo so I can see what the output looks like"
  • "Align these single-end reads with minimap2 and keep the SAM file"

Citations

  • Li H. et al. (2009) The Sequence Alignment/Map format and SAMtools. Bioinformatics
  • Langmead B. & Salzberg S. (2012) Fast gapped-read alignment with Bowtie 2. Nature Methods
  • Li H. & Durbin R. (2009) Fast and accurate short read alignment with BWA. Bioinformatics
  • Li H. (2018) Minimap2: pairwise alignment for nucleotide sequences. Bioinformatics
  • Chen S. et al. (2018) fastp: an ultra-fast all-in-one FASTQ preprocessor. Bioinformatics
  • Ewels P. et al. (2016) MultiQC: summarize analysis results for multiple tools. Bioinformatics

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Seq Wrangler AI skill do?

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

Why use Seq Wrangler on TypingMind?

Because you install it once and use it with any model. Seq Wrangler is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Seq Wrangler in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ClawBio/ClawBio/tree/main/skills/seq-wrangler. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Seq Wrangler?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Seq Wrangler?

As many as you like. As long as a model supports skills, you can use Seq Wrangler with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Seq Wrangler AI skill free?

Yes. It is published on GitHub by ClawBio under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇